Files
JP SimardandGitHub 5e04661e63 Mark rules_xcodeproj as a dev_dependency (#5112)
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
```
2023-07-09 09:54:04 -04:00

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"],
)