Compare commits

...

1 Commits

Author SHA1 Message Date
JP Simard ea58506883
WIP: rules_xcodeproj 2022-08-02 07:14:21 -04:00
4 changed files with 27 additions and 0 deletions

2
.bazelrc Normal file
View File

@ -0,0 +1,2 @@
build --macos_minimum_os=12.0
build --host_macos_minimum_os=12.0

1
.gitignore vendored
View File

@ -60,3 +60,4 @@ bundle/
# Bazel
bazel-*
SwiftLint.xcodeproj

13
BUILD
View File

@ -3,6 +3,7 @@ load(
"swift_binary",
"swift_library",
)
load("@com_github_buildbuddy_io_rules_xcodeproj//xcodeproj:xcodeproj.bzl", "xcodeproj")
swift_library(
name = "SwiftLintFramework",
@ -33,3 +34,15 @@ swift_binary(
"@swiftlint_com_github_scottrhoyt_swifty_text_table//:SwiftyTextTable",
],
)
xcodeproj(
name = "xcodeproj",
build_mode = "bazel",
project_name = "SwiftLint",
tags = ["manual"],
top_level_targets = [
":swiftlint",
":SwiftLintFramework",
"//Tests:ExtraRulesTests",
],
)

View File

@ -36,3 +36,14 @@ swiftlint_repos()
load("//bazel:deps.bzl", "swiftlint_deps")
swiftlint_deps()
http_archive(
name = "com_github_buildbuddy_io_rules_xcodeproj",
sha256 = "a526d0f001325f31ea011d64afec2b4e5df5a9e7cc4a1dde11f5b885ae19e2b0",
strip_prefix = "rules_xcodeproj-7cdff3362ea8fffae42097b9276ff8a6ffbee2fb",
url = "https://github.com/buildbuddy-io/rules_xcodeproj/archive/7cdff3362ea8fffae42097b9276ff8a6ffbee2fb.tar.gz",
)
load("@com_github_buildbuddy_io_rules_xcodeproj//xcodeproj:repositories.bzl", "xcodeproj_rules_dependencies")
xcodeproj_rules_dependencies()