Skip to content

Commit

Permalink
Add rules_xcodeproj integration
Browse files Browse the repository at this point in the history
Signed-off-by: Brentley Jones <github@brentleyjones.com>
  • Loading branch information
brentleyjones committed Mar 12, 2024
1 parent f622f72 commit c0139c3
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
21 changes: 21 additions & 0 deletions BUILD
@@ -1,5 +1,26 @@
load("@gazelle//:def.bzl", "gazelle", "gazelle_binary")
load("@rules_swift_package_manager//swiftpkg:defs.bzl", "swift_update_packages")
load("@rules_xcodeproj//xcodeproj:defs.bzl", "top_level_target", "xcodeproj")

xcodeproj(
name = "xcodeproj",
generation_mode = "incremental",
project_name = "MastodonBazel",
top_level_targets = [
top_level_target(
"//Mastodon:Mastodon",
target_environments = ["simulator"],
),
top_level_target(
"//MastodonTests:MastodonTests",
target_environments = ["simulator"],
),
top_level_target(
"//MastodonUITests:MastodonUITests",
target_environments = ["simulator"],
),
],
)

# - Gazelle

Expand Down
1 change: 1 addition & 0 deletions MODULE.bazel
Expand Up @@ -3,6 +3,7 @@ bazel_dep(name = "rules_swift", version = "1.16.0", repo_name = "build_bazel_rul
bazel_dep(name = "rules_apple", version = "3.3.0", repo_name = "build_bazel_rules_apple")
bazel_dep(name = "bazel_skylib", version = "1.5.0")
bazel_dep(name = "rules_swift_package_manager", version = "0.28.0")
bazel_dep(name = "rules_xcodeproj", version = "1.17.0")
bazel_dep(name = "gazelle", version = "0.35.0")

# swift_deps START
Expand Down
1 change: 1 addition & 0 deletions MastodonTests/BUILD
Expand Up @@ -6,6 +6,7 @@ ios_unit_test(
bundle_id = "org.joinmastodon.MastodonTests",
minimum_os_version = "16.0",
test_host = "//Mastodon:Mastodon",
visibility = ["@rules_xcodeproj//xcodeproj:generated"],
deps = [":MastodonTests.library"],
)

Expand Down
1 change: 1 addition & 0 deletions MastodonUITests/BUILD
Expand Up @@ -6,6 +6,7 @@ ios_ui_test(
bundle_id = "org.joinmastodon.MastodonUITests",
minimum_os_version = "16.0",
test_host = "//Mastodon:Mastodon",
visibility = ["@rules_xcodeproj//xcodeproj:generated"],
deps = [":MastodonUITests.library"],
)

Expand Down

0 comments on commit c0139c3

Please sign in to comment.