Skip to content

Commit 9114a41

Browse files
Kila2kila2
andauthored
Add rules_xcodeproj generated project (#8)
Signed-off-by: kila2 <lijunliang9819@qq.com> Signed-off-by: Brentley Jones <github@brentleyjones.com> Co-authored-by: kila2 <lijunliang9819@qq.com>
1 parent 4fd6d12 commit 9114a41

4 files changed

Lines changed: 31 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/bazel-*
22
/Examples/bazel-*
33
/.vscode
4+
**/*.xcodeproj/*

Examples/.bazelrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
build --use_top_level_targets_for_symlinks
2-
build --macos_cpus=arm64,x86_64

Examples/BazelXCBBuildService/BUILD

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ load(
66
"@build_bazel_rules_swift//swift:swift.bzl",
77
"swift_library",
88
)
9+
load(
10+
"@com_github_buildbuddy_io_rules_xcodeproj//xcodeproj:xcodeproj.bzl",
11+
"xcodeproj",
12+
)
913

1014
swift_library(
1115
name = "BazelXCBBuildService.library",
@@ -27,6 +31,15 @@ macos_command_line_application(
2731
deps = [":BazelXCBBuildService.library"],
2832
)
2933

34+
xcodeproj(
35+
name = "xcodeproj",
36+
project_name = "BazelXCBuildService",
37+
targets = [
38+
":BazelXCBBuildService",
39+
],
40+
tags = ["manual"],
41+
)
42+
3043
sh_test(
3144
name = "BazelXCBBuildServiceIntegrationTests",
3245
size = "small",

Examples/WORKSPACE

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
22

33
http_archive(
4-
name = "build_bazel_rules_apple",
5-
sha256 = "12865e5944f09d16364aa78050366aca9dc35a32a018fa35f5950238b08bf744",
6-
url = "https://github.com/bazelbuild/rules_apple/releases/download/0.34.2/rules_apple.0.34.2.tar.gz",
4+
name = "com_github_buildbuddy_io_rules_xcodeproj",
5+
sha256 = "728cb6089ad2f4c4de2003ce23462be662bfdd250a8735dc590e61fb7401e7d2",
6+
url = "https://github.com/buildbuddy-io/rules_xcodeproj/releases/download/0.5.0/release.tar.gz",
77
)
88

9+
load(
10+
"@com_github_buildbuddy_io_rules_xcodeproj//xcodeproj:repositories.bzl",
11+
"xcodeproj_rules_dependencies",
12+
)
13+
14+
xcodeproj_rules_dependencies()
15+
916
load(
1017
"@build_bazel_rules_apple//apple:repositories.bzl",
1118
"apple_rules_dependencies",
@@ -27,6 +34,13 @@ load(
2734

2835
swift_rules_extra_dependencies()
2936

37+
load(
38+
"@build_bazel_apple_support//lib:repositories.bzl",
39+
"apple_support_dependencies",
40+
)
41+
42+
apple_support_dependencies()
43+
3044
local_repository(
3145
name = "com_github_mobilenativefoundation_xcbbuildserviceproxykit",
3246
path = "../",

0 commit comments

Comments
 (0)