Compare commits
2 Commits
main
...
jp-rules_x
Author | SHA1 | Date |
---|---|---|
![]() |
1cbe8c8f98 | |
![]() |
7cbef3a273 |
|
@ -37,6 +37,7 @@ xcuserdata
|
||||||
|
|
||||||
# SwiftLint
|
# SwiftLint
|
||||||
|
|
||||||
|
SwiftLint.xcodeproj
|
||||||
SwiftLint.pkg
|
SwiftLint.pkg
|
||||||
*.zip
|
*.zip
|
||||||
benchmark_*
|
benchmark_*
|
||||||
|
|
19
BUILD
19
BUILD
|
@ -3,6 +3,11 @@ load(
|
||||||
"swift_binary",
|
"swift_binary",
|
||||||
"swift_library",
|
"swift_library",
|
||||||
)
|
)
|
||||||
|
load(
|
||||||
|
"@com_github_buildbuddy_io_rules_xcodeproj//xcodeproj:xcodeproj.bzl",
|
||||||
|
"xcode_schemes",
|
||||||
|
"xcodeproj",
|
||||||
|
)
|
||||||
|
|
||||||
swift_library(
|
swift_library(
|
||||||
name = "SwiftLintFramework",
|
name = "SwiftLintFramework",
|
||||||
|
@ -46,3 +51,17 @@ filegroup(
|
||||||
srcs = glob(["Source/**"]),
|
srcs = glob(["Source/**"]),
|
||||||
visibility = ["//Tests:__subpackages__"],
|
visibility = ["//Tests:__subpackages__"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
xcodeproj(
|
||||||
|
name = "xcodeproj",
|
||||||
|
build_mode = "bazel",
|
||||||
|
project_name = "SwiftLint",
|
||||||
|
schemes = [
|
||||||
|
xcode_schemes.scheme(
|
||||||
|
name = "SwiftLint",
|
||||||
|
launch_action = xcode_schemes.launch_action("//:swiftlint"),
|
||||||
|
build_action = xcode_schemes.build_action(["//:swiftlint"]),
|
||||||
|
test_action = xcode_schemes.test_action(["//Tests:SwiftLintFrameworkTests"]),
|
||||||
|
),
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
|
@ -27,7 +27,7 @@ swift_test(
|
||||||
# Bazel doesn't support paths with spaces in them
|
# Bazel doesn't support paths with spaces in them
|
||||||
exclude = ["SwiftLintFrameworkTests/Resources/FileNameNoSpaceRuleFixtures/**"],
|
exclude = ["SwiftLintFrameworkTests/Resources/FileNameNoSpaceRuleFixtures/**"],
|
||||||
),
|
),
|
||||||
visibility = ["//Tests:__subpackages__"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [":SwiftLintFrameworkTests.library"],
|
deps = [":SwiftLintFrameworkTests.library"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
12
WORKSPACE
12
WORKSPACE
|
@ -36,3 +36,15 @@ swiftlint_repos()
|
||||||
load("//bazel:deps.bzl", "swiftlint_deps")
|
load("//bazel:deps.bzl", "swiftlint_deps")
|
||||||
|
|
||||||
swiftlint_deps()
|
swiftlint_deps()
|
||||||
|
|
||||||
|
http_archive(
|
||||||
|
name = "com_github_buildbuddy_io_rules_xcodeproj",
|
||||||
|
sha256 = "1bfc8589398afc31c47c3cb402f848c89ea11f8992c3f1c8e93efafa23619a7f",
|
||||||
|
# https://github.com/buildbuddy-io/rules_xcodeproj/pull/900
|
||||||
|
strip_prefix = "rules_xcodeproj-da3c32c91653cd98d4cb0bb7ffe9ac81a6f5f800",
|
||||||
|
url = "https://github.com/buildbuddy-io/rules_xcodeproj/archive/da3c32c91653cd98d4cb0bb7ffe9ac81a6f5f800.tar.gz",
|
||||||
|
)
|
||||||
|
|
||||||
|
load("@com_github_buildbuddy_io_rules_xcodeproj//xcodeproj:repositories.bzl", "xcodeproj_rules_dependencies")
|
||||||
|
|
||||||
|
xcodeproj_rules_dependencies()
|
||||||
|
|
Loading…
Reference in New Issue