blob: c7fa7f861cdaae9cd00ee788755d7de66d801c5b [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 = [
tedxdac25e72022-04-19 15:39:03 -0700127 "android_tools_pkg-0.24.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 = {
tedxdac25e72022-04-19 15:39:03 -0700134 "android_tools_pkg-0.24.0.tar.gz": "5aba10f2381bd4699313879336e038f9fa09e8180cd5a98d3c0ae40a13082549",
tedxae247142022-04-21 16:53:51 -0700135 "r8-3.3.28.jar": "8626ca32fb47aba7fddd2c897615e2e8ffcdb4d4b213572a2aefb3f838f01972",
cushonb6646232018-09-07 01:44:10 -0700136 },
137 urls = {
tedxdac25e72022-04-19 15:39:03 -0700138 "android_tools_pkg-0.24.0.tar.gz": [
139 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.24.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",
300 testonly = True,
301 srcs = glob(["src/main/**/*.java"]),
302 visibility = ["@com_google_testparameterinjector//:__pkg__"],
303)
304""",
cushonc1d1df02021-04-07 11:07:00 -0700305 sha256 = "fd0e0cc6c5974fc8f08be3a15fb4a59954c7dd958b5b68186a803de6420b6e40",
306 strip_prefix = "asomov-snakeyaml-b28f0b4d87c6",
ajurkowski239a8e72021-03-23 10:22:49 -0700307 urls = ["https://mirror.bazel.build/bitbucket.org/asomov/snakeyaml/get/snakeyaml-1.28.tar.gz"],
ajurkowski433dc602021-03-12 10:22:39 -0800308)
309
ajurkowski433dc602021-03-12 10:22:39 -0800310http_archive(
311 name = "com_google_testparameterinjector",
ajurkowski433dc602021-03-12 10:22:39 -0800312 build_file_content = """
313java_library(
314 name = "testparameterinjector",
315 testonly = True,
316 srcs = glob(["src/main/**/*.java"]),
317 deps = [
318 "@org_snakeyaml//:snakeyaml",
319 "@//third_party:auto_value",
320 "@//third_party:guava",
321 "@//third_party:junit4",
322 "@//third_party/protobuf:protobuf_java",
323 ],
ajurkowskia3353d22021-03-15 12:38:48 -0700324 visibility = ["//visibility:public"],
ajurkowski433dc602021-03-12 10:22:39 -0800325)
326""",
cushonc1d1df02021-04-07 11:07:00 -0700327 sha256 = "562a0e87eb413a7dcad29ebc8d578f6f97503473943585b051c1398a58189b06",
328 strip_prefix = "TestParameterInjector-1.0",
ajurkowski433dc602021-03-12 10:22:39 -0800329 urls = [
330 "https://mirror.bazel.build/github.com/google/TestParameterInjector/archive/v1.0.tar.gz",
331 "https://github.com/google/TestParameterInjector/archive/v1.0.tar.gz",
332 ],
333)
334
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800335# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
Tony Aiuto3b2d3102021-01-07 03:40:14 -0800336dist_http_archive(
oquenchil96068872019-07-08 07:01:39 -0700337 name = "rules_cc",
philwo17506af2020-01-28 04:20:39 -0800338 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
339 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
oquenchil96068872019-07-08 07:01:39 -0700340)
341
Tony Aiutob15a8b42021-01-08 07:42:57 -0800342dist_http_archive(
iirinab815b792019-07-17 05:47:01 -0700343 name = "rules_java",
philwo17506af2020-01-28 04:20:39 -0800344 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
345 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
iirinab815b792019-07-17 05:47:01 -0700346)
347
Tony Aiuto320bc942021-01-14 07:43:21 -0800348dist_http_archive(
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700349 name = "rules_proto",
philwo17506af2020-01-28 04:20:39 -0800350 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
351 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700352)
353
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700354# For testing, have an distdir_tar with all the archives implicit in every
355# WORKSPACE, to that they don't have to be refetched for every test
356# calling `bazel sync`.
357distdir_tar(
Jingwen Chen186929e2019-04-02 10:38:30 -0700358 name = "test_WORKSPACE_files",
philwo75edd782019-01-29 05:02:44 -0800359 archives = [
tedxdac25e72022-04-19 15:39:03 -0700360 "android_tools_pkg-0.24.0.tar.gz",
tedxae247142022-04-21 16:53:51 -0700361 "r8-3.3.28.jar",
philwo75edd782019-01-29 05:02:44 -0800362 ],
Jingwen Chen186929e2019-04-02 10:38:30 -0700363 dirname = "test_WORKSPACE/distdir",
Tony Aiutoe973aef2021-01-11 00:32:51 -0800364 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 -0800365 sha256 = {
tedxdac25e72022-04-19 15:39:03 -0700366 "android_tools_pkg-0.24.0.tar.gz": "5aba10f2381bd4699313879336e038f9fa09e8180cd5a98d3c0ae40a13082549",
tedxae247142022-04-21 16:53:51 -0700367 "r8-3.3.28.jar": "8626ca32fb47aba7fddd2c897615e2e8ffcdb4d4b213572a2aefb3f838f01972",
philwo75edd782019-01-29 05:02:44 -0800368 },
369 urls = {
tedxdac25e72022-04-19 15:39:03 -0700370 "android_tools_pkg-0.24.0.tar.gz": [
371 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.24.0.tar.gz",
Jingwen Chen186929e2019-04-02 10:38:30 -0700372 ],
tedxae247142022-04-21 16:53:51 -0700373 "r8-3.3.28.jar": [
374 "https://maven.google.com/com/android/tools/r8/3.3.28/r8-3.3.28.jar",
375 ],
philwo75edd782019-01-29 05:02:44 -0800376 },
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700377)
Jingwen Chen186bdcd2018-12-14 10:27:23 -0800378
Tony Aiuto2b7ec5c2021-01-11 07:50:26 -0800379dist_http_archive(
380 name = "io_bazel_skydoc",
381)
382
wyv8062ca42020-05-25 00:21:00 -0700383# Stardoc recommends declaring its dependencies via "*_dependencies" functions.
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700384# This requires that the repositories these functions come from need to be
385# fetched unconditionally for everything (including just building bazel!), so
386# provide them as http_archives that can be shiped in the distdir, to keep the
387# distribution archive self-contained.
Tony Aiuto1c9e7ca2021-01-05 08:01:21 -0800388dist_http_archive(
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700389 name = "io_bazel_rules_sass",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700390)
iirinaf5c334262019-03-19 02:44:59 -0700391
Tony Aiuto1c9e7ca2021-01-05 08:01:21 -0800392dist_http_archive(
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700393 name = "build_bazel_rules_nodejs",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700394)
395
Tony Aiutoe973aef2021-01-11 00:32:51 -0800396dist_http_archive(
hlopkoaaf64572019-06-14 02:33:56 -0700397 name = "platforms",
hlopkoaaf64572019-06-14 02:33:56 -0700398)
399
philwo17506af2020-01-28 04:20:39 -0800400# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/android/android_remote_tools.WORKSPACE
401http_archive(
402 name = "android_tools_for_testing",
403 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
404 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
tedxdac25e72022-04-19 15:39:03 -0700405 sha256 = "5aba10f2381bd4699313879336e038f9fa09e8180cd5a98d3c0ae40a13082549", # DO_NOT_REMOVE_THIS_ANDROID_TOOLS_UPDATE_MARKER
406 url = "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.24.0.tar.gz",
philwo17506af2020-01-28 04:20:39 -0800407)
408
tedxae247142022-04-21 16:53:51 -0700409# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/android/android_remote_tools.WORKSPACE
410http_jar(
411 name = "android_gmaven_r8_for_testing",
412 sha256 = "8626ca32fb47aba7fddd2c897615e2e8ffcdb4d4b213572a2aefb3f838f01972",
413 url = "https://maven.google.com/com/android/tools/r8/3.3.28/r8-3.3.28.jar",
414)
415
aiutobbeb1da2021-01-15 06:50:56 -0800416dist_http_archive(
417 name = "remote_coverage_tools",
philwo17506af2020-01-28 04:20:39 -0800418 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
419 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800420)
421
Ivo Listb7411162022-01-14 09:53:01 -0800422dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800423 name = "remotejdk11_linux_for_testing",
424 build_file = "@local_jdk//:BUILD.bazel",
425 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
426 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800427)
428
Ivo Listb7411162022-01-14 09:53:01 -0800429dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800430 name = "remotejdk11_linux_aarch64_for_testing",
431 build_file = "@local_jdk//:BUILD.bazel",
432 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
433 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800434)
435
Ivo Listb7411162022-01-14 09:53:01 -0800436dist_http_archive(
Jason Furmanek04e073e2020-05-28 05:48:09 -0700437 name = "remotejdk11_linux_ppc64le_for_testing",
438 build_file = "@local_jdk//:BUILD.bazel",
439 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
440 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Jason Furmanek04e073e2020-05-28 05:48:09 -0700441)
442
Ivo Listb7411162022-01-14 09:53:01 -0800443dist_http_archive(
Ruixin Baoe14a6f22020-08-21 06:17:24 -0700444 name = "remotejdk11_linux_s390x_for_testing",
445 build_file = "@local_jdk//:BUILD.bazel",
446 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
447 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Ruixin Baoe14a6f22020-08-21 06:17:24 -0700448)
449
Ivo Listb7411162022-01-14 09:53:01 -0800450dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800451 name = "remotejdk11_macos_for_testing",
452 build_file = "@local_jdk//:BUILD.bazel",
453 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
454 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800455)
456
Ivo Listb7411162022-01-14 09:53:01 -0800457dist_http_archive(
Yun Peng8c7e11a2021-01-27 03:23:12 -0800458 name = "remotejdk11_macos_aarch64_for_testing",
459 build_file = "@local_jdk//:BUILD.bazel",
460 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
461 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Yun Peng8c7e11a2021-01-27 03:23:12 -0800462)
463
Ivo Listb7411162022-01-14 09:53:01 -0800464dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800465 name = "remotejdk11_win_for_testing",
466 build_file = "@local_jdk//:BUILD.bazel",
467 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
468 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
cushon095f1e22022-02-08 10:54:53 -0800469)
philwo17506af2020-01-28 04:20:39 -0800470
Ivo Listb7411162022-01-14 09:53:01 -0800471dist_http_archive(
Niyas Saitb6024252022-02-10 06:59:31 -0800472 name = "remotejdk11_win_arm64_for_testing",
473 build_file = "@local_jdk//:BUILD.bazel",
474 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
475 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Niyas Saitb6024252022-02-10 06:59:31 -0800476)
477
Liam Miller-Cushona7f1c712022-03-29 11:57:55 -0700478[
479 dist_http_archive(
480 name = "remotejdk%s_%s_for_testing" % (version, os),
481 build_file = "@local_jdk//:BUILD.bazel",
482 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
483 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
484 )
485 for version in ("17", "18")
486 for os in ("linux", "macos", "macos_aarch64", "win", "win_arm64")
487]
Niyas Saitb6024252022-02-10 06:59:31 -0800488
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800489# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
490dist_http_archive(
Ivo List62022712020-11-27 07:24:36 -0800491 name = "remote_java_tools_for_testing",
492 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
493 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo List62022712020-11-27 07:24:36 -0800494)
495
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800496# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
497dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800498 name = "remote_java_tools_linux_for_testing",
499 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
500 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800501)
502
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800503# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
504dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800505 name = "remote_java_tools_windows_for_testing",
506 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
507 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800508)
509
Tony Aiuto6a3d5f12021-01-12 13:38:32 -0800510# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
511dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800512 name = "remote_java_tools_darwin_for_testing",
513 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
514 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800515)
516
Tony Aiuto1bb1b522021-01-13 10:39:41 -0800517# Used in src/test/shell/bazel/testdata/jdk_http_archives.
518dist_http_archive(
Ivo List62022712020-11-27 07:24:36 -0800519 name = "remote_java_tools_test",
philwo17506af2020-01-28 04:20:39 -0800520 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
521 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800522)
523
Tony Aiuto1bb1b522021-01-13 10:39:41 -0800524# Used in src/test/shell/bazel/testdata/jdk_http_archives.
525dist_http_archive(
Ivo List62022712020-11-27 07:24:36 -0800526 name = "remote_java_tools_test_linux",
philwo17506af2020-01-28 04:20:39 -0800527 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
528 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800529)
530
Tony Aiuto1bb1b522021-01-13 10:39:41 -0800531# Used in src/test/shell/bazel/testdata/jdk_http_archives.
532dist_http_archive(
Ivo List62022712020-11-27 07:24:36 -0800533 name = "remote_java_tools_test_windows",
philwo17506af2020-01-28 04:20:39 -0800534 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
535 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo List62022712020-11-27 07:24:36 -0800536)
537
Tony Aiuto1bb1b522021-01-13 10:39:41 -0800538# Used in src/test/shell/bazel/testdata/jdk_http_archives.
539dist_http_archive(
Ivo List62022712020-11-27 07:24:36 -0800540 name = "remote_java_tools_test_darwin",
541 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
542 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800543)
544
Ivo Listb7411162022-01-14 09:53:01 -0800545dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800546 name = "openjdk11_linux_archive",
547 build_file_content = """
548java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
549exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
550""",
philwo17506af2020-01-28 04:20:39 -0800551)
552
553# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
cushon095f1e22022-02-08 10:54:53 -0800554dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800555 name = "openjdk11_darwin_archive",
556 build_file_content = """
557java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
558exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
559""",
philwo17506af2020-01-28 04:20:39 -0800560)
561
562# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
cushon095f1e22022-02-08 10:54:53 -0800563dist_http_archive(
Yun Peng8c7e11a2021-01-27 03:23:12 -0800564 name = "openjdk11_darwin_aarch64_archive",
565 build_file_content = """
566java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
567exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
568""",
Yun Peng8c7e11a2021-01-27 03:23:12 -0800569)
570
571# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
cushon095f1e22022-02-08 10:54:53 -0800572dist_http_archive(
philwo17506af2020-01-28 04:20:39 -0800573 name = "openjdk11_windows_archive",
574 build_file_content = """
575java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
576exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
577""",
philwo17506af2020-01-28 04:20:39 -0800578)
579
David Ostrovskyfe291f72020-07-23 04:08:29 -0700580# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
cushon095f1e22022-02-08 10:54:53 -0800581dist_http_archive(
Niyas Saitb6024252022-02-10 06:59:31 -0800582 name = "openjdk11_windows_arm64_archive",
583 build_file_content = """
584java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
585exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
586""",
587)
588
589# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
Liam Miller-Cushone4461d32022-03-30 13:06:59 -0700590[
591 dist_http_archive(
592 name = "openjdk%s_%s_archive" % (version, os),
593 build_file_content = """
Liam Miller-Cushoneb7bf8c2021-09-30 07:53:06 -0700594java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
595exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
596""",
Liam Miller-Cushone4461d32022-03-30 13:06:59 -0700597 )
598 for version in ("17", "18")
599 for os in ("linux", "darwin", "darwin_aarch64", "windows", "windows_arm64")
600]
Liam Miller-Cushona7f1c712022-03-29 11:57:55 -0700601
wyv8062ca42020-05-25 00:21:00 -0700602load("@io_bazel_skydoc//:setup.bzl", "stardoc_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700603
wyv8062ca42020-05-25 00:21:00 -0700604stardoc_repositories()
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700605
606load("@io_bazel_rules_sass//:package.bzl", "rules_sass_dependencies")
iirinaf5c334262019-03-19 02:44:59 -0700607
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700608rules_sass_dependencies()
609
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800610load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700611
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700612node_repositories()
613
614load("@io_bazel_rules_sass//:defs.bzl", "sass_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700615
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700616sass_repositories()
Jakob Buchgraber593c5302019-04-16 10:12:20 -0700617
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700618register_execution_platforms("//:default_host_platform") # buildozer: disable=positional-args
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700619
620# Tools for building deb, rpm and tar files.
Tony Aiuto1c9e7ca2021-01-05 08:01:21 -0800621dist_http_archive(
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700622 name = "rules_pkg",
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700623)
iirinad26a3c12019-07-19 04:39:33 -0700624
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700625load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
iirinad26a3c12019-07-19 04:39:33 -0700626
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700627rules_pkg_dependencies()
Laszlo Csomor3e023182019-08-01 05:05:09 -0700628
629# Toolchains for Resource Compilation (.rc files on Windows).
630load("//src/main/res:winsdk_configure.bzl", "winsdk_configure")
631
632winsdk_configure(name = "local_config_winsdk")
633
634load("@local_config_winsdk//:toolchains.bzl", "register_local_rc_exe_toolchains")
635
636register_local_rc_exe_toolchains()
637
638register_toolchains("//src/main/res:empty_rc_toolchain")
Yun Peng01609b82020-05-04 11:12:33 -0700639
Tony Aiutoe973aef2021-01-11 00:32:51 -0800640dist_http_archive(
Yun Penge2f11d72020-06-03 09:16:35 -0700641 name = "com_github_grpc_grpc",
Yun Penge2f11d72020-06-03 09:16:35 -0700642)
643
Yun Pengb47aa712022-04-05 04:21:29 -0700644# Override the abseil-cpp version defined in grpc_deps(), which doesn't work on latest macOS
645# Fixes https://github.com/bazelbuild/bazel/issues/15168
646dist_http_archive(
647 name = "com_google_absl",
648)
649
Yun Penge2f11d72020-06-03 09:16:35 -0700650# Projects using gRPC as an external dependency must call both grpc_deps() and
651# grpc_extra_deps().
652load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
Ivo List4c6c9992020-09-23 09:25:05 -0700653
Yun Penge2f11d72020-06-03 09:16:35 -0700654grpc_deps()
655
656load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
Ivo List4c6c9992020-09-23 09:25:05 -0700657
Yun Penge2f11d72020-06-03 09:16:35 -0700658grpc_extra_deps()
659
Yun Peng01609b82020-05-04 11:12:33 -0700660load("//tools/distributions/debian:deps.bzl", "debian_deps")
Ivo List4c6c9992020-09-23 09:25:05 -0700661
Yun Peng01609b82020-05-04 11:12:33 -0700662debian_deps()
Andrzej Guszak0f9a5922020-06-25 05:47:21 -0700663
664load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
Ivo List4c6c9992020-09-23 09:25:05 -0700665
Andrzej Guszak0f9a5922020-06-25 05:47:21 -0700666bazel_skylib_workspace()