Skip to content

Commit e1e3922

Browse files
Apply some modernization (#1)
- Update dependencies - Inline external repository `BUILD` files - Add `rules_swift` to `xcbbuildserviceproxykit_dependencies` - Make it build with Bazel 5.1.1 - Rename `BUILD.bazel` files to `BUILD` where possible - Use copies of BEP protos instead of depending on Bazel external repository - Remove SwiftPM support Signed-off-by: Brentley Jones <github@brentleyjones.com>
1 parent 2efa41e commit e1e3922

32 files changed

Lines changed: 2926 additions & 10153 deletions

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.6.0
1+
5.1.1

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.swiftpm/
21
/bazel-*
32
/Examples/bazel-*
43
/.vscode
File renamed without changes.

Examples/.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.6.0
1+
5.1.1
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
load(
2+
"@build_bazel_rules_swift//swift:swift.bzl",
3+
"swift_proto_library",
4+
)
5+
6+
# protos
7+
proto_library(
8+
name = "build_event_stream_proto",
9+
srcs = ["build_event_stream.proto"],
10+
deps = [
11+
":command_line_proto",
12+
":failure_details_proto",
13+
":invocation_policy_proto",
14+
"@com_google_protobuf//:duration_proto",
15+
"@com_google_protobuf//:timestamp_proto",
16+
],
17+
)
18+
19+
proto_library(
20+
name = "command_line_proto",
21+
srcs = ["command_line.proto"],
22+
deps = [
23+
":option_filters_proto",
24+
],
25+
)
26+
27+
proto_library(
28+
name = "failure_details_proto",
29+
srcs = ["failure_details.proto"],
30+
deps = [
31+
"@com_google_protobuf//:descriptor_proto",
32+
],
33+
)
34+
35+
proto_library(
36+
name = "invocation_policy_proto",
37+
srcs = ["invocation_policy.proto"],
38+
)
39+
40+
proto_library(
41+
name = "option_filters_proto",
42+
srcs = ["option_filters.proto"],
43+
)
44+
45+
# swift_protobuf
46+
47+
swift_proto_library(
48+
name = "BEP",
49+
visibility = ["//BazelXCBBuildService:__subpackages__"],
50+
deps = [":build_event_stream_proto"],
51+
)

0 commit comments

Comments
 (0)