-
Notifications
You must be signed in to change notification settings - Fork 115
Expand file tree
/
Copy pathBUILD
More file actions
64 lines (58 loc) · 1.83 KB
/
BUILD
File metadata and controls
64 lines (58 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
load("@build_bazel_rules_apple//apple:apple.bzl", "apple_universal_binary")
load(
"@build_bazel_rules_apple//apple:macos.bzl",
"macos_command_line_application",
)
load(
"@build_bazel_rules_swift//swift:swift.bzl",
"swift_binary",
"swift_library",
)
# This target exists to keep configurations the same between the generator
# and the tests, which makes the Xcode development experience better. If we used
# `swift_binary` or `apple_universal_binary` in `xcodeproj`, then the
# `macos_unit_test` transition (which is used to be able to set a minimum os
# version on the tests) will create slightly different configurations for our
# `swift_library`s. Maybe https://github.com/bazelbuild/bazel/issues/6526 will
# fix that for us.
macos_command_line_application(
name = "calculate_output_groups",
minimum_os_version = "13.0",
visibility = ["//visibility:public"],
deps = [":calculate_output_groups.library"],
)
swift_library(
name = "calculate_output_groups.library",
srcs = glob(["*.swift"]),
module_name = "calculate_output_groups",
deps = [
"//tools/lib/ToolCommon",
"@com_github_apple_swift_argument_parser//:ArgumentParser",
"@com_github_michaeleisel_zippyjson//:ZippyJSON",
],
)
swift_binary(
name = "calculate_output_groups_binary",
deps = [":calculate_output_groups.library"],
)
apple_universal_binary(
name = "universal_calculate_output_groups",
binary = ":calculate_output_groups_binary",
forced_cpus = [
"x86_64",
"arm64",
],
minimum_os_version = "13.0",
platform_type = "macos",
visibility = ["//visibility:public"],
)
# Release
filegroup(
name = "release_files",
srcs = [
"BUILD.release.bazel",
":universal_calculate_output_groups",
],
tags = ["manual"],
visibility = ["//:__subpackages__"],
)