Repository navigation
Expand file tree
/
Copy pathMODULE.bazel
More file actions
73 lines (66 loc) · 2.46 KB
/
Copy pathMODULE.bazel
File metadata and controls
73 lines (66 loc) · 2.46 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
65
66
67
68
69
70
71
72
73
"""rules_apple MODULE.bazel file"""
module(
name = "rules_apple",
version = "0",
bazel_compatibility = [">=8.0.0"],
compatibility_level = 1,
)
bazel_dep(name = "apple_support", version = "2.9.1")
bazel_dep(name = "bazel_skylib", version = "1.8.2")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "rules_cc", version = "0.2.17")
bazel_dep(
name = "rules_swift",
version = "4.1.1",
max_compatibility_level = 3,
)
bazel_dep(name = "rules_python", version = "1.7.0")
bazel_dep(name = "rules_shell", version = "0.6.1")
bazel_dep(name = "xctestrunner", version = "0.2.16-20260212-4c6f493")
system_sdk = use_extension("@rules_swift//swift:extensions.bzl", "system_sdk")
system_sdk.configure_sdks(
# NOTE: This doesn't apply to downstream repos
exclude_modules = {
"AppleTVOS": [
"CoreAudio_Private", # TODO: Remove once CI >= Xcode 26.4
],
"AppleTVSimulator": [
"CoreAudio_Private", # TODO: Remove once CI >= Xcode 26.4
],
"iPhoneSimulator": [
"AssetsLibrary", # TODO: Remove once CI >= Xcode 26.4
"CoreAudio_Private",
],
"iPhoneOS": [
"AssetsLibrary", # TODO: Remove once CI >= Xcode 26.4
"CoreAudio_Private", # TODO: Remove once CI >= Xcode 26.4
],
"XROS": [
"AccessoryTransportExtension",
"CoreAudio_Private", # TODO: Remove once CI >= Xcode 26.4
],
"XRSimulator": [
"AccessoryTransportExtension",
"CoreAudio_Private", # TODO: Remove once CI >= Xcode 26.4
],
"WatchOS": [
"BrowserEngineKit",
"CoreAudio_Private", # TODO: Remove once CI >= Xcode 26.4
],
"WatchSimulator": [
"BrowserEngineKit",
"CoreAudio_Private", # TODO: Remove once CI >= Xcode 26.4
],
},
include_all = True,
)
use_repo(system_sdk, "system_sdk")
bazel_dep(name = "stardoc", version = "0.8.1", dev_dependency = True)
provisioning_profile_repository = use_extension("//apple:apple.bzl", "provisioning_profile_repository_extension")
use_repo(provisioning_profile_repository, "local_provisioning_profiles")
apple_cc_configure = use_extension("@apple_support//crosstool:setup.bzl", "apple_cc_configure_extension")
use_repo(apple_cc_configure, "local_config_apple_cc")
register_toolchains(
"//apple/internal:apple_xplat_toolchain",
"//apple/internal:mac_toolchain_declaration",
)