mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
To do this, the `xcodeproj` definition needs to move out of the main `BUILD` file, so it's now moved to `bazel/BUILD`. The command to generate the Bazel Xcode project is now ``` bazel run //bazel:xcodeproj ```
48 lines
1.1 KiB
Python
48 lines
1.1 KiB
Python
load(
|
|
"@rules_xcodeproj//xcodeproj:defs.bzl",
|
|
"xcode_schemes",
|
|
"xcodeproj",
|
|
)
|
|
|
|
# Xcode Integration
|
|
|
|
xcodeproj(
|
|
name = "xcodeproj",
|
|
install_directory = "",
|
|
project_name = "SwiftLint",
|
|
schemes = [
|
|
xcode_schemes.scheme(
|
|
name = "SwiftLint",
|
|
launch_action = xcode_schemes.launch_action(
|
|
"//:swiftlint",
|
|
args = [
|
|
"--progress",
|
|
],
|
|
),
|
|
test_action = xcode_schemes.test_action([
|
|
"//Tests:CLITests",
|
|
"//Tests:SwiftLintFrameworkTests",
|
|
"//Tests:GeneratedTests",
|
|
"//Tests:IntegrationTests",
|
|
"//Tests:ExtraRulesTests",
|
|
]),
|
|
),
|
|
],
|
|
top_level_targets = [
|
|
"//:swiftlint",
|
|
"//Tests:CLITests",
|
|
"//Tests:SwiftLintFrameworkTests",
|
|
"//Tests:GeneratedTests",
|
|
"//Tests:IntegrationTests",
|
|
"//Tests:ExtraRulesTests",
|
|
],
|
|
)
|
|
|
|
# Release Files
|
|
|
|
filegroup(
|
|
name = "release_files",
|
|
srcs = glob(["*"]),
|
|
visibility = ["//visibility:public"],
|
|
)
|