blob: 8de34e20d15aef48622d6db8713ea53ede12ee78 [file] [log] [blame]
Kristina Chodorow93fbc3e2016-04-27 17:03:28 +00001workspace(name = "io_bazel")
philwo75edd782019-01-29 05:02:44 -08002
tedxae247142022-04-21 16:53:51 -07003load("//tools/build_defs/repo:http.bzl", "http_archive", "http_file", "http_jar")
cushon095f1e22022-02-08 10:54:53 -08004load("//:distdir.bzl", "dist_http_archive", "dist_http_file", "distdir_tar")
Tony Aiuto3b2d3102021-01-07 03:40:14 -08005load("//:distdir_deps.bzl", "DIST_DEPS")
philwo17506af2020-01-28 04:20:39 -08006
7# These can be used as values for the patch_cmds and patch_cmds_win attributes
8# of http_archive, in order to export the WORKSPACE file from the BUILD or
9# BUILD.bazel file. This is useful for cases like //src:test_repos, where we
10# have to be able to trigger a fetch of a repo by depending on it, but we don't
11# actually want to build anything (so we can't depend on a target inside that
12# repo).
13EXPORT_WORKSPACE_IN_BUILD_FILE = [
14 "test -f BUILD && chmod u+w BUILD || true",
15 "echo >> BUILD",
16 "echo 'exports_files([\"WORKSPACE\"], visibility = [\"//visibility:public\"])' >> BUILD",
17]
18
19EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE = [
20 "test -f BUILD.bazel && chmod u+w BUILD.bazel || true",
21 "echo >> BUILD.bazel",
22 "echo 'exports_files([\"WORKSPACE\"], visibility = [\"//visibility:public\"])' >> BUILD.bazel",
23]
24
25EXPORT_WORKSPACE_IN_BUILD_FILE_WIN = [
26 "Add-Content -Path BUILD -Value \"`nexports_files([`\"WORKSPACE`\"], visibility = [`\"//visibility:public`\"])`n\" -Force",
27]
28
29EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN = [
30 "Add-Content -Path BUILD.bazel -Value \"`nexports_files([`\"WORKSPACE`\"], visibility = [`\"//visibility:public`\"])`n\" -Force",
31]
Kristina Chodorow93fbc3e2016-04-27 17:03:28 +000032
David Chenb78bbd52016-03-16 13:17:57 +000033# Protobuf expects an //external:python_headers label which would contain the
34# Python headers if fast Python protos is enabled. Since we are not using fast
35# Python protos, bind python_headers to a dummy target.
36bind(
37 name = "python_headers",
38 actual = "//:dummy",
39)
40
Alpha Lama1a79cb2016-05-15 19:13:52 +000041# Protobuf code generation for GRPC requires three external labels:
42# //external:grpc-java_plugin
43# //external:grpc-jar
44# //external:guava
45bind(
46 name = "grpc-java-plugin",
Vasilios Pantazopoulos5179d032022-04-08 07:55:27 -070047 actual = "//third_party/grpc-java:grpc-java-plugin",
Alpha Lama1a79cb2016-05-15 19:13:52 +000048)
49
50bind(
51 name = "grpc-jar",
Vasilios Pantazopoulos5179d032022-04-08 07:55:27 -070052 actual = "//third_party/grpc-java:grpc-jar",
Alpha Lama1a79cb2016-05-15 19:13:52 +000053)
54
55bind(
56 name = "guava",
57 actual = "//third_party:guava",
58)
59
Tony Aiuto881fc802022-05-25 06:30:17 -070060# We must control the version of rules_license we use, so we load ours before
61# any other repo can bring it in through their deps.
62dist_http_archive(
63 name = "rules_license",
64)
65
Damien Martin-Guillerez0baff0f2017-08-22 17:40:37 +020066# For src/test/shell/bazel:test_srcs
67load("//src/test/shell/bazel:list_source_repository.bzl", "list_source_repository")
cushonb6646232018-09-07 01:44:10 -070068
Damien Martin-Guillerez0baff0f2017-08-22 17:40:37 +020069list_source_repository(name = "local_bazel_source_list")
70
Adam Michael9b7330f2017-03-23 18:40:51 +000071# To run the Android integration tests in //src/test/shell/bazel/android:all or
72# build the Android sample app in //examples/android/java/bazel:hello_world
73#
74# 1. Install an Android SDK and NDK from https://developer.android.com
75# 2. Set the $ANDROID_HOME and $ANDROID_NDK_HOME environment variables
76# 3. Uncomment the two lines below
77#
78# android_sdk_repository(name = "androidsdk")
79# android_ndk_repository(name = "androidndk")
Cal Peyser2152bc12016-04-22 17:08:59 +000080
Adam Michael8a136d82016-11-16 23:04:46 +000081# In order to run //src/test/shell/bazel:maven_skylark_test, follow the
82# instructions above for the Android integration tests and uncomment the
83# following lines:
84# load("//tools/build_defs/repo:maven_rules.bzl", "maven_dependency_plugin")
85# maven_dependency_plugin()
86
gregceca48e9a2020-04-14 08:54:38 -070087# This allows rules written in Starlark to locate apple build tools.
philwo915fa8f2017-05-09 12:17:12 -040088bind(
89 name = "xcrunwrapper",
90 actual = "@bazel_tools//tools/objc:xcrunwrapper",
91)
Carmi Grushkobfaff292016-08-17 18:37:55 +000092
Tony Aiutoe973aef2021-01-11 00:32:51 -080093dist_http_archive(
Carmi Grushko0fd73d62017-02-17 06:49:40 +000094 name = "com_google_protobuf",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -080095 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
96 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Carmi Grushko0fd73d62017-02-17 06:49:40 +000097)
98
brandjoncb4ba072019-08-01 12:41:43 -070099# This is a mock version of bazelbuild/rules_python that contains only
100# @rules_python//python:defs.bzl. It is used by protobuf.
101# TODO(#9029): We could potentially replace this with the real @rules_python.
102new_local_repository(
103 name = "rules_python",
brandjoncb4ba072019-08-01 12:41:43 -0700104 build_file = "//third_party/rules_python:BUILD",
laurentlbaf265672019-10-22 10:06:21 -0700105 path = "./third_party/rules_python",
brandjoncb4ba072019-08-01 12:41:43 -0700106 workspace_file = "//third_party/rules_python:rules_python.WORKSPACE",
107)
108
John Cater2f838922018-11-12 08:19:03 -0800109local_repository(
Jakob Buchgraber166f28c2017-05-30 16:41:18 +0200110 name = "googleapis",
cushonb6646232018-09-07 01:44:10 -0700111 path = "./third_party/googleapis/",
Jakob Buchgraber166f28c2017-05-30 16:41:18 +0200112)
113
John Cater2f838922018-11-12 08:19:03 -0800114local_repository(
Ola Rozenfeld930119a2018-08-10 11:04:44 -0700115 name = "remoteapis",
cushonb6646232018-09-07 01:44:10 -0700116 path = "./third_party/remoteapis/",
Ola Rozenfeld930119a2018-08-10 11:04:44 -0700117)
118
mennyf431b0c2021-01-13 09:18:29 -0800119dist_http_archive(
kmbbfd89d62018-04-11 14:26:56 -0700120 name = "desugar_jdk_libs",
kmbbfd89d62018-04-11 14:26:56 -0700121)
122
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700123distdir_tar(
124 name = "additional_distfiles",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700125 # Keep in sync with the archives fetched as part of building bazel.
cparsons871cd6f2018-08-16 09:10:38 -0700126 archives = [
Googler6367a512022-06-28 08:19:15 -0700127 "android_tools_pkg-0.26.0.tar.gz",
tedxae247142022-04-21 16:53:51 -0700128 # for android_gmaven_r8
129 "r8-3.3.28.jar",
cparsons871cd6f2018-08-16 09:10:38 -0700130 ],
cushonb6646232018-09-07 01:44:10 -0700131 dirname = "derived/distdir",
Tony Aiutoe973aef2021-01-11 00:32:51 -0800132 dist_deps = {dep: attrs for dep, attrs in DIST_DEPS.items() if "additional_distfiles" in attrs["used_in"]},
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700133 sha256 = {
Googler6367a512022-06-28 08:19:15 -0700134 "android_tools_pkg-0.26.0.tar.gz": "a86d205da8bd08515d18bb4b98e4b66b8805e57008ec55118ff5ce038c57a5f1",
tedxae247142022-04-21 16:53:51 -0700135 "r8-3.3.28.jar": "8626ca32fb47aba7fddd2c897615e2e8ffcdb4d4b213572a2aefb3f838f01972",
cushonb6646232018-09-07 01:44:10 -0700136 },
137 urls = {
Googler6367a512022-06-28 08:19:15 -0700138 "android_tools_pkg-0.26.0.tar.gz": [
139 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.26.0.tar.gz",
Jingwen Chen186929e2019-04-02 10:38:30 -0700140 ],
tedxae247142022-04-21 16:53:51 -0700141 "r8-3.3.28.jar": [
142 "https://maven.google.com/com/android/tools/r8/3.3.28/r8-3.3.28.jar",
143 ],
cushonb6646232018-09-07 01:44:10 -0700144 },
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700145)
146
Philipp Wollermann95048272017-03-17 15:11:58 +0000147# OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK.
148http_file(
149 name = "openjdk_linux",
philwo75edd782019-01-29 05:02:44 -0800150 downloaded_file_path = "zulu-linux.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800151 sha256 = "65bfe4e0ffa74a680ee4410db46b17e30cd9397b664a92a886599fe1f3530969",
152 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-linux_x64-linux_x64-allmodules-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581689070.tar.gz"],
Philipp Wollermann95048272017-03-17 15:11:58 +0000153)
154
cushon095f1e22022-02-08 10:54:53 -0800155dist_http_file(
Tobias Werth218e8f62018-12-13 04:44:35 -0800156 name = "openjdk_linux_vanilla",
philwo75edd782019-01-29 05:02:44 -0800157 downloaded_file_path = "zulu-linux-vanilla.tar.gz",
Tobias Werth218e8f62018-12-13 04:44:35 -0800158)
159
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800160http_file(
161 name = "openjdk_linux_minimal",
philwo75edd782019-01-29 05:02:44 -0800162 downloaded_file_path = "zulu-linux-minimal.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800163 sha256 = "91f7d52f695c681d4e21499b4319d548aadef249a6b3053e306308992e1e29ae",
164 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-linux_x64-minimal-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581689068.tar.gz"],
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800165)
166
Philipp Wollermann95048272017-03-17 15:11:58 +0000167http_file(
philwo9f7fe692019-06-27 06:53:12 -0700168 name = "openjdk_linux_aarch64",
169 downloaded_file_path = "zulu-linux-aarch64.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800170 sha256 = "6b245793087300db3ee82ab0d165614f193a73a60f2f011e347756c1e6ca5bac",
171 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.48-ca-jdk11.0.6/zulu11.37.48-ca-jdk11.0.6-linux_aarch64-allmodules-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581690750.tar.gz"],
philwo9f7fe692019-06-27 06:53:12 -0700172)
173
cushon095f1e22022-02-08 10:54:53 -0800174dist_http_file(
philwo9f7fe692019-06-27 06:53:12 -0700175 name = "openjdk_linux_aarch64_vanilla",
176 downloaded_file_path = "zulu-linux-aarch64-vanilla.tar.gz",
philwo9f7fe692019-06-27 06:53:12 -0700177)
178
179http_file(
180 name = "openjdk_linux_aarch64_minimal",
181 downloaded_file_path = "zulu-linux-aarch64-minimal.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800182 sha256 = "06f6520a877704c77614bcfc4f846cc7cbcbf5eaad149bf7f19f4f16e285c9de",
183 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.48-ca-jdk11.0.6/zulu11.37.48-ca-jdk11.0.6-linux_aarch64-minimal-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581690750.tar.gz"],
philwo9f7fe692019-06-27 06:53:12 -0700184)
185
cushon095f1e22022-02-08 10:54:53 -0800186dist_http_file(
Jason Furmanek04e073e2020-05-28 05:48:09 -0700187 name = "openjdk_linux_ppc64le_vanilla",
Ivo List4c6c9992020-09-23 09:25:05 -0700188 downloaded_file_path = "adoptopenjdk-ppc64le-vanilla.tar.gz",
Jason Furmanek04e073e2020-05-28 05:48:09 -0700189)
190
cushon095f1e22022-02-08 10:54:53 -0800191dist_http_file(
Ruixin Baoe14a6f22020-08-21 06:17:24 -0700192 name = "openjdk_linux_s390x_vanilla",
Ivo List4c6c9992020-09-23 09:25:05 -0700193 downloaded_file_path = "adoptopenjdk-s390x-vanilla.tar.gz",
Ruixin Baoe14a6f22020-08-21 06:17:24 -0700194)
195
196http_file(
Thi Doanb39a51c2020-12-07 11:27:56 -0800197 name = "openjdk_macos_x86_64",
philwo75edd782019-01-29 05:02:44 -0800198 downloaded_file_path = "zulu-macos.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800199 sha256 = "8e283cfd23c7555be8e17295ed76eb8f00324c88ab904b8de37bbe08f90e569b",
200 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-macosx_x64-allmodules-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581689066.tar.gz"],
Philipp Wollermann95048272017-03-17 15:11:58 +0000201)
202
cushon095f1e22022-02-08 10:54:53 -0800203dist_http_file(
Thi Doanb39a51c2020-12-07 11:27:56 -0800204 name = "openjdk_macos_x86_64_vanilla",
philwo75edd782019-01-29 05:02:44 -0800205 downloaded_file_path = "zulu-macos-vanilla.tar.gz",
Tobias Werth218e8f62018-12-13 04:44:35 -0800206)
207
208http_file(
Thi Doanb39a51c2020-12-07 11:27:56 -0800209 name = "openjdk_macos_x86_64_minimal",
philwo75edd782019-01-29 05:02:44 -0800210 downloaded_file_path = "zulu-macos-minimal.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800211 sha256 = "1bacb1c07035d4066d79f0b65b4ea0ebd1954f3662bdfe3618da382ac8fd23a6",
212 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-macosx_x64-minimal-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581689063.tar.gz"],
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800213)
214
215http_file(
Yun Peng8c7e11a2021-01-27 03:23:12 -0800216 name = "openjdk_macos_aarch64",
217 downloaded_file_path = "zulu-macos-aarch64.tar.gz",
218 sha256 = "a900ef793cb34b03ac5d93ea2f67291b6842e99d500934e19393a8d8f9bfa6ff",
219 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.45.27-ca-jdk11.0.10/zulu11.45.27-ca-jdk11.0.10-macosx_aarch64-allmodules-1611665569.tar.gz"],
220)
221
cushon095f1e22022-02-08 10:54:53 -0800222dist_http_file(
Yun Peng8c7e11a2021-01-27 03:23:12 -0800223 name = "openjdk_macos_aarch64_vanilla",
224 downloaded_file_path = "zulu-macos-aarch64-vanilla.tar.gz",
Yun Peng8c7e11a2021-01-27 03:23:12 -0800225)
226
227http_file(
228 name = "openjdk_macos_aarch64_minimal",
229 downloaded_file_path = "zulu-macos-aarch64-minimal.tar.gz",
230 sha256 = "f4f606926e6deeaa8b8397e299313d9df87642fe464b0ccf1ed0432aeb00640b",
231 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.45.27-ca-jdk11.0.10/zulu11.45.27-ca-jdk11.0.10-macosx_aarch64-minimal-1611665562.tar.gz"],
232)
233
234http_file(
Philipp Wollermann95048272017-03-17 15:11:58 +0000235 name = "openjdk_win",
philwo75edd782019-01-29 05:02:44 -0800236 downloaded_file_path = "zulu-win.zip",
philwo3ac4af42020-02-14 07:58:55 -0800237 sha256 = "8e1604b3a27dcf639bc6d1a73103f1211848139e4cceb081d0a74a99e1e6f995",
238 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-win_x64-allmodules-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581689080.zip"],
Philipp Wollermann95048272017-03-17 15:11:58 +0000239)
Googler5f36bf82017-07-12 20:43:08 +0200240
cushon095f1e22022-02-08 10:54:53 -0800241dist_http_file(
Tobias Werth218e8f62018-12-13 04:44:35 -0800242 name = "openjdk_win_vanilla",
philwo75edd782019-01-29 05:02:44 -0800243 downloaded_file_path = "zulu-win-vanilla.zip",
Tobias Werth218e8f62018-12-13 04:44:35 -0800244)
245
cushon095f1e22022-02-08 10:54:53 -0800246dist_http_file(
Niyas Sait0ba4caa2022-02-02 10:29:06 -0800247 name = "openjdk_win_arm64_vanilla",
248 downloaded_file_path = "zulu-win-arm64.zip",
Niyas Sait0ba4caa2022-02-02 10:29:06 -0800249)
250
251http_file(
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800252 name = "openjdk_win_minimal",
philwo75edd782019-01-29 05:02:44 -0800253 downloaded_file_path = "zulu-win-minimal.zip",
philwo3ac4af42020-02-14 07:58:55 -0800254 sha256 = "b90a713c9c2d9ea23cad44d2c2dfcc9af22faba9bde55dedc1c3bb9f556ac1ae",
255 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-win_x64-minimal-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581689080.zip"],
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800256)
257
Tony Aiutoe973aef2021-01-11 00:32:51 -0800258dist_http_archive(
Chi Wang26b94ff2021-09-28 23:42:26 -0700259 name = "bazelci_rules",
philwo17506af2020-01-28 04:20:39 -0800260 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
261 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Googler5f36bf82017-07-12 20:43:08 +0200262)
ccalvarin1cbe62a2017-08-14 21:09:07 +0200263
Chi Wang26b94ff2021-09-28 23:42:26 -0700264load("@bazelci_rules//:rbe_repo.bzl", "rbe_preconfig")
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700265
Chi Wang26b94ff2021-09-28 23:42:26 -0700266rbe_preconfig(
Chi Wang26b94ff2021-09-28 23:42:26 -0700267 name = "rbe_ubuntu1804_java11",
268 toolchain = "ubuntu1804-bazel-java11",
269)
Googlerde0612a2019-03-07 06:06:55 -0800270
ccalvarin8e9f4a82018-03-23 08:19:37 -0700271http_archive(
272 name = "com_google_googletest",
Yannic Bonenberger5b4ab2d2019-10-15 05:38:04 -0700273 sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb",
274 strip_prefix = "googletest-release-1.10.0",
ccalvarin8e9f4a82018-03-23 08:19:37 -0700275 urls = [
Yannic Bonenberger5b4ab2d2019-10-15 05:38:04 -0700276 "https://mirror.bazel.build/github.com/google/googletest/archive/release-1.10.0.tar.gz",
277 "https://github.com/google/googletest/archive/release-1.10.0.tar.gz",
ccalvarin8e9f4a82018-03-23 08:19:37 -0700278 ],
ccalvarin8e9f4a82018-03-23 08:19:37 -0700279)
280
Tony Aiuto2b7ec5c2021-01-11 07:50:26 -0800281dist_http_archive(
cparsons871cd6f2018-08-16 09:10:38 -0700282 name = "bazel_skylib",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800283 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
284 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
cparsonsa5be6612018-08-27 13:21:21 -0700285)
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700286
Alessandro Patti6da80862021-11-11 22:49:37 -0800287dist_http_archive(
288 name = "zstd-jni",
Liam Miller-Cushonc81e1752022-01-13 17:52:18 -0800289 build_file = "//third_party:zstd-jni/zstd-jni.BUILD",
Alessandro Patti6da80862021-11-11 22:49:37 -0800290 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
291 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Liam Miller-Cushonc81e1752022-01-13 17:52:18 -0800292 strip_prefix = "zstd-jni-1.5.0-4",
Alessandro Patti6da80862021-11-11 22:49:37 -0800293)
294
ajurkowski433dc602021-03-12 10:22:39 -0800295http_archive(
296 name = "org_snakeyaml",
ajurkowski433dc602021-03-12 10:22:39 -0800297 build_file_content = """
298java_library(
299 name = "snakeyaml",
ajurkowski433dc602021-03-12 10:22:39 -0800300 srcs = glob(["src/main/**/*.java"]),
fweikert69895ba2022-07-13 04:56:04 -0700301 visibility = [
302 "@io_bazel//src/main/java/com/google/devtools/build/docgen:__pkg__",
303 "@com_google_testparameterinjector//:__pkg__",
304 ],
ajurkowski433dc602021-03-12 10:22:39 -0800305)
306""",
cushonc1d1df02021-04-07 11:07:00 -0700307 sha256 = "fd0e0cc6c5974fc8f08be3a15fb4a59954c7dd958b5b68186a803de6420b6e40",
308 strip_prefix = "asomov-snakeyaml-b28f0b4d87c6",
ajurkowski239a8e72021-03-23 10:22:49 -0700309 urls = ["https://mirror.bazel.build/bitbucket.org/asomov/snakeyaml/get/snakeyaml-1.28.tar.gz"],
ajurkowski433dc602021-03-12 10:22:39 -0800310)
311
ajurkowski433dc602021-03-12 10:22:39 -0800312http_archive(
313 name = "com_google_testparameterinjector",
ajurkowski433dc602021-03-12 10:22:39 -0800314 build_file_content = """
315java_library(
316 name = "testparameterinjector",
317 testonly = True,
318 srcs = glob(["src/main/**/*.java"]),
319 deps = [
320 "@org_snakeyaml//:snakeyaml",
321 "@//third_party:auto_value",
322 "@//third_party:guava",
323 "@//third_party:junit4",
324 "@//third_party/protobuf:protobuf_java",
325 ],
ajurkowskia3353d22021-03-15 12:38:48 -0700326 visibility = ["//visibility:public"],
ajurkowski433dc602021-03-12 10:22:39 -0800327)
328""",
cushonc1d1df02021-04-07 11:07:00 -0700329 sha256 = "562a0e87eb413a7dcad29ebc8d578f6f97503473943585b051c1398a58189b06",
330 strip_prefix = "TestParameterInjector-1.0",
ajurkowski433dc602021-03-12 10:22:39 -0800331 urls = [
332 "https://mirror.bazel.build/github.com/google/TestParameterInjector/archive/v1.0.tar.gz",
333 "https://github.com/google/TestParameterInjector/archive/v1.0.tar.gz",
334 ],
335)
336
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800337# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
Tony Aiuto3b2d3102021-01-07 03:40:14 -0800338dist_http_archive(
oquenchil96068872019-07-08 07:01:39 -0700339 name = "rules_cc",
philwo17506af2020-01-28 04:20:39 -0800340 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
341 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
oquenchil96068872019-07-08 07:01:39 -0700342)
343
Tony Aiutob15a8b42021-01-08 07:42:57 -0800344dist_http_archive(
iirinab815b792019-07-17 05:47:01 -0700345 name = "rules_java",
philwo17506af2020-01-28 04:20:39 -0800346 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
347 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
iirinab815b792019-07-17 05:47:01 -0700348)
349
Tony Aiuto320bc942021-01-14 07:43:21 -0800350dist_http_archive(
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700351 name = "rules_proto",
philwo17506af2020-01-28 04:20:39 -0800352 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
353 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700354)
355
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700356# For testing, have an distdir_tar with all the archives implicit in every
357# WORKSPACE, to that they don't have to be refetched for every test
358# calling `bazel sync`.
359distdir_tar(
Jingwen Chen186929e2019-04-02 10:38:30 -0700360 name = "test_WORKSPACE_files",
philwo75edd782019-01-29 05:02:44 -0800361 archives = [
Googler6367a512022-06-28 08:19:15 -0700362 "android_tools_pkg-0.26.0.tar.gz",
tedxae247142022-04-21 16:53:51 -0700363 "r8-3.3.28.jar",
philwo75edd782019-01-29 05:02:44 -0800364 ],
Jingwen Chen186929e2019-04-02 10:38:30 -0700365 dirname = "test_WORKSPACE/distdir",
Tony Aiutoe973aef2021-01-11 00:32:51 -0800366 dist_deps = {dep: attrs for dep, attrs in DIST_DEPS.items() if "test_WORKSPACE_files" in attrs["used_in"]},
philwo75edd782019-01-29 05:02:44 -0800367 sha256 = {
Googler6367a512022-06-28 08:19:15 -0700368 "android_tools_pkg-0.26.0.tar.gz": "a86d205da8bd08515d18bb4b98e4b66b8805e57008ec55118ff5ce038c57a5f1",
tedxae247142022-04-21 16:53:51 -0700369 "r8-3.3.28.jar": "8626ca32fb47aba7fddd2c897615e2e8ffcdb4d4b213572a2aefb3f838f01972",
philwo75edd782019-01-29 05:02:44 -0800370 },
371 urls = {
Googler6367a512022-06-28 08:19:15 -0700372 "android_tools_pkg-0.26.0.tar.gz": [
373 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.26.0.tar.gz",
Jingwen Chen186929e2019-04-02 10:38:30 -0700374 ],
tedxae247142022-04-21 16:53:51 -0700375 "r8-3.3.28.jar": [
376 "https://maven.google.com/com/android/tools/r8/3.3.28/r8-3.3.28.jar",
377 ],
philwo75edd782019-01-29 05:02:44 -0800378 },
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700379)
Jingwen Chen186bdcd2018-12-14 10:27:23 -0800380
Tony Aiuto2b7ec5c2021-01-11 07:50:26 -0800381dist_http_archive(
382 name = "io_bazel_skydoc",
383)
384
wyv8062ca42020-05-25 00:21:00 -0700385# Stardoc recommends declaring its dependencies via "*_dependencies" functions.
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700386# This requires that the repositories these functions come from need to be
387# fetched unconditionally for everything (including just building bazel!), so
388# provide them as http_archives that can be shiped in the distdir, to keep the
389# distribution archive self-contained.
Tony Aiuto1c9e7ca2021-01-05 08:01:21 -0800390dist_http_archive(
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700391 name = "io_bazel_rules_sass",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700392)
iirinaf5c334262019-03-19 02:44:59 -0700393
Tony Aiuto1c9e7ca2021-01-05 08:01:21 -0800394dist_http_archive(
Googler18acfce2022-06-21 05:41:07 -0700395 name = "rules_nodejs",
396)
397
398dist_http_archive(
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700399 name = "build_bazel_rules_nodejs",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700400)
401
Tony Aiutoe973aef2021-01-11 00:32:51 -0800402dist_http_archive(
hlopkoaaf64572019-06-14 02:33:56 -0700403 name = "platforms",
hlopkoaaf64572019-06-14 02:33:56 -0700404)
405
philwo17506af2020-01-28 04:20:39 -0800406# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/android/android_remote_tools.WORKSPACE
407http_archive(
408 name = "android_tools_for_testing",
409 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
410 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Googler6367a512022-06-28 08:19:15 -0700411 sha256 = "a86d205da8bd08515d18bb4b98e4b66b8805e57008ec55118ff5ce038c57a5f1", # DO_NOT_REMOVE_THIS_ANDROID_TOOLS_UPDATE_MARKER
412 url = "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.26.0.tar.gz",
philwo17506af2020-01-28 04:20:39 -0800413)
414
tedxae247142022-04-21 16:53:51 -0700415# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/android/android_remote_tools.WORKSPACE
416http_jar(
417 name = "android_gmaven_r8_for_testing",
418 sha256 = "8626ca32fb47aba7fddd2c897615e2e8ffcdb4d4b213572a2aefb3f838f01972",
419 url = "https://maven.google.com/com/android/tools/r8/3.3.28/r8-3.3.28.jar",
420)
421
aiutobbeb1da2021-01-15 06:50:56 -0800422dist_http_archive(
423 name = "remote_coverage_tools",
philwo17506af2020-01-28 04:20:39 -0800424 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
425 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800426)
427
Ivo Listb7411162022-01-14 09:53:01 -0800428dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800429 name = "remotejdk11_linux_for_testing",
430 build_file = "@local_jdk//:BUILD.bazel",
431 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
432 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800433)
434
Ivo Listb7411162022-01-14 09:53:01 -0800435dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800436 name = "remotejdk11_linux_aarch64_for_testing",
437 build_file = "@local_jdk//:BUILD.bazel",
438 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
439 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800440)
441
Ivo Listb7411162022-01-14 09:53:01 -0800442dist_http_archive(
Jason Furmanek04e073e2020-05-28 05:48:09 -0700443 name = "remotejdk11_linux_ppc64le_for_testing",
444 build_file = "@local_jdk//:BUILD.bazel",
445 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
446 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Jason Furmanek04e073e2020-05-28 05:48:09 -0700447)
448
Ivo Listb7411162022-01-14 09:53:01 -0800449dist_http_archive(
Ruixin Baoe14a6f22020-08-21 06:17:24 -0700450 name = "remotejdk11_linux_s390x_for_testing",
451 build_file = "@local_jdk//:BUILD.bazel",
452 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
453 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Ruixin Baoe14a6f22020-08-21 06:17:24 -0700454)
455
Ivo Listb7411162022-01-14 09:53:01 -0800456dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800457 name = "remotejdk11_macos_for_testing",
458 build_file = "@local_jdk//:BUILD.bazel",
459 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
460 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800461)
462
Ivo Listb7411162022-01-14 09:53:01 -0800463dist_http_archive(
Yun Peng8c7e11a2021-01-27 03:23:12 -0800464 name = "remotejdk11_macos_aarch64_for_testing",
465 build_file = "@local_jdk//:BUILD.bazel",
466 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
467 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Yun Peng8c7e11a2021-01-27 03:23:12 -0800468)
469
Ivo Listb7411162022-01-14 09:53:01 -0800470dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800471 name = "remotejdk11_win_for_testing",
472 build_file = "@local_jdk//:BUILD.bazel",
473 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
474 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
cushon095f1e22022-02-08 10:54:53 -0800475)
philwo17506af2020-01-28 04:20:39 -0800476
Ivo Listb7411162022-01-14 09:53:01 -0800477dist_http_archive(
Niyas Saitb6024252022-02-10 06:59:31 -0800478 name = "remotejdk11_win_arm64_for_testing",
479 build_file = "@local_jdk//:BUILD.bazel",
480 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
481 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Niyas Saitb6024252022-02-10 06:59:31 -0800482)
483
Liam Miller-Cushona7f1c712022-03-29 11:57:55 -0700484[
485 dist_http_archive(
486 name = "remotejdk%s_%s_for_testing" % (version, os),
487 build_file = "@local_jdk//:BUILD.bazel",
488 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
489 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
490 )
491 for version in ("17", "18")
492 for os in ("linux", "macos", "macos_aarch64", "win", "win_arm64")
493]
Niyas Saitb6024252022-02-10 06:59:31 -0800494
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800495# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
496dist_http_archive(
Ivo List62022712020-11-27 07:24:36 -0800497 name = "remote_java_tools_for_testing",
498 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
499 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo List62022712020-11-27 07:24:36 -0800500)
501
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800502# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
503dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800504 name = "remote_java_tools_linux_for_testing",
505 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
506 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800507)
508
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800509# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
510dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800511 name = "remote_java_tools_windows_for_testing",
512 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
513 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800514)
515
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800516# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
517dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800518 name = "remote_java_tools_darwin_for_testing",
519 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
520 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800521)
522
Tony Aiuto1bb1b522021-01-13 10:39:41 -0800523# Used in src/test/shell/bazel/testdata/jdk_http_archives.
524dist_http_archive(
Ivo List62022712020-11-27 07:24:36 -0800525 name = "remote_java_tools_test",
philwo17506af2020-01-28 04:20:39 -0800526 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
527 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800528)
529
Tony Aiuto1bb1b522021-01-13 10:39:41 -0800530# Used in src/test/shell/bazel/testdata/jdk_http_archives.
531dist_http_archive(
Ivo List62022712020-11-27 07:24:36 -0800532 name = "remote_java_tools_test_linux",
philwo17506af2020-01-28 04:20:39 -0800533 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
534 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800535)
536
Tony Aiuto1bb1b522021-01-13 10:39:41 -0800537# Used in src/test/shell/bazel/testdata/jdk_http_archives.
538dist_http_archive(
Ivo List62022712020-11-27 07:24:36 -0800539 name = "remote_java_tools_test_windows",
philwo17506af2020-01-28 04:20:39 -0800540 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
541 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo List62022712020-11-27 07:24:36 -0800542)
543
Tony Aiuto1bb1b522021-01-13 10:39:41 -0800544# Used in src/test/shell/bazel/testdata/jdk_http_archives.
545dist_http_archive(
Ivo List62022712020-11-27 07:24:36 -0800546 name = "remote_java_tools_test_darwin",
547 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
548 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800549)
550
Ivo Listb7411162022-01-14 09:53:01 -0800551dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800552 name = "openjdk11_linux_archive",
553 build_file_content = """
554java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
555exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
556""",
philwo17506af2020-01-28 04:20:39 -0800557)
558
559# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
cushon095f1e22022-02-08 10:54:53 -0800560dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800561 name = "openjdk11_darwin_archive",
562 build_file_content = """
563java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
564exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
565""",
philwo17506af2020-01-28 04:20:39 -0800566)
567
568# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
cushon095f1e22022-02-08 10:54:53 -0800569dist_http_archive(
Yun Peng8c7e11a2021-01-27 03:23:12 -0800570 name = "openjdk11_darwin_aarch64_archive",
571 build_file_content = """
572java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
573exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
574""",
Yun Peng8c7e11a2021-01-27 03:23:12 -0800575)
576
577# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
cushon095f1e22022-02-08 10:54:53 -0800578dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800579 name = "openjdk11_windows_archive",
580 build_file_content = """
581java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
582exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
583""",
philwo17506af2020-01-28 04:20:39 -0800584)
585
David Ostrovskyfe291f72020-07-23 04:08:29 -0700586# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
cushon095f1e22022-02-08 10:54:53 -0800587dist_http_archive(
Niyas Saitb6024252022-02-10 06:59:31 -0800588 name = "openjdk11_windows_arm64_archive",
589 build_file_content = """
590java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
591exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
592""",
593)
594
595# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
Liam Miller-Cushone4461d32022-03-30 13:06:59 -0700596[
597 dist_http_archive(
598 name = "openjdk%s_%s_archive" % (version, os),
599 build_file_content = """
Liam Miller-Cushoneb7bf8c2021-09-30 07:53:06 -0700600java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
601exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
602""",
Liam Miller-Cushone4461d32022-03-30 13:06:59 -0700603 )
604 for version in ("17", "18")
605 for os in ("linux", "darwin", "darwin_aarch64", "windows", "windows_arm64")
606]
Liam Miller-Cushona7f1c712022-03-29 11:57:55 -0700607
wyv8062ca42020-05-25 00:21:00 -0700608load("@io_bazel_skydoc//:setup.bzl", "stardoc_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700609
wyv8062ca42020-05-25 00:21:00 -0700610stardoc_repositories()
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700611
612load("@io_bazel_rules_sass//:package.bzl", "rules_sass_dependencies")
iirinaf5c334262019-03-19 02:44:59 -0700613
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700614rules_sass_dependencies()
615
Googler18acfce2022-06-21 05:41:07 -0700616load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies")
617
618build_bazel_rules_nodejs_dependencies()
619
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800620load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700621
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700622node_repositories()
623
624load("@io_bazel_rules_sass//:defs.bzl", "sass_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700625
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700626sass_repositories()
Jakob Buchgraber593c5302019-04-16 10:12:20 -0700627
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700628register_execution_platforms("//:default_host_platform") # buildozer: disable=positional-args
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700629
630# Tools for building deb, rpm and tar files.
Tony Aiuto1c9e7ca2021-01-05 08:01:21 -0800631dist_http_archive(
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700632 name = "rules_pkg",
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700633)
iirinad26a3c12019-07-19 04:39:33 -0700634
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700635load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
iirinad26a3c12019-07-19 04:39:33 -0700636
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700637rules_pkg_dependencies()
Laszlo Csomor3e023182019-08-01 05:05:09 -0700638
639# Toolchains for Resource Compilation (.rc files on Windows).
640load("//src/main/res:winsdk_configure.bzl", "winsdk_configure")
641
642winsdk_configure(name = "local_config_winsdk")
643
644load("@local_config_winsdk//:toolchains.bzl", "register_local_rc_exe_toolchains")
645
646register_local_rc_exe_toolchains()
647
648register_toolchains("//src/main/res:empty_rc_toolchain")
Yun Peng01609b82020-05-04 11:12:33 -0700649
Tony Aiutoe973aef2021-01-11 00:32:51 -0800650dist_http_archive(
Yun Penge2f11d72020-06-03 09:16:35 -0700651 name = "com_github_grpc_grpc",
Yun Penge2f11d72020-06-03 09:16:35 -0700652)
653
Yun Pengb47aa712022-04-05 04:21:29 -0700654# Override the abseil-cpp version defined in grpc_deps(), which doesn't work on latest macOS
655# Fixes https://github.com/bazelbuild/bazel/issues/15168
656dist_http_archive(
657 name = "com_google_absl",
658)
659
Yun Penge2f11d72020-06-03 09:16:35 -0700660# Projects using gRPC as an external dependency must call both grpc_deps() and
661# grpc_extra_deps().
662load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
Ivo List4c6c9992020-09-23 09:25:05 -0700663
Yun Penge2f11d72020-06-03 09:16:35 -0700664grpc_deps()
665
666load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
Ivo List4c6c9992020-09-23 09:25:05 -0700667
Yun Penge2f11d72020-06-03 09:16:35 -0700668grpc_extra_deps()
669
Yun Peng01609b82020-05-04 11:12:33 -0700670load("//tools/distributions/debian:deps.bzl", "debian_deps")
Ivo List4c6c9992020-09-23 09:25:05 -0700671
Yun Peng01609b82020-05-04 11:12:33 -0700672debian_deps()
Andrzej Guszak0f9a5922020-06-25 05:47:21 -0700673
674load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
Ivo List4c6c9992020-09-23 09:25:05 -0700675
Andrzej Guszak0f9a5922020-06-25 05:47:21 -0700676bazel_skylib_workspace()