2
2
3
3
load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" )
4
4
5
+ SYSROOT_LINUX_BUILD_FILE = """
6
+ filegroup(
7
+ name = "sysroot",
8
+ srcs = glob(["*/**"]),
9
+ visibility = ["//visibility:public"],
10
+ )
11
+ """
12
+
13
+ SYSROOT_DARWIN_BUILD_FILE = """
14
+ filegroup(
15
+ name = "sysroot",
16
+ srcs = glob(
17
+ include = ["**"],
18
+ exclude = ["**/*:*"],
19
+ ),
20
+ visibility = ["//visibility:public"],
21
+ )
22
+ """
23
+
5
24
def _release_tools_impl (_module_ctx ):
6
25
"""Fetch dependencies only needed for release builds used for the legacy WORKSPACE support."""
7
26
8
27
# FIXME: Replace this with the BCR release
9
28
http_archive (
10
29
name = "org_chromium_sysroot_linux_arm64" ,
11
- build_file_content = _SYSROOT_LINUX_BUILD_FILE ,
30
+ build_file_content = SYSROOT_LINUX_BUILD_FILE ,
12
31
sha256 = "b199942a0bd9c34800e8d7b669778ef45f2054b9f106039439383dd66efcef31" ,
13
32
urls = ["https://github.com/DavidZbarsky-at/sysroot-min/releases/download/v0.0.20/debian_bullseye_arm64_sysroot.tar.xz" ],
14
33
)
15
34
16
35
http_archive (
17
36
name = "org_chromium_sysroot_linux_x86_64" ,
18
- build_file_content = _SYSROOT_LINUX_BUILD_FILE ,
37
+ build_file_content = SYSROOT_LINUX_BUILD_FILE ,
19
38
sha256 = "b279dd2926e7d3860bb4e134997a45df5106f680e160a959b945580ba4ec755f" ,
20
39
urls = ["https://github.com/DavidZbarsky-at/sysroot-min/releases/download/v0.0.20/debian_bullseye_amd64_sysroot.tar.xz" ],
21
40
)
@@ -28,7 +47,7 @@ def _release_tools_impl(_module_ctx):
28
47
29
48
http_archive (
30
49
name = "sysroot_darwin_universal" ,
31
- build_file_content = _SYSROOT_DARWIN_BUILD_FILE ,
50
+ build_file_content = SYSROOT_DARWIN_BUILD_FILE ,
32
51
sha256 = "11870a4a3d382b78349861081264921bb883440a7e0b3dd4a007373d87324a38" ,
33
52
strip_prefix = "sdk-macos-11.3-ccbaae84cc39469a6792108b24480a4806e09d59/root" ,
34
53
urls = ["https://github.com/hexops-graveyard/sdk-macos-11.3/archive/ccbaae84cc39469a6792108b24480a4806e09d59.tar.gz" ],
0 commit comments