forked from bazelbuild/rules_apple
-
Notifications
You must be signed in to change notification settings - Fork 1
/
BUILD
54 lines (47 loc) · 1.13 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
53
54
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
licenses(["notice"])
exports_files(["LICENSE"])
exports_files(
["platform_mappings"],
visibility = [
"//test:__subpackages__",
],
)
# See the note in __init__.py for why this is needed.
py_library(
name = "py_init_shim",
testonly = 1,
srcs = ["__init__.py"],
visibility = ["//:__subpackages__"],
)
# Consumed by bazel tests.
filegroup(
name = "for_bazel_tests",
testonly = 1,
srcs = [
"WORKSPACE",
"//apple:for_bazel_tests",
"//tools:for_bazel_tests",
"@build_bazel_apple_support//:for_bazel_tests",
"@build_bazel_rules_swift//:for_bazel_tests",
"@xctestrunner//:for_bazel_tests",
],
visibility = [
"//:__subpackages__",
],
)
config_setting(
name = "supports_visionos_setting",
flag_values = {
":supports_visionos": "True",
},
visibility = [
"//examples:__subpackages__",
"//test:__subpackages__",
],
)
bool_flag(
name = "supports_visionos",
build_setting_default = False,
visibility = ["//visibility:private"],
)