-
Notifications
You must be signed in to change notification settings - Fork 38
/
BUILD
52 lines (42 loc) · 1.16 KB
/
BUILD
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
# Standard constraint_settings and constraint_values for items common to rules_swift and rules_apple.
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
filegroup(
name = "srcs",
srcs = ["BUILD"],
)
# Constraint indicating the target environment (e.g. device, simulator).
constraint_setting(
name = "target_environment",
default_constraint_value = ":device",
visibility = ["//visibility:private"],
)
constraint_value(
name = "device",
constraint_setting = ":target_environment",
)
constraint_value(
name = "simulator",
constraint_setting = ":target_environment",
)
constraint_value(
name = "catalyst",
constraint_setting = ":target_environment",
)
# Constraint indicating if the platform belongs to an "Apple" platform (iOS, watchOS, tvOS, etc.)
constraint_setting(
name = "target_vendor",
default_constraint_value = ":apple",
visibility = ["//visibility:private"],
)
constraint_value(
name = "apple",
constraint_setting = ":target_vendor",
)
# Consumed by bazel tests.
filegroup(
name = "for_bazel_tests",
testonly = True,
srcs = glob(["**"]),
visibility = ["//:__pkg__"],
)