blob: d68457ac913bec825c5bb300acefa593213ba780 [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
Damien Martin-Guillerez0baff0f2017-08-22 17:40:37 +020060# For src/test/shell/bazel:test_srcs
61load("//src/test/shell/bazel:list_source_repository.bzl", "list_source_repository")
cushonb6646232018-09-07 01:44:10 -070062
Damien Martin-Guillerez0baff0f2017-08-22 17:40:37 +020063list_source_repository(name = "local_bazel_source_list")
64
Adam Michael9b7330f2017-03-23 18:40:51 +000065# To run the Android integration tests in //src/test/shell/bazel/android:all or
66# build the Android sample app in //examples/android/java/bazel:hello_world
67#
68# 1. Install an Android SDK and NDK from https://developer.android.com
69# 2. Set the $ANDROID_HOME and $ANDROID_NDK_HOME environment variables
70# 3. Uncomment the two lines below
71#
72# android_sdk_repository(name = "androidsdk")
73# android_ndk_repository(name = "androidndk")
Cal Peyser2152bc12016-04-22 17:08:59 +000074
Adam Michael8a136d82016-11-16 23:04:46 +000075# In order to run //src/test/shell/bazel:maven_skylark_test, follow the
76# instructions above for the Android integration tests and uncomment the
77# following lines:
78# load("//tools/build_defs/repo:maven_rules.bzl", "maven_dependency_plugin")
79# maven_dependency_plugin()
80
gregceca48e9a2020-04-14 08:54:38 -070081# This allows rules written in Starlark to locate apple build tools.
philwo915fa8f2017-05-09 12:17:12 -040082bind(
83 name = "xcrunwrapper",
84 actual = "@bazel_tools//tools/objc:xcrunwrapper",
85)
Carmi Grushkobfaff292016-08-17 18:37:55 +000086
Tony Aiutoe973aef2021-01-11 00:32:51 -080087dist_http_archive(
Carmi Grushko0fd73d62017-02-17 06:49:40 +000088 name = "com_google_protobuf",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -080089 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
90 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Carmi Grushko0fd73d62017-02-17 06:49:40 +000091)
92
brandjoncb4ba072019-08-01 12:41:43 -070093# This is a mock version of bazelbuild/rules_python that contains only
94# @rules_python//python:defs.bzl. It is used by protobuf.
95# TODO(#9029): We could potentially replace this with the real @rules_python.
96new_local_repository(
97 name = "rules_python",
brandjoncb4ba072019-08-01 12:41:43 -070098 build_file = "//third_party/rules_python:BUILD",
laurentlbaf265672019-10-22 10:06:21 -070099 path = "./third_party/rules_python",
brandjoncb4ba072019-08-01 12:41:43 -0700100 workspace_file = "//third_party/rules_python:rules_python.WORKSPACE",
101)
102
John Cater2f838922018-11-12 08:19:03 -0800103local_repository(
Jakob Buchgraber166f28c2017-05-30 16:41:18 +0200104 name = "googleapis",
cushonb6646232018-09-07 01:44:10 -0700105 path = "./third_party/googleapis/",
Jakob Buchgraber166f28c2017-05-30 16:41:18 +0200106)
107
John Cater2f838922018-11-12 08:19:03 -0800108local_repository(
Ola Rozenfeld930119a2018-08-10 11:04:44 -0700109 name = "remoteapis",
cushonb6646232018-09-07 01:44:10 -0700110 path = "./third_party/remoteapis/",
Ola Rozenfeld930119a2018-08-10 11:04:44 -0700111)
112
mennyf431b0c2021-01-13 09:18:29 -0800113dist_http_archive(
kmbbfd89d62018-04-11 14:26:56 -0700114 name = "desugar_jdk_libs",
kmbbfd89d62018-04-11 14:26:56 -0700115)
116
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700117distdir_tar(
118 name = "additional_distfiles",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700119 # Keep in sync with the archives fetched as part of building bazel.
cparsons871cd6f2018-08-16 09:10:38 -0700120 archives = [
tedxdac25e72022-04-19 15:39:03 -0700121 "android_tools_pkg-0.24.0.tar.gz",
tedxae247142022-04-21 16:53:51 -0700122 # for android_gmaven_r8
123 "r8-3.3.28.jar",
cparsons871cd6f2018-08-16 09:10:38 -0700124 ],
cushonb6646232018-09-07 01:44:10 -0700125 dirname = "derived/distdir",
Tony Aiutoe973aef2021-01-11 00:32:51 -0800126 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 -0700127 sha256 = {
tedxdac25e72022-04-19 15:39:03 -0700128 "android_tools_pkg-0.24.0.tar.gz": "5aba10f2381bd4699313879336e038f9fa09e8180cd5a98d3c0ae40a13082549",
tedxae247142022-04-21 16:53:51 -0700129 "r8-3.3.28.jar": "8626ca32fb47aba7fddd2c897615e2e8ffcdb4d4b213572a2aefb3f838f01972",
cushonb6646232018-09-07 01:44:10 -0700130 },
131 urls = {
tedxdac25e72022-04-19 15:39:03 -0700132 "android_tools_pkg-0.24.0.tar.gz": [
133 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.24.0.tar.gz",
Jingwen Chen186929e2019-04-02 10:38:30 -0700134 ],
tedxae247142022-04-21 16:53:51 -0700135 "r8-3.3.28.jar": [
136 "https://maven.google.com/com/android/tools/r8/3.3.28/r8-3.3.28.jar",
137 ],
cushonb6646232018-09-07 01:44:10 -0700138 },
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700139)
140
Philipp Wollermann95048272017-03-17 15:11:58 +0000141# OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK.
142http_file(
143 name = "openjdk_linux",
philwo75edd782019-01-29 05:02:44 -0800144 downloaded_file_path = "zulu-linux.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800145 sha256 = "65bfe4e0ffa74a680ee4410db46b17e30cd9397b664a92a886599fe1f3530969",
146 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 +0000147)
148
cushon095f1e22022-02-08 10:54:53 -0800149dist_http_file(
Tobias Werth218e8f62018-12-13 04:44:35 -0800150 name = "openjdk_linux_vanilla",
philwo75edd782019-01-29 05:02:44 -0800151 downloaded_file_path = "zulu-linux-vanilla.tar.gz",
Tobias Werth218e8f62018-12-13 04:44:35 -0800152)
153
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800154http_file(
155 name = "openjdk_linux_minimal",
philwo75edd782019-01-29 05:02:44 -0800156 downloaded_file_path = "zulu-linux-minimal.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800157 sha256 = "91f7d52f695c681d4e21499b4319d548aadef249a6b3053e306308992e1e29ae",
158 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 -0800159)
160
Philipp Wollermann95048272017-03-17 15:11:58 +0000161http_file(
philwo9f7fe692019-06-27 06:53:12 -0700162 name = "openjdk_linux_aarch64",
163 downloaded_file_path = "zulu-linux-aarch64.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800164 sha256 = "6b245793087300db3ee82ab0d165614f193a73a60f2f011e347756c1e6ca5bac",
165 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 -0700166)
167
cushon095f1e22022-02-08 10:54:53 -0800168dist_http_file(
philwo9f7fe692019-06-27 06:53:12 -0700169 name = "openjdk_linux_aarch64_vanilla",
170 downloaded_file_path = "zulu-linux-aarch64-vanilla.tar.gz",
philwo9f7fe692019-06-27 06:53:12 -0700171)
172
173http_file(
174 name = "openjdk_linux_aarch64_minimal",
175 downloaded_file_path = "zulu-linux-aarch64-minimal.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800176 sha256 = "06f6520a877704c77614bcfc4f846cc7cbcbf5eaad149bf7f19f4f16e285c9de",
177 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 -0700178)
179
cushon095f1e22022-02-08 10:54:53 -0800180dist_http_file(
Jason Furmanek04e073e2020-05-28 05:48:09 -0700181 name = "openjdk_linux_ppc64le_vanilla",
Ivo List4c6c9992020-09-23 09:25:05 -0700182 downloaded_file_path = "adoptopenjdk-ppc64le-vanilla.tar.gz",
Jason Furmanek04e073e2020-05-28 05:48:09 -0700183)
184
cushon095f1e22022-02-08 10:54:53 -0800185dist_http_file(
Ruixin Baoe14a6f22020-08-21 06:17:24 -0700186 name = "openjdk_linux_s390x_vanilla",
Ivo List4c6c9992020-09-23 09:25:05 -0700187 downloaded_file_path = "adoptopenjdk-s390x-vanilla.tar.gz",
Ruixin Baoe14a6f22020-08-21 06:17:24 -0700188)
189
190http_file(
Thi Doanb39a51c2020-12-07 11:27:56 -0800191 name = "openjdk_macos_x86_64",
philwo75edd782019-01-29 05:02:44 -0800192 downloaded_file_path = "zulu-macos.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800193 sha256 = "8e283cfd23c7555be8e17295ed76eb8f00324c88ab904b8de37bbe08f90e569b",
194 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 +0000195)
196
cushon095f1e22022-02-08 10:54:53 -0800197dist_http_file(
Thi Doanb39a51c2020-12-07 11:27:56 -0800198 name = "openjdk_macos_x86_64_vanilla",
philwo75edd782019-01-29 05:02:44 -0800199 downloaded_file_path = "zulu-macos-vanilla.tar.gz",
Tobias Werth218e8f62018-12-13 04:44:35 -0800200)
201
202http_file(
Thi Doanb39a51c2020-12-07 11:27:56 -0800203 name = "openjdk_macos_x86_64_minimal",
philwo75edd782019-01-29 05:02:44 -0800204 downloaded_file_path = "zulu-macos-minimal.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800205 sha256 = "1bacb1c07035d4066d79f0b65b4ea0ebd1954f3662bdfe3618da382ac8fd23a6",
206 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 -0800207)
208
209http_file(
Yun Peng8c7e11a2021-01-27 03:23:12 -0800210 name = "openjdk_macos_aarch64",
211 downloaded_file_path = "zulu-macos-aarch64.tar.gz",
212 sha256 = "a900ef793cb34b03ac5d93ea2f67291b6842e99d500934e19393a8d8f9bfa6ff",
213 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"],
214)
215
cushon095f1e22022-02-08 10:54:53 -0800216dist_http_file(
Yun Peng8c7e11a2021-01-27 03:23:12 -0800217 name = "openjdk_macos_aarch64_vanilla",
218 downloaded_file_path = "zulu-macos-aarch64-vanilla.tar.gz",
Yun Peng8c7e11a2021-01-27 03:23:12 -0800219)
220
221http_file(
222 name = "openjdk_macos_aarch64_minimal",
223 downloaded_file_path = "zulu-macos-aarch64-minimal.tar.gz",
224 sha256 = "f4f606926e6deeaa8b8397e299313d9df87642fe464b0ccf1ed0432aeb00640b",
225 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"],
226)
227
228http_file(
Philipp Wollermann95048272017-03-17 15:11:58 +0000229 name = "openjdk_win",
philwo75edd782019-01-29 05:02:44 -0800230 downloaded_file_path = "zulu-win.zip",
philwo3ac4af42020-02-14 07:58:55 -0800231 sha256 = "8e1604b3a27dcf639bc6d1a73103f1211848139e4cceb081d0a74a99e1e6f995",
232 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 +0000233)
Googler5f36bf82017-07-12 20:43:08 +0200234
cushon095f1e22022-02-08 10:54:53 -0800235dist_http_file(
Tobias Werth218e8f62018-12-13 04:44:35 -0800236 name = "openjdk_win_vanilla",
philwo75edd782019-01-29 05:02:44 -0800237 downloaded_file_path = "zulu-win-vanilla.zip",
Tobias Werth218e8f62018-12-13 04:44:35 -0800238)
239
cushon095f1e22022-02-08 10:54:53 -0800240dist_http_file(
Niyas Sait0ba4caa2022-02-02 10:29:06 -0800241 name = "openjdk_win_arm64_vanilla",
242 downloaded_file_path = "zulu-win-arm64.zip",
Niyas Sait0ba4caa2022-02-02 10:29:06 -0800243)
244
245http_file(
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800246 name = "openjdk_win_minimal",
philwo75edd782019-01-29 05:02:44 -0800247 downloaded_file_path = "zulu-win-minimal.zip",
philwo3ac4af42020-02-14 07:58:55 -0800248 sha256 = "b90a713c9c2d9ea23cad44d2c2dfcc9af22faba9bde55dedc1c3bb9f556ac1ae",
249 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 -0800250)
251
Tony Aiutoe973aef2021-01-11 00:32:51 -0800252dist_http_archive(
Chi Wang26b94ff2021-09-28 23:42:26 -0700253 name = "bazelci_rules",
philwo17506af2020-01-28 04:20:39 -0800254 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
255 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Googler5f36bf82017-07-12 20:43:08 +0200256)
ccalvarin1cbe62a2017-08-14 21:09:07 +0200257
Chi Wang26b94ff2021-09-28 23:42:26 -0700258load("@bazelci_rules//:rbe_repo.bzl", "rbe_preconfig")
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700259
Chi Wang26b94ff2021-09-28 23:42:26 -0700260rbe_preconfig(
Chi Wang26b94ff2021-09-28 23:42:26 -0700261 name = "rbe_ubuntu1804_java11",
262 toolchain = "ubuntu1804-bazel-java11",
263)
Googlerde0612a2019-03-07 06:06:55 -0800264
ccalvarin8e9f4a82018-03-23 08:19:37 -0700265http_archive(
266 name = "com_google_googletest",
Yannic Bonenberger5b4ab2d2019-10-15 05:38:04 -0700267 sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb",
268 strip_prefix = "googletest-release-1.10.0",
ccalvarin8e9f4a82018-03-23 08:19:37 -0700269 urls = [
Yannic Bonenberger5b4ab2d2019-10-15 05:38:04 -0700270 "https://mirror.bazel.build/github.com/google/googletest/archive/release-1.10.0.tar.gz",
271 "https://github.com/google/googletest/archive/release-1.10.0.tar.gz",
ccalvarin8e9f4a82018-03-23 08:19:37 -0700272 ],
ccalvarin8e9f4a82018-03-23 08:19:37 -0700273)
274
Tony Aiuto2b7ec5c2021-01-11 07:50:26 -0800275dist_http_archive(
cparsons871cd6f2018-08-16 09:10:38 -0700276 name = "bazel_skylib",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800277 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
278 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
cparsonsa5be6612018-08-27 13:21:21 -0700279)
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700280
Alessandro Patti6da80862021-11-11 22:49:37 -0800281dist_http_archive(
282 name = "zstd-jni",
Liam Miller-Cushonc81e1752022-01-13 17:52:18 -0800283 build_file = "//third_party:zstd-jni/zstd-jni.BUILD",
Alessandro Patti6da80862021-11-11 22:49:37 -0800284 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
285 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Liam Miller-Cushonc81e1752022-01-13 17:52:18 -0800286 strip_prefix = "zstd-jni-1.5.0-4",
Alessandro Patti6da80862021-11-11 22:49:37 -0800287)
288
ajurkowski433dc602021-03-12 10:22:39 -0800289http_archive(
290 name = "org_snakeyaml",
ajurkowski433dc602021-03-12 10:22:39 -0800291 build_file_content = """
292java_library(
293 name = "snakeyaml",
294 testonly = True,
295 srcs = glob(["src/main/**/*.java"]),
296 visibility = ["@com_google_testparameterinjector//:__pkg__"],
297)
298""",
cushonc1d1df02021-04-07 11:07:00 -0700299 sha256 = "fd0e0cc6c5974fc8f08be3a15fb4a59954c7dd958b5b68186a803de6420b6e40",
300 strip_prefix = "asomov-snakeyaml-b28f0b4d87c6",
ajurkowski239a8e72021-03-23 10:22:49 -0700301 urls = ["https://mirror.bazel.build/bitbucket.org/asomov/snakeyaml/get/snakeyaml-1.28.tar.gz"],
ajurkowski433dc602021-03-12 10:22:39 -0800302)
303
ajurkowski433dc602021-03-12 10:22:39 -0800304http_archive(
305 name = "com_google_testparameterinjector",
ajurkowski433dc602021-03-12 10:22:39 -0800306 build_file_content = """
307java_library(
308 name = "testparameterinjector",
309 testonly = True,
310 srcs = glob(["src/main/**/*.java"]),
311 deps = [
312 "@org_snakeyaml//:snakeyaml",
313 "@//third_party:auto_value",
314 "@//third_party:guava",
315 "@//third_party:junit4",
316 "@//third_party/protobuf:protobuf_java",
317 ],
ajurkowskia3353d22021-03-15 12:38:48 -0700318 visibility = ["//visibility:public"],
ajurkowski433dc602021-03-12 10:22:39 -0800319)
320""",
cushonc1d1df02021-04-07 11:07:00 -0700321 sha256 = "562a0e87eb413a7dcad29ebc8d578f6f97503473943585b051c1398a58189b06",
322 strip_prefix = "TestParameterInjector-1.0",
ajurkowski433dc602021-03-12 10:22:39 -0800323 urls = [
324 "https://mirror.bazel.build/github.com/google/TestParameterInjector/archive/v1.0.tar.gz",
325 "https://github.com/google/TestParameterInjector/archive/v1.0.tar.gz",
326 ],
327)
328
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800329# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
Tony Aiuto3b2d3102021-01-07 03:40:14 -0800330dist_http_archive(
oquenchil96068872019-07-08 07:01:39 -0700331 name = "rules_cc",
philwo17506af2020-01-28 04:20:39 -0800332 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
333 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
oquenchil96068872019-07-08 07:01:39 -0700334)
335
Tony Aiutob15a8b42021-01-08 07:42:57 -0800336dist_http_archive(
iirinab815b792019-07-17 05:47:01 -0700337 name = "rules_java",
philwo17506af2020-01-28 04:20:39 -0800338 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
339 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
iirinab815b792019-07-17 05:47:01 -0700340)
341
Tony Aiuto320bc942021-01-14 07:43:21 -0800342dist_http_archive(
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700343 name = "rules_proto",
philwo17506af2020-01-28 04:20:39 -0800344 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
345 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700346)
347
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700348# For testing, have an distdir_tar with all the archives implicit in every
349# WORKSPACE, to that they don't have to be refetched for every test
350# calling `bazel sync`.
351distdir_tar(
Jingwen Chen186929e2019-04-02 10:38:30 -0700352 name = "test_WORKSPACE_files",
philwo75edd782019-01-29 05:02:44 -0800353 archives = [
tedxdac25e72022-04-19 15:39:03 -0700354 "android_tools_pkg-0.24.0.tar.gz",
tedxae247142022-04-21 16:53:51 -0700355 "r8-3.3.28.jar",
philwo75edd782019-01-29 05:02:44 -0800356 ],
Jingwen Chen186929e2019-04-02 10:38:30 -0700357 dirname = "test_WORKSPACE/distdir",
Tony Aiutoe973aef2021-01-11 00:32:51 -0800358 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 -0800359 sha256 = {
tedxdac25e72022-04-19 15:39:03 -0700360 "android_tools_pkg-0.24.0.tar.gz": "5aba10f2381bd4699313879336e038f9fa09e8180cd5a98d3c0ae40a13082549",
tedxae247142022-04-21 16:53:51 -0700361 "r8-3.3.28.jar": "8626ca32fb47aba7fddd2c897615e2e8ffcdb4d4b213572a2aefb3f838f01972",
philwo75edd782019-01-29 05:02:44 -0800362 },
363 urls = {
tedxdac25e72022-04-19 15:39:03 -0700364 "android_tools_pkg-0.24.0.tar.gz": [
365 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.24.0.tar.gz",
Jingwen Chen186929e2019-04-02 10:38:30 -0700366 ],
tedxae247142022-04-21 16:53:51 -0700367 "r8-3.3.28.jar": [
368 "https://maven.google.com/com/android/tools/r8/3.3.28/r8-3.3.28.jar",
369 ],
philwo75edd782019-01-29 05:02:44 -0800370 },
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700371)
Jingwen Chen186bdcd2018-12-14 10:27:23 -0800372
Tony Aiuto2b7ec5c2021-01-11 07:50:26 -0800373dist_http_archive(
374 name = "io_bazel_skydoc",
375)
376
wyv8062ca42020-05-25 00:21:00 -0700377# Stardoc recommends declaring its dependencies via "*_dependencies" functions.
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700378# This requires that the repositories these functions come from need to be
379# fetched unconditionally for everything (including just building bazel!), so
380# provide them as http_archives that can be shiped in the distdir, to keep the
381# distribution archive self-contained.
Tony Aiuto1c9e7ca2021-01-05 08:01:21 -0800382dist_http_archive(
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700383 name = "io_bazel_rules_sass",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700384)
iirinaf5c334262019-03-19 02:44:59 -0700385
Tony Aiuto1c9e7ca2021-01-05 08:01:21 -0800386dist_http_archive(
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700387 name = "build_bazel_rules_nodejs",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700388)
389
iirina3ab4dbc2019-04-29 05:12:39 -0700390http_archive(
iirinaa6e92602019-05-13 06:20:12 -0700391 name = "java_tools_langtools_javac11",
iirinab815b792019-07-17 05:47:01 -0700392 sha256 = "cf0814fa002ef3d794582bb086516d8c9ed0958f83f19799cdb08949019fe4c7",
iirinaa6e92602019-05-13 06:20:12 -0700393 urls = [
iirinab815b792019-07-17 05:47:01 -0700394 "https://mirror.bazel.build/bazel_java_tools/jdk_langtools/langtools_jdk11_v2.zip",
iirinaa6e92602019-05-13 06:20:12 -0700395 ],
396)
397
Tony Aiutoe973aef2021-01-11 00:32:51 -0800398dist_http_archive(
hlopkoaaf64572019-06-14 02:33:56 -0700399 name = "platforms",
hlopkoaaf64572019-06-14 02:33:56 -0700400)
401
philwo17506af2020-01-28 04:20:39 -0800402# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/android/android_remote_tools.WORKSPACE
403http_archive(
404 name = "android_tools_for_testing",
405 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
406 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
tedxdac25e72022-04-19 15:39:03 -0700407 sha256 = "5aba10f2381bd4699313879336e038f9fa09e8180cd5a98d3c0ae40a13082549", # DO_NOT_REMOVE_THIS_ANDROID_TOOLS_UPDATE_MARKER
408 url = "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.24.0.tar.gz",
philwo17506af2020-01-28 04:20:39 -0800409)
410
tedxae247142022-04-21 16:53:51 -0700411# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/android/android_remote_tools.WORKSPACE
412http_jar(
413 name = "android_gmaven_r8_for_testing",
414 sha256 = "8626ca32fb47aba7fddd2c897615e2e8ffcdb4d4b213572a2aefb3f838f01972",
415 url = "https://maven.google.com/com/android/tools/r8/3.3.28/r8-3.3.28.jar",
416)
417
aiutobbeb1da2021-01-15 06:50:56 -0800418dist_http_archive(
419 name = "remote_coverage_tools",
philwo17506af2020-01-28 04:20:39 -0800420 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
421 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800422)
423
Ivo Listb7411162022-01-14 09:53:01 -0800424dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800425 name = "remotejdk11_linux_for_testing",
426 build_file = "@local_jdk//:BUILD.bazel",
427 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
428 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800429)
430
Ivo Listb7411162022-01-14 09:53:01 -0800431dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800432 name = "remotejdk11_linux_aarch64_for_testing",
433 build_file = "@local_jdk//:BUILD.bazel",
434 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
435 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800436)
437
Ivo Listb7411162022-01-14 09:53:01 -0800438dist_http_archive(
Jason Furmanek04e073e2020-05-28 05:48:09 -0700439 name = "remotejdk11_linux_ppc64le_for_testing",
440 build_file = "@local_jdk//:BUILD.bazel",
441 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
442 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Jason Furmanek04e073e2020-05-28 05:48:09 -0700443)
444
Ivo Listb7411162022-01-14 09:53:01 -0800445dist_http_archive(
Ruixin Baoe14a6f22020-08-21 06:17:24 -0700446 name = "remotejdk11_linux_s390x_for_testing",
447 build_file = "@local_jdk//:BUILD.bazel",
448 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
449 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Ruixin Baoe14a6f22020-08-21 06:17:24 -0700450)
451
Ivo Listb7411162022-01-14 09:53:01 -0800452dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800453 name = "remotejdk11_macos_for_testing",
454 build_file = "@local_jdk//:BUILD.bazel",
455 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
456 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800457)
458
Ivo Listb7411162022-01-14 09:53:01 -0800459dist_http_archive(
Yun Peng8c7e11a2021-01-27 03:23:12 -0800460 name = "remotejdk11_macos_aarch64_for_testing",
461 build_file = "@local_jdk//:BUILD.bazel",
462 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
463 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Yun Peng8c7e11a2021-01-27 03:23:12 -0800464)
465
Ivo Listb7411162022-01-14 09:53:01 -0800466dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800467 name = "remotejdk11_win_for_testing",
468 build_file = "@local_jdk//:BUILD.bazel",
469 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
470 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
cushon095f1e22022-02-08 10:54:53 -0800471)
philwo17506af2020-01-28 04:20:39 -0800472
Ivo Listb7411162022-01-14 09:53:01 -0800473dist_http_archive(
Niyas Saitb6024252022-02-10 06:59:31 -0800474 name = "remotejdk11_win_arm64_for_testing",
475 build_file = "@local_jdk//:BUILD.bazel",
476 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
477 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Niyas Saitb6024252022-02-10 06:59:31 -0800478)
479
Liam Miller-Cushona7f1c712022-03-29 11:57:55 -0700480[
481 dist_http_archive(
482 name = "remotejdk%s_%s_for_testing" % (version, os),
483 build_file = "@local_jdk//:BUILD.bazel",
484 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
485 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
486 )
487 for version in ("17", "18")
488 for os in ("linux", "macos", "macos_aarch64", "win", "win_arm64")
489]
Niyas Saitb6024252022-02-10 06:59:31 -0800490
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800491# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
492dist_http_archive(
Ivo List62022712020-11-27 07:24:36 -0800493 name = "remote_java_tools_for_testing",
494 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
495 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo List62022712020-11-27 07:24:36 -0800496)
497
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800498# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
499dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800500 name = "remote_java_tools_linux_for_testing",
501 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
502 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800503)
504
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800505# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
506dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800507 name = "remote_java_tools_windows_for_testing",
508 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
509 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800510)
511
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800512# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
513dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800514 name = "remote_java_tools_darwin_for_testing",
515 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
516 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800517)
518
Tony Aiuto1bb1b522021-01-13 10:39:41 -0800519# Used in src/test/shell/bazel/testdata/jdk_http_archives.
520dist_http_archive(
Ivo List62022712020-11-27 07:24:36 -0800521 name = "remote_java_tools_test",
philwo17506af2020-01-28 04:20:39 -0800522 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
523 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800524)
525
Tony Aiuto1bb1b522021-01-13 10:39:41 -0800526# Used in src/test/shell/bazel/testdata/jdk_http_archives.
527dist_http_archive(
Ivo List62022712020-11-27 07:24:36 -0800528 name = "remote_java_tools_test_linux",
philwo17506af2020-01-28 04:20:39 -0800529 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
530 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800531)
532
Tony Aiuto1bb1b522021-01-13 10:39:41 -0800533# Used in src/test/shell/bazel/testdata/jdk_http_archives.
534dist_http_archive(
Ivo List62022712020-11-27 07:24:36 -0800535 name = "remote_java_tools_test_windows",
philwo17506af2020-01-28 04:20:39 -0800536 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
537 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo List62022712020-11-27 07:24:36 -0800538)
539
Tony Aiuto1bb1b522021-01-13 10:39:41 -0800540# Used in src/test/shell/bazel/testdata/jdk_http_archives.
541dist_http_archive(
Ivo List62022712020-11-27 07:24:36 -0800542 name = "remote_java_tools_test_darwin",
543 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
544 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800545)
546
Ivo Listb7411162022-01-14 09:53:01 -0800547dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800548 name = "openjdk11_linux_archive",
549 build_file_content = """
550java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
551exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
552""",
philwo17506af2020-01-28 04:20:39 -0800553)
554
555# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
cushon095f1e22022-02-08 10:54:53 -0800556dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800557 name = "openjdk11_darwin_archive",
558 build_file_content = """
559java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
560exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
561""",
philwo17506af2020-01-28 04:20:39 -0800562)
563
564# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
cushon095f1e22022-02-08 10:54:53 -0800565dist_http_archive(
Yun Peng8c7e11a2021-01-27 03:23:12 -0800566 name = "openjdk11_darwin_aarch64_archive",
567 build_file_content = """
568java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
569exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
570""",
Yun Peng8c7e11a2021-01-27 03:23:12 -0800571)
572
573# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
cushon095f1e22022-02-08 10:54:53 -0800574dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800575 name = "openjdk11_windows_archive",
576 build_file_content = """
577java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
578exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
579""",
philwo17506af2020-01-28 04:20:39 -0800580)
581
David Ostrovskyfe291f72020-07-23 04:08:29 -0700582# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
cushon095f1e22022-02-08 10:54:53 -0800583dist_http_archive(
Niyas Saitb6024252022-02-10 06:59:31 -0800584 name = "openjdk11_windows_arm64_archive",
585 build_file_content = """
586java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
587exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
588""",
589)
590
591# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
Liam Miller-Cushone4461d32022-03-30 13:06:59 -0700592[
593 dist_http_archive(
594 name = "openjdk%s_%s_archive" % (version, os),
595 build_file_content = """
Liam Miller-Cushoneb7bf8c2021-09-30 07:53:06 -0700596java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
597exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
598""",
Liam Miller-Cushone4461d32022-03-30 13:06:59 -0700599 )
600 for version in ("17", "18")
601 for os in ("linux", "darwin", "darwin_aarch64", "windows", "windows_arm64")
602]
Liam Miller-Cushona7f1c712022-03-29 11:57:55 -0700603
wyv8062ca42020-05-25 00:21:00 -0700604load("@io_bazel_skydoc//:setup.bzl", "stardoc_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700605
wyv8062ca42020-05-25 00:21:00 -0700606stardoc_repositories()
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700607
608load("@io_bazel_rules_sass//:package.bzl", "rules_sass_dependencies")
iirinaf5c334262019-03-19 02:44:59 -0700609
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700610rules_sass_dependencies()
611
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800612load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700613
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700614node_repositories()
615
616load("@io_bazel_rules_sass//:defs.bzl", "sass_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700617
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700618sass_repositories()
Jakob Buchgraber593c5302019-04-16 10:12:20 -0700619
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700620register_execution_platforms("//:default_host_platform") # buildozer: disable=positional-args
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700621
622# Tools for building deb, rpm and tar files.
Tony Aiuto1c9e7ca2021-01-05 08:01:21 -0800623dist_http_archive(
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700624 name = "rules_pkg",
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700625)
iirinad26a3c12019-07-19 04:39:33 -0700626
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700627load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
iirinad26a3c12019-07-19 04:39:33 -0700628
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700629rules_pkg_dependencies()
Laszlo Csomor3e023182019-08-01 05:05:09 -0700630
631# Toolchains for Resource Compilation (.rc files on Windows).
632load("//src/main/res:winsdk_configure.bzl", "winsdk_configure")
633
634winsdk_configure(name = "local_config_winsdk")
635
636load("@local_config_winsdk//:toolchains.bzl", "register_local_rc_exe_toolchains")
637
638register_local_rc_exe_toolchains()
639
640register_toolchains("//src/main/res:empty_rc_toolchain")
Yun Peng01609b82020-05-04 11:12:33 -0700641
Tony Aiutoe973aef2021-01-11 00:32:51 -0800642dist_http_archive(
Yun Penge2f11d72020-06-03 09:16:35 -0700643 name = "com_github_grpc_grpc",
Yun Penge2f11d72020-06-03 09:16:35 -0700644)
645
Yun Pengb47aa712022-04-05 04:21:29 -0700646# Override the abseil-cpp version defined in grpc_deps(), which doesn't work on latest macOS
647# Fixes https://github.com/bazelbuild/bazel/issues/15168
648dist_http_archive(
649 name = "com_google_absl",
650)
651
Yun Penge2f11d72020-06-03 09:16:35 -0700652# Projects using gRPC as an external dependency must call both grpc_deps() and
653# grpc_extra_deps().
654load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
Ivo List4c6c9992020-09-23 09:25:05 -0700655
Yun Penge2f11d72020-06-03 09:16:35 -0700656grpc_deps()
657
658load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
Ivo List4c6c9992020-09-23 09:25:05 -0700659
Yun Penge2f11d72020-06-03 09:16:35 -0700660grpc_extra_deps()
661
Yun Peng01609b82020-05-04 11:12:33 -0700662load("//tools/distributions/debian:deps.bzl", "debian_deps")
Ivo List4c6c9992020-09-23 09:25:05 -0700663
Yun Peng01609b82020-05-04 11:12:33 -0700664debian_deps()
Andrzej Guszak0f9a5922020-06-25 05:47:21 -0700665
666load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
Ivo List4c6c9992020-09-23 09:25:05 -0700667
Andrzej Guszak0f9a5922020-06-25 05:47:21 -0700668bazel_skylib_workspace()
tedxae247142022-04-21 16:53:51 -0700669