blob: e0b25160d2b5953289ddda9587829f42964aae08 [file] [log] [blame]
Kristina Chodorow93fbc3e2016-04-27 17:03:28 +00001workspace(name = "io_bazel")
philwo75edd782019-01-29 05:02:44 -08002
cparsonsc08e4df2020-03-27 13:44:14 -07003load("//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
philwo17506af2020-01-28 04:20:39 -08004
5# These can be used as values for the patch_cmds and patch_cmds_win attributes
6# of http_archive, in order to export the WORKSPACE file from the BUILD or
7# BUILD.bazel file. This is useful for cases like //src:test_repos, where we
8# have to be able to trigger a fetch of a repo by depending on it, but we don't
9# actually want to build anything (so we can't depend on a target inside that
10# repo).
11EXPORT_WORKSPACE_IN_BUILD_FILE = [
12 "test -f BUILD && chmod u+w BUILD || true",
13 "echo >> BUILD",
14 "echo 'exports_files([\"WORKSPACE\"], visibility = [\"//visibility:public\"])' >> BUILD",
15]
16
17EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE = [
18 "test -f BUILD.bazel && chmod u+w BUILD.bazel || true",
19 "echo >> BUILD.bazel",
20 "echo 'exports_files([\"WORKSPACE\"], visibility = [\"//visibility:public\"])' >> BUILD.bazel",
21]
22
23EXPORT_WORKSPACE_IN_BUILD_FILE_WIN = [
24 "Add-Content -Path BUILD -Value \"`nexports_files([`\"WORKSPACE`\"], visibility = [`\"//visibility:public`\"])`n\" -Force",
25]
26
27EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN = [
28 "Add-Content -Path BUILD.bazel -Value \"`nexports_files([`\"WORKSPACE`\"], visibility = [`\"//visibility:public`\"])`n\" -Force",
29]
Kristina Chodorow93fbc3e2016-04-27 17:03:28 +000030
David Chenb78bbd52016-03-16 13:17:57 +000031# Protobuf expects an //external:python_headers label which would contain the
32# Python headers if fast Python protos is enabled. Since we are not using fast
33# Python protos, bind python_headers to a dummy target.
34bind(
35 name = "python_headers",
36 actual = "//:dummy",
37)
38
Alpha Lama1a79cb2016-05-15 19:13:52 +000039# Protobuf code generation for GRPC requires three external labels:
40# //external:grpc-java_plugin
41# //external:grpc-jar
42# //external:guava
43bind(
44 name = "grpc-java-plugin",
45 actual = "//third_party/grpc:grpc-java-plugin",
46)
47
48bind(
49 name = "grpc-jar",
50 actual = "//third_party/grpc:grpc-jar",
51)
52
53bind(
54 name = "guava",
55 actual = "//third_party:guava",
56)
57
Googler5b90b162017-08-31 16:29:34 +020058http_archive(
59 name = "bazel_j2objc",
iirinadcbad672019-07-17 04:45:21 -070060 # Computed using "shasum -a 256 j2objc-2.5.zip"
61 sha256 = "8d3403b5b7db57e347c943d214577f6879e5b175c2b59b7e075c0b6453330e9b",
62 strip_prefix = "j2objc-2.5",
hlopko6b06acc2019-03-25 04:40:10 -070063 urls = [
Jingwen Chen8d6eb832019-11-26 12:20:48 -080064 "https://mirror.bazel.build/github.com/google/j2objc/releases/download/2.5/j2objc-2.5.zip",
iirinadcbad672019-07-17 04:45:21 -070065 "https://github.com/google/j2objc/releases/download/2.5/j2objc-2.5.zip",
hlopko6b06acc2019-03-25 04:40:10 -070066 ],
Googler5b90b162017-08-31 16:29:34 +020067)
68
Damien Martin-Guillerez0baff0f2017-08-22 17:40:37 +020069# For src/test/shell/bazel:test_srcs
70load("//src/test/shell/bazel:list_source_repository.bzl", "list_source_repository")
cushonb6646232018-09-07 01:44:10 -070071
Damien Martin-Guillerez0baff0f2017-08-22 17:40:37 +020072list_source_repository(name = "local_bazel_source_list")
73
Adam Michael9b7330f2017-03-23 18:40:51 +000074# To run the Android integration tests in //src/test/shell/bazel/android:all or
75# build the Android sample app in //examples/android/java/bazel:hello_world
76#
77# 1. Install an Android SDK and NDK from https://developer.android.com
78# 2. Set the $ANDROID_HOME and $ANDROID_NDK_HOME environment variables
79# 3. Uncomment the two lines below
80#
81# android_sdk_repository(name = "androidsdk")
82# android_ndk_repository(name = "androidndk")
Cal Peyser2152bc12016-04-22 17:08:59 +000083
Adam Michael8a136d82016-11-16 23:04:46 +000084# In order to run //src/test/shell/bazel:maven_skylark_test, follow the
85# instructions above for the Android integration tests and uncomment the
86# following lines:
87# load("//tools/build_defs/repo:maven_rules.bzl", "maven_dependency_plugin")
88# maven_dependency_plugin()
89
gregceca48e9a2020-04-14 08:54:38 -070090# This allows rules written in Starlark to locate apple build tools.
philwo915fa8f2017-05-09 12:17:12 -040091bind(
92 name = "xcrunwrapper",
93 actual = "@bazel_tools//tools/objc:xcrunwrapper",
94)
Carmi Grushkobfaff292016-08-17 18:37:55 +000095
Yannic Bonenberger5e571d22020-02-13 07:29:58 -080096http_archive(
Carmi Grushko0fd73d62017-02-17 06:49:40 +000097 name = "com_google_protobuf",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -080098 patch_args = ["-p1"],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -080099 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
100 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
John Caterf47f83e2020-05-04 05:16:00 -0700101 patches = ["//third_party/protobuf:3.11.3.patch"],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800102 sha256 = "cf754718b0aa945b00550ed7962ddc167167bd922b842199eeb6505e6f344852",
103 strip_prefix = "protobuf-3.11.3",
104 urls = [
105 "https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v3.11.3.tar.gz",
106 "https://github.com/protocolbuffers/protobuf/archive/v3.11.3.tar.gz",
107 ],
Carmi Grushko0fd73d62017-02-17 06:49:40 +0000108)
109
brandjoncb4ba072019-08-01 12:41:43 -0700110# This is a mock version of bazelbuild/rules_python that contains only
111# @rules_python//python:defs.bzl. It is used by protobuf.
112# TODO(#9029): We could potentially replace this with the real @rules_python.
113new_local_repository(
114 name = "rules_python",
brandjoncb4ba072019-08-01 12:41:43 -0700115 build_file = "//third_party/rules_python:BUILD",
laurentlbaf265672019-10-22 10:06:21 -0700116 path = "./third_party/rules_python",
brandjoncb4ba072019-08-01 12:41:43 -0700117 workspace_file = "//third_party/rules_python:rules_python.WORKSPACE",
118)
119
John Cater2f838922018-11-12 08:19:03 -0800120local_repository(
Jakob Buchgraber166f28c2017-05-30 16:41:18 +0200121 name = "googleapis",
cushonb6646232018-09-07 01:44:10 -0700122 path = "./third_party/googleapis/",
Jakob Buchgraber166f28c2017-05-30 16:41:18 +0200123)
124
John Cater2f838922018-11-12 08:19:03 -0800125local_repository(
Ola Rozenfeld930119a2018-08-10 11:04:44 -0700126 name = "remoteapis",
cushonb6646232018-09-07 01:44:10 -0700127 path = "./third_party/remoteapis/",
Ola Rozenfeld930119a2018-08-10 11:04:44 -0700128)
129
kmbbfd89d62018-04-11 14:26:56 -0700130http_archive(
131 name = "desugar_jdk_libs",
Klaus Aehligd4a8a472018-12-06 07:34:02 -0800132 # Commit e0b0291b2c51fbe5a7cfa14473a1ae850f94f021 of 2018-12-4
kmbbfd89d62018-04-11 14:26:56 -0700133 # Computed using "shasum -a 256 <zip>"
kmba9641252018-12-05 13:17:58 -0800134 sha256 = "fe2e04f91ce8c59d49d91b8102edc6627c6fa2906c1b0e7346f01419ec4f419d",
135 strip_prefix = "desugar_jdk_libs-e0b0291b2c51fbe5a7cfa14473a1ae850f94f021",
philwof443d092019-01-08 11:11:09 -0800136 urls = [
philwo75edd782019-01-29 05:02:44 -0800137 "https://mirror.bazel.build/github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
138 "https://github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
139 ],
kmbbfd89d62018-04-11 14:26:56 -0700140)
141
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700142load("//:distdir.bzl", "distdir_tar")
cushonb6646232018-09-07 01:44:10 -0700143
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700144distdir_tar(
145 name = "additional_distfiles",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700146 # Keep in sync with the archives fetched as part of building bazel.
cparsons871cd6f2018-08-16 09:10:38 -0700147 archives = [
Klaus Aehligd4a8a472018-12-06 07:34:02 -0800148 "e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
elenairina623fe582020-02-18 07:53:40 -0800149 "java_tools_javac11_linux-v8.0.zip",
150 "java_tools_javac11_windows-v8.0.zip",
151 "java_tools_javac11_darwin-v8.0.zip",
Tobias Werth7c4f3ff2020-06-18 02:40:24 -0700152 "coverage_output_generator-v2.3.zip",
wyv8062ca42020-05-25 00:21:00 -0700153 # bazelbuid/stardoc
154 "1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz",
155 # rules_sass
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800156 "1.25.0.zip",
wyv8062ca42020-05-25 00:21:00 -0700157 # rules_nodejs
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800158 "rules_nodejs-1.3.0.tar.gz",
Jingwen Chenf3d16832020-05-28 07:41:16 -0700159 "android_tools_pkg-0.17.0.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800160 # bazelbuild/bazel-skylib
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800161 "2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
hlopkoaaf64572019-06-14 02:33:56 -0700162 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800163 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
iirinae8260492019-07-03 05:16:09 -0700164 # bazelbuild/rules_java
165 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700166 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800167 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700168 # bazelbuild/bazel-toolchains
philwob7d98432020-05-29 06:41:31 -0700169 "bazel-toolchains-3.1.0.tar.gz",
iirinad26a3c12019-07-19 04:39:33 -0700170 # bazelbuild/rules_pkg
philwob14e4062020-01-27 03:02:32 -0800171 "rules_pkg-0.2.4.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700172 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700173 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800174 # protocolbuffers/protobuf
175 "v3.11.3.tar.gz",
Yun Penge2f11d72020-06-03 09:16:35 -0700176 # grpc/grpc
177 "v1.26.0.tar.gz",
178 # c-ares/c-ares
179 "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz",
180 # protocolbuffers/upb
181 "9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz",
cparsons871cd6f2018-08-16 09:10:38 -0700182 ],
cushonb6646232018-09-07 01:44:10 -0700183 dirname = "derived/distdir",
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700184 sha256 = {
Klaus Aehligd4a8a472018-12-06 07:34:02 -0800185 "e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip": "fe2e04f91ce8c59d49d91b8102edc6627c6fa2906c1b0e7346f01419ec4f419d",
elenairina623fe582020-02-18 07:53:40 -0800186 "java_tools_javac11_linux-v8.0.zip": "c24aef916cc5a8e9f6d53db1f93c54fe5790a58996a1099592e1dfe992acc81e",
187 "java_tools_javac11_windows-v8.0.zip": "444c391977e50af4e10549a28d021069d2ca7745a0e7b9b968a7b153fe3ea430",
188 "java_tools_javac11_darwin-v8.0.zip": "e0291e8956ac295143da4a673ca50727f7376665ee82b649a4ee810b64ff76c1",
Tobias Werth7c4f3ff2020-06-18 02:40:24 -0700189 "coverage_output_generator-v2.3.zip": "0d6f73ed76908d7ec2840edd765a264b34036e4e3ec1c21a00421770523bcb27",
wyv8062ca42020-05-25 00:21:00 -0700190 # bazelbuild/stardoc
191 "1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz": "5a725b777976b77aa122b707d1b6f0f39b6020f66cd427bb111a585599c857b1",
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800192 # rules_sass
193 "1.25.0.zip": "c78be58f5e0a29a04686b628cf54faaee0094322ae0ac99da5a8a8afca59a647",
194 # rules_nodejs
195 "rules_nodejs-1.3.0.tar.gz": "b6670f9f43faa66e3009488bbd909bc7bc46a5a9661a33f6bc578068d1837f37",
Jingwen Chenf3d16832020-05-28 07:41:16 -0700196 "android_tools_pkg-0.17.0.tar.gz": "8d0bf8ab83c9e38ec6ed5ce7bf425dbdc6469cec9e078559d4e8da42b705410f",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800197 # bazelbuild/bazel-skylib
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800198 "2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz": "c00ceec469dbcf7929972e3c79f20c14033824538038a554952f5c31d8832f96",
hlopkoaaf64572019-06-14 02:33:56 -0700199 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800200 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": "66184688debeeefcc2a16a2f80b03f514deac8346fe888fb7e691a52c023dd88",
iirinae8260492019-07-03 05:16:09 -0700201 # bazelbuild/rules_java
202 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
oquenchil96068872019-07-08 07:01:39 -0700203 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800204 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip": "1d4dbbd1e1e9b57d40bb0ade51c9e882da7658d5bfbf22bbd15b68e7879d761f",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700205 # bazelbuild/bazel-toolchains
philwob7d98432020-05-29 06:41:31 -0700206 "bazel-toolchains-3.1.0.tar.gz": "726b5423e1c7a3866a3a6d68e7123b4a955e9fcbe912a51e0f737e6dab1d0af2",
iirinad26a3c12019-07-19 04:39:33 -0700207 # bazelbuild/rules_pkg
philwob14e4062020-01-27 03:02:32 -0800208 "rules_pkg-0.2.4.tar.gz": "4ba8f4ab0ff85f2484287ab06c0d871dcb31cc54d439457d28fd4ae14b18450a",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700209 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700210 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz": "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800211 # protocolbuffers/protobuf
212 "v3.11.3.tar.gz": "cf754718b0aa945b00550ed7962ddc167167bd922b842199eeb6505e6f344852",
Yun Penge2f11d72020-06-03 09:16:35 -0700213 # grpc/grpc
214 "v1.26.0.tar.gz": "2fcb7f1ab160d6fd3aaade64520be3e5446fc4c6fa7ba6581afdc4e26094bd81",
215 # c-ares/c-ares
216 "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz": "e8c2751ddc70fed9dc6f999acd92e232d5846f009ee1674f8aee81f19b2b915a",
217 # protocolbuffers/upb
218 "9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz": "61d0417abd60e65ed589c9deee7c124fe76a4106831f6ad39464e1525cef1454",
cushonb6646232018-09-07 01:44:10 -0700219 },
220 urls = {
hlopko6b06acc2019-03-25 04:40:10 -0700221 "e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip": [
222 "https://mirror.bazel.build/github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
223 "https://github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
224 ],
elenairina623fe582020-02-18 07:53:40 -0800225 "java_tools_javac11_linux-v8.0.zip": [
226 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_linux-v8.0.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700227 ],
elenairina623fe582020-02-18 07:53:40 -0800228 "java_tools_javac11_windows-v8.0.zip": [
229 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_windows-v8.0.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700230 ],
elenairina623fe582020-02-18 07:53:40 -0800231 "java_tools_javac11_darwin-v8.0.zip": [
232 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_darwin-v8.0.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700233 ],
Tobias Werth7c4f3ff2020-06-18 02:40:24 -0700234 "coverage_output_generator-v2.3.zip": [
235 "https://mirror.bazel.build/bazel_coverage_output_generator/releases/coverage_output_generator-v2.3.zip",
iirinaec2b0802019-04-09 10:43:48 -0700236 ],
wyv8062ca42020-05-25 00:21:00 -0700237 "1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz": [
wyv408be522020-05-26 02:14:23 -0700238 "https://mirror.bazel.build/github.com/bazelbuild/stardoc/archive/1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz",
wyv8062ca42020-05-25 00:21:00 -0700239 "https://github.com/bazelbuild/stardoc/archive/1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz",
hlopko6b06acc2019-03-25 04:40:10 -0700240 ],
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800241 "1.25.0.zip": [
242 "https://mirror.bazel.build/github.com/bazelbuild/rules_sass/archive/1.25.0.zip",
243 "https://github.com/bazelbuild/rules_sass/archive/1.25.0.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700244 ],
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800245 "rules_nodejs-1.3.0.tar.gz": [
pcloudy4794b382020-04-22 02:11:13 -0700246 "https://mirror.bazel.build/github.com/bazelbuild/rules_nodejs/releases/download/1.3.0/rules_nodejs-1.3.0.tar.gz",
247 "https://github.com/bazelbuild/rules_nodejs/releases/download/1.3.0/rules_nodejs-1.3.0.tar.gz",
hlopko6b06acc2019-03-25 04:40:10 -0700248 ],
Jingwen Chenf3d16832020-05-28 07:41:16 -0700249 "android_tools_pkg-0.17.0.tar.gz": [
250 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.17.0.tar.gz",
Jingwen Chen186929e2019-04-02 10:38:30 -0700251 ],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800252 # bazelbuild/bazel-skylib
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800253 "2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz": [
254 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/archive/2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
255 "https://github.com/bazelbuild/bazel-skylib/archive/2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800256 ],
hlopkoaaf64572019-06-14 02:33:56 -0700257 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800258 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": [
259 "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
260 "https://github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
hlopkoaaf64572019-06-14 02:33:56 -0700261 ],
iirinae8260492019-07-03 05:16:09 -0700262 # bazelbuild/rules_java
263 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": [
oquenchil96068872019-07-08 07:01:39 -0700264 "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
iirinae8260492019-07-03 05:16:09 -0700265 "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700266 ],
267 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800268 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip": [
269 "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
270 "https://github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
oquenchil96068872019-07-08 07:01:39 -0700271 ],
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700272 # bazelbuild/bazel-toolchains
philwob7d98432020-05-29 06:41:31 -0700273 "bazel-toolchains-3.1.0.tar.gz": [
274 "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/releases/download/3.1.0/bazel-toolchains-3.1.0.tar.gz",
John Caterf47f83e2020-05-04 05:16:00 -0700275 "https://github.com/bazelbuild/bazel-toolchains/releases/download/3.1.0/bazel-toolchains-3.1.0.tar.gz",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700276 ],
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700277 # bazelbuild/rules_pkg
philwob14e4062020-01-27 03:02:32 -0800278 "rules_pkg-0.2.4.tar.gz": [
279 "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.2.4/rules_pkg-0.2.4.tar.gz",
280 "https://github.com/bazelbuild/rules_pkg/releases/download/0.2.4/rules_pkg-0.2.4.tar.gz",
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700281 ],
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700282 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700283 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz": [
284 "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
285 "https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700286 ],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800287 # protocolbuffers/protobuf
288 "v3.11.3.tar.gz": [
289 "https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v3.11.3.tar.gz",
290 "https://github.com/protocolbuffers/protobuf/archive/v3.11.3.tar.gz",
291 ],
Yun Penge2f11d72020-06-03 09:16:35 -0700292 # grpc/grpc
293 "v1.26.0.tar.gz": [
294 "https://mirror.bazel.build/github.com/grpc/grpc/archive/v1.26.0.tar.gz",
295 "https://github.com/grpc/grpc/archive/v1.26.0.tar.gz",
296 ],
297 # c-ares/c-ares
298 "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz": [
299 "https://mirror.bazel.build/github.com/c-ares/c-ares/archive/e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz",
300 "https://github.com/c-ares/c-ares/archive/e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz",
301 ],
302 # protocolbuffers/upb
303 "9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz": [
304 "https://mirror.bazel.build/github.com/protocolbuffers/upb/archive/9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz",
305 "https://github.com/protocolbuffers/upb/archive/9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz",
306 ],
cushonb6646232018-09-07 01:44:10 -0700307 },
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700308)
309
Philipp Wollermann95048272017-03-17 15:11:58 +0000310# OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK.
311http_file(
312 name = "openjdk_linux",
philwo75edd782019-01-29 05:02:44 -0800313 downloaded_file_path = "zulu-linux.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800314 sha256 = "65bfe4e0ffa74a680ee4410db46b17e30cd9397b664a92a886599fe1f3530969",
315 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 +0000316)
317
Tobias Werth218e8f62018-12-13 04:44:35 -0800318http_file(
319 name = "openjdk_linux_vanilla",
philwo75edd782019-01-29 05:02:44 -0800320 downloaded_file_path = "zulu-linux-vanilla.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800321 sha256 = "360626cc19063bc411bfed2914301b908a8f77a7919aaea007a977fa8fb3cde1",
322 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz"],
Tobias Werth218e8f62018-12-13 04:44:35 -0800323)
324
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800325http_file(
326 name = "openjdk_linux_minimal",
philwo75edd782019-01-29 05:02:44 -0800327 downloaded_file_path = "zulu-linux-minimal.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800328 sha256 = "91f7d52f695c681d4e21499b4319d548aadef249a6b3053e306308992e1e29ae",
329 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 -0800330)
331
Philipp Wollermann95048272017-03-17 15:11:58 +0000332http_file(
philwo9f7fe692019-06-27 06:53:12 -0700333 name = "openjdk_linux_aarch64",
334 downloaded_file_path = "zulu-linux-aarch64.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800335 sha256 = "6b245793087300db3ee82ab0d165614f193a73a60f2f011e347756c1e6ca5bac",
336 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 -0700337)
338
339http_file(
340 name = "openjdk_linux_aarch64_vanilla",
341 downloaded_file_path = "zulu-linux-aarch64-vanilla.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800342 sha256 = "a452f1b9682d9f83c1c14e54d1446e1c51b5173a3a05dcb013d380f9508562e4",
343 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.48-ca-jdk11.0.6/zulu11.37.48-ca-jdk11.0.6-linux_aarch64.tar.gz"],
philwo9f7fe692019-06-27 06:53:12 -0700344)
345
346http_file(
347 name = "openjdk_linux_aarch64_minimal",
348 downloaded_file_path = "zulu-linux-aarch64-minimal.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800349 sha256 = "06f6520a877704c77614bcfc4f846cc7cbcbf5eaad149bf7f19f4f16e285c9de",
350 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 -0700351)
352
353http_file(
Jason Furmanek04e073e2020-05-28 05:48:09 -0700354 name = "openjdk_linux_ppc64le_vanilla",
355 downloaded_file_path="adoptopenjdk-ppc64le-vanilla.tar.gz",
356 sha256 = "a417db0295b1f4b538ecbaf7c774f3a177fab9657a665940170936c0eca4e71a",
357 urls = [
philwo66d84ef2020-06-05 06:52:20 -0700358 "https://mirror.bazel.build/openjdk/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.7_10.tar.gz",
359 "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.7_10.tar.gz",
Jason Furmanek04e073e2020-05-28 05:48:09 -0700360 ],
361)
362
363http_file(
Philipp Wollermann95048272017-03-17 15:11:58 +0000364 name = "openjdk_macos",
philwo75edd782019-01-29 05:02:44 -0800365 downloaded_file_path = "zulu-macos.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800366 sha256 = "8e283cfd23c7555be8e17295ed76eb8f00324c88ab904b8de37bbe08f90e569b",
367 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 +0000368)
369
370http_file(
Tobias Werth218e8f62018-12-13 04:44:35 -0800371 name = "openjdk_macos_vanilla",
philwo75edd782019-01-29 05:02:44 -0800372 downloaded_file_path = "zulu-macos-vanilla.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800373 sha256 = "e1fe56769f32e2aaac95e0a8f86b5a323da5af3a3b4bba73f3086391a6cc056f",
374 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz"],
Tobias Werth218e8f62018-12-13 04:44:35 -0800375)
376
377http_file(
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800378 name = "openjdk_macos_minimal",
philwo75edd782019-01-29 05:02:44 -0800379 downloaded_file_path = "zulu-macos-minimal.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800380 sha256 = "1bacb1c07035d4066d79f0b65b4ea0ebd1954f3662bdfe3618da382ac8fd23a6",
381 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 -0800382)
383
384http_file(
Philipp Wollermann95048272017-03-17 15:11:58 +0000385 name = "openjdk_win",
philwo75edd782019-01-29 05:02:44 -0800386 downloaded_file_path = "zulu-win.zip",
philwo3ac4af42020-02-14 07:58:55 -0800387 sha256 = "8e1604b3a27dcf639bc6d1a73103f1211848139e4cceb081d0a74a99e1e6f995",
388 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 +0000389)
Googler5f36bf82017-07-12 20:43:08 +0200390
Tobias Werth218e8f62018-12-13 04:44:35 -0800391http_file(
392 name = "openjdk_win_vanilla",
philwo75edd782019-01-29 05:02:44 -0800393 downloaded_file_path = "zulu-win-vanilla.zip",
philwo3ac4af42020-02-14 07:58:55 -0800394 sha256 = "a9695617b8374bfa171f166951214965b1d1d08f43218db9a2a780b71c665c18",
395 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-win_x64.zip"],
Tobias Werth218e8f62018-12-13 04:44:35 -0800396)
397
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800398http_file(
399 name = "openjdk_win_minimal",
philwo75edd782019-01-29 05:02:44 -0800400 downloaded_file_path = "zulu-win-minimal.zip",
philwo3ac4af42020-02-14 07:58:55 -0800401 sha256 = "b90a713c9c2d9ea23cad44d2c2dfcc9af22faba9bde55dedc1c3bb9f556ac1ae",
402 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 -0800403)
404
Googler5f36bf82017-07-12 20:43:08 +0200405http_archive(
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700406 name = "bazel_toolchains",
philwo17506af2020-01-28 04:20:39 -0800407 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
408 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
John Caterf47f83e2020-05-04 05:16:00 -0700409 sha256 = "726b5423e1c7a3866a3a6d68e7123b4a955e9fcbe912a51e0f737e6dab1d0af2",
410 strip_prefix = "bazel-toolchains-3.1.0",
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700411 urls = [
philwob7d98432020-05-29 06:41:31 -0700412 "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/releases/download/3.1.0/bazel-toolchains-3.1.0.tar.gz",
John Caterf47f83e2020-05-04 05:16:00 -0700413 "https://github.com/bazelbuild/bazel-toolchains/releases/download/3.1.0/bazel-toolchains-3.1.0.tar.gz",
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700414 ],
Googler5f36bf82017-07-12 20:43:08 +0200415)
ccalvarin1cbe62a2017-08-14 21:09:07 +0200416
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700417load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig")
418
419rbe_autoconfig(
420 name = "rbe_ubuntu1804_java11",
421 detect_java_home = True,
422 registry = "gcr.io",
philwo479857b2020-02-17 10:46:07 -0800423 repository = "bazel-public/ubuntu1804-bazel-java11",
424 tag = "latest",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700425)
426
427rbe_autoconfig(
428 name = "rbe_ubuntu1604_java8",
429 detect_java_home = True,
430 registry = "gcr.io",
philwo479857b2020-02-17 10:46:07 -0800431 repository = "bazel-public/ubuntu1604-bazel-java8",
432 tag = "latest",
Jakob Buchgraber3541ad62019-04-30 07:51:12 -0700433)
434
Googlerde0612a2019-03-07 06:06:55 -0800435# Creates toolchain configuration for remote execution with BuildKite CI
436# for rbe_ubuntu1604.
437# To run the tests with RBE on BuildKite CI uncomment the two lines below
438# load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig")
439# rbe_autoconfig(name = "buildkite_config")
440
ccalvarin8e9f4a82018-03-23 08:19:37 -0700441http_archive(
442 name = "com_google_googletest",
Yannic Bonenberger5b4ab2d2019-10-15 05:38:04 -0700443 sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb",
444 strip_prefix = "googletest-release-1.10.0",
ccalvarin8e9f4a82018-03-23 08:19:37 -0700445 urls = [
Yannic Bonenberger5b4ab2d2019-10-15 05:38:04 -0700446 "https://mirror.bazel.build/github.com/google/googletest/archive/release-1.10.0.tar.gz",
447 "https://github.com/google/googletest/archive/release-1.10.0.tar.gz",
ccalvarin8e9f4a82018-03-23 08:19:37 -0700448 ],
ccalvarin8e9f4a82018-03-23 08:19:37 -0700449)
450
cparsons871cd6f2018-08-16 09:10:38 -0700451http_archive(
452 name = "bazel_skylib",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800453 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
454 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800455 # Commit 2d4c9528e0f453b5950eeaeac11d8d09f5a504d4 of 2020-02-06
456 sha256 = "c00ceec469dbcf7929972e3c79f20c14033824538038a554952f5c31d8832f96",
457 strip_prefix = "bazel-skylib-2d4c9528e0f453b5950eeaeac11d8d09f5a504d4",
cparsons871cd6f2018-08-16 09:10:38 -0700458 urls = [
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800459 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/archive/2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
460 "https://github.com/bazelbuild/bazel-skylib/archive/2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
cparsons871cd6f2018-08-16 09:10:38 -0700461 ],
cparsons871cd6f2018-08-16 09:10:38 -0700462)
cparsonsa5be6612018-08-27 13:21:21 -0700463
wyv8062ca42020-05-25 00:21:00 -0700464# Note that stardoc depends on being called io_bazel_skydoc
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700465# to work without being patched, as it hard-codes this name in its sources.
wyv8062ca42020-05-25 00:21:00 -0700466# TODO(wyv): Is the above still true? Try a different name and see if it works.
467# If it does, can we rename the workspace in bazelbuild/stardoc?
cparsonsa5be6612018-08-27 13:21:21 -0700468http_archive(
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700469 name = "io_bazel_skydoc",
wyv8062ca42020-05-25 00:21:00 -0700470 sha256 = "5a725b777976b77aa122b707d1b6f0f39b6020f66cd427bb111a585599c857b1",
471 strip_prefix = "stardoc-1ef781ced3b1443dca3ed05dec1989eca1a4e1cd",
wyv408be522020-05-26 02:14:23 -0700472 urls = [
473 "https://mirror.bazel.build/github.com/bazelbuild/stardoc/archive/1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz",
474 "https://github.com/bazelbuild/stardoc/archive/1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz",
475 ],
cparsonsa5be6612018-08-27 13:21:21 -0700476)
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700477
oquenchil96068872019-07-08 07:01:39 -0700478http_archive(
479 name = "rules_cc",
philwo17506af2020-01-28 04:20:39 -0800480 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
481 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Marcel Hlopko02d19662019-11-11 21:55:16 -0800482 sha256 = "1d4dbbd1e1e9b57d40bb0ade51c9e882da7658d5bfbf22bbd15b68e7879d761f",
483 strip_prefix = "rules_cc-8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0",
oquenchil96068872019-07-08 07:01:39 -0700484 urls = [
Marcel Hlopko02d19662019-11-11 21:55:16 -0800485 "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
486 "https://github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
oquenchil96068872019-07-08 07:01:39 -0700487 ],
488)
489
iirinab815b792019-07-17 05:47:01 -0700490http_archive(
491 name = "rules_java",
philwo17506af2020-01-28 04:20:39 -0800492 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
493 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
iirinab815b792019-07-17 05:47:01 -0700494 sha256 = "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
iirinad26a3c12019-07-19 04:39:33 -0700495 strip_prefix = "rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178",
iirinab815b792019-07-17 05:47:01 -0700496 urls = [
iirinad26a3c12019-07-19 04:39:33 -0700497 "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
498 "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
iirinab815b792019-07-17 05:47:01 -0700499 ],
iirinab815b792019-07-17 05:47:01 -0700500)
501
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700502http_archive(
503 name = "rules_proto",
philwo17506af2020-01-28 04:20:39 -0800504 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
505 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700506 sha256 = "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208",
507 strip_prefix = "rules_proto-97d8af4dc474595af3900dd85cb3a29ad28cc313",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700508 urls = [
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700509 "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
510 "https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700511 ],
512)
513
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700514# For testing, have an distdir_tar with all the archives implicit in every
515# WORKSPACE, to that they don't have to be refetched for every test
516# calling `bazel sync`.
517distdir_tar(
Jingwen Chen186929e2019-04-02 10:38:30 -0700518 name = "test_WORKSPACE_files",
philwo75edd782019-01-29 05:02:44 -0800519 archives = [
elenairina623fe582020-02-18 07:53:40 -0800520 "java_tools_javac11_linux-v8.0.zip",
521 "java_tools_javac11_windows-v8.0.zip",
522 "java_tools_javac11_darwin-v8.0.zip",
Tobias Werth7c4f3ff2020-06-18 02:40:24 -0700523 "coverage_output_generator-v2.3.zip",
philwo3ac4af42020-02-14 07:58:55 -0800524 "zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz",
525 "zulu11.37.48-ca-jdk11.0.6-linux_aarch64.tar.gz",
526 "zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz",
527 "zulu11.37.17-ca-jdk11.0.6-win_x64.zip",
Jingwen Chenf3d16832020-05-28 07:41:16 -0700528 "android_tools_pkg-0.17.0.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800529 # bazelbuild/bazel-skylib
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800530 "2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
hlopkoaaf64572019-06-14 02:33:56 -0700531 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800532 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
iirinae8260492019-07-03 05:16:09 -0700533 # bazelbuild/rules_java
534 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700535 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800536 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700537 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700538 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800539 # protocolbuffers/protobuf
540 "v3.11.3.tar.gz",
Yun Penge2f11d72020-06-03 09:16:35 -0700541 # grpc/grpc
542 "v1.26.0.tar.gz",
543 # c-ares/c-ares
544 "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz",
545 # protocolbuffers/upb
546 "9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz",
philwo75edd782019-01-29 05:02:44 -0800547 ],
Jingwen Chen186929e2019-04-02 10:38:30 -0700548 dirname = "test_WORKSPACE/distdir",
philwo75edd782019-01-29 05:02:44 -0800549 sha256 = {
elenairina623fe582020-02-18 07:53:40 -0800550 "java_tools_javac11_linux-v8.0.zip": "c24aef916cc5a8e9f6d53db1f93c54fe5790a58996a1099592e1dfe992acc81e",
551 "java_tools_javac11_windows-v8.0.zip": "444c391977e50af4e10549a28d021069d2ca7745a0e7b9b968a7b153fe3ea430",
552 "java_tools_javac11_darwin-v8.0.zip": "e0291e8956ac295143da4a673ca50727f7376665ee82b649a4ee810b64ff76c1",
Tobias Werth7c4f3ff2020-06-18 02:40:24 -0700553 "coverage_output_generator-v2.3.zip": "0d6f73ed76908d7ec2840edd765a264b34036e4e3ec1c21a00421770523bcb27",
philwo3ac4af42020-02-14 07:58:55 -0800554 "zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz": "360626cc19063bc411bfed2914301b908a8f77a7919aaea007a977fa8fb3cde1",
philwoe158fe72020-02-17 06:32:43 -0800555 "zulu11.37.48-ca-jdk11.0.6-linux_aarch64.tar.gz": "a452f1b9682d9f83c1c14e54d1446e1c51b5173a3a05dcb013d380f9508562e4",
philwo3ac4af42020-02-14 07:58:55 -0800556 "zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz": "e1fe56769f32e2aaac95e0a8f86b5a323da5af3a3b4bba73f3086391a6cc056f",
557 "zulu11.37.17-ca-jdk11.0.6-win_x64.zip": "a9695617b8374bfa171f166951214965b1d1d08f43218db9a2a780b71c665c18",
Jingwen Chenf3d16832020-05-28 07:41:16 -0700558 "android_tools_pkg-0.17.0.tar.gz": "8d0bf8ab83c9e38ec6ed5ce7bf425dbdc6469cec9e078559d4e8da42b705410f",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800559 # bazelbuild/bazel-skylib
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800560 "2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz": "c00ceec469dbcf7929972e3c79f20c14033824538038a554952f5c31d8832f96",
hlopkoaaf64572019-06-14 02:33:56 -0700561 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800562 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": "66184688debeeefcc2a16a2f80b03f514deac8346fe888fb7e691a52c023dd88",
iirinae8260492019-07-03 05:16:09 -0700563 # bazelbuild/rules_java
564 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
oquenchil96068872019-07-08 07:01:39 -0700565 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800566 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip": "1d4dbbd1e1e9b57d40bb0ade51c9e882da7658d5bfbf22bbd15b68e7879d761f",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700567 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700568 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz": "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800569 # protocolbuffers/protobuf
570 "v3.11.3.tar.gz": "cf754718b0aa945b00550ed7962ddc167167bd922b842199eeb6505e6f344852",
Yun Penge2f11d72020-06-03 09:16:35 -0700571 # grpc/grpc
572 "v1.26.0.tar.gz": "2fcb7f1ab160d6fd3aaade64520be3e5446fc4c6fa7ba6581afdc4e26094bd81",
573 # c-ares/c-ares
574 "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz": "e8c2751ddc70fed9dc6f999acd92e232d5846f009ee1674f8aee81f19b2b915a",
575 # protocolbuffers/upb
576 "9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz": "61d0417abd60e65ed589c9deee7c124fe76a4106831f6ad39464e1525cef1454",
philwo75edd782019-01-29 05:02:44 -0800577 },
578 urls = {
elenairina623fe582020-02-18 07:53:40 -0800579 "java_tools_javac11_linux-v8.0.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_linux-v8.0.zip"],
580 "java_tools_javac11_windows-v8.0.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_windows-v8.0.zip"],
581 "java_tools_javac11_darwin-v8.0.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_darwin-v8.0.zip"],
Tobias Werth7c4f3ff2020-06-18 02:40:24 -0700582 "coverage_output_generator-v2.3.zip": ["https://mirror.bazel.build/bazel_coverage_output_generator/releases/coverage_output_generator-v2.3.zip"],
philwo3ac4af42020-02-14 07:58:55 -0800583 "zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz"],
584 "zulu11.37.48-ca-jdk11.0.6-linux_aarch64.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu11.37.48-ca-jdk11.0.6/zulu11.37.48-ca-jdk11.0.6-linux_aarch64.tar.gz"],
585 "zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz"],
586 "zulu11.37.17-ca-jdk11.0.6-win_x64.zip": ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-win_x64.zip"],
Jingwen Chenf3d16832020-05-28 07:41:16 -0700587 "android_tools_pkg-0.17.0.tar.gz": [
588 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.17.0.tar.gz",
Jingwen Chen186929e2019-04-02 10:38:30 -0700589 ],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800590 # bazelbuild/bazel-skylib
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800591 "2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz": [
592 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/archive/2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
593 "https://github.com/bazelbuild/bazel-skylib/archive/2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800594 ],
hlopkoaaf64572019-06-14 02:33:56 -0700595 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800596 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": [
597 "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
598 "https://github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
hlopkoaaf64572019-06-14 02:33:56 -0700599 ],
iirinae8260492019-07-03 05:16:09 -0700600 # bazelbuild/rules_java
601 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": [
oquenchil96068872019-07-08 07:01:39 -0700602 "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700603 "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700604 ],
605 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800606 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip": [
607 "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
608 "https://github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
oquenchil96068872019-07-08 07:01:39 -0700609 ],
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700610 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700611 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz": [
612 "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
613 "https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700614 ],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800615 # protocolbuffers/protobuf
616 "v3.11.3.tar.gz": [
617 "https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v3.11.3.tar.gz",
618 "https://github.com/protocolbuffers/protobuf/archive/v3.11.3.tar.gz",
619 ],
Yun Penge2f11d72020-06-03 09:16:35 -0700620 # grpc/grpc
621 "v1.26.0.tar.gz": [
622 "https://mirror.bazel.build/github.com/grpc/grpc/archive/v1.26.0.tar.gz",
623 "https://github.com/grpc/grpc/archive/v1.26.0.tar.gz",
624 ],
625 # c-ares/c-ares
626 "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz": [
627 "https://mirror.bazel.build/github.com/c-ares/c-ares/archive/e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz",
628 "https://github.com/c-ares/c-ares/archive/e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz",
629 ],
630 # protocolbuffers/upb
631 "9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz": [
632 "https://mirror.bazel.build/github.com/protocolbuffers/upb/archive/9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz",
633 "https://github.com/protocolbuffers/upb/archive/9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz",
634 ],
philwo75edd782019-01-29 05:02:44 -0800635 },
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700636)
Jingwen Chen186bdcd2018-12-14 10:27:23 -0800637
638load("//scripts/docs:doc_versions.bzl", "DOC_VERSIONS")
639
Jingwen Chen762c27d2020-05-14 03:07:03 -0700640# Load versioned documentation tarballs from GCS
Jingwen Chen186bdcd2018-12-14 10:27:23 -0800641[http_file(
Jingwen Chend3a5fd62020-05-05 14:43:23 -0700642 # Split on "-" to get the version without cherrypick commits.
643 name = "jekyll_tree_%s" % DOC_VERSION["version"].split("-")[0].replace(".", "_"),
Jingwen Chen186bdcd2018-12-14 10:27:23 -0800644 sha256 = DOC_VERSION["sha256"],
645 urls = ["https://mirror.bazel.build/bazel_versioned_docs/jekyll-tree-%s.tar" % DOC_VERSION["version"]],
646) for DOC_VERSION in DOC_VERSIONS]
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700647
Jingwen Chen762c27d2020-05-14 03:07:03 -0700648# Load shared base CSS theme from bazelbuild/bazel-website
649http_archive(
650 name = "bazel_website",
651 urls = ["https://github.com/bazelbuild/bazel-website/archive/c174fa288aa079b68416d2ce2cc97268fa172f42.tar.gz"],
652 strip_prefix = "bazel-website-c174fa288aa079b68416d2ce2cc97268fa172f42",
653 sha256 = "a5f531dd1d62e6947dcfc279656ffc2fdf6f447c163914c5eabf7961b4cb6eb4",
654 # TODO(https://github.com/bazelbuild/bazel/issues/10793)
655 # - Export files from bazel-website's BUILD, instead of doing it here.
656 # - Share more common stylesheets, like footer and navbar.
657 build_file_content = """
658exports_files(["_sass/style.scss"])
659"""
660)
661
wyv8062ca42020-05-25 00:21:00 -0700662# Stardoc recommends declaring its dependencies via "*_dependencies" functions.
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700663# This requires that the repositories these functions come from need to be
664# fetched unconditionally for everything (including just building bazel!), so
665# provide them as http_archives that can be shiped in the distdir, to keep the
666# distribution archive self-contained.
667http_archive(
668 name = "io_bazel_rules_sass",
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800669 sha256 = "c78be58f5e0a29a04686b628cf54faaee0094322ae0ac99da5a8a8afca59a647",
John Caterf47f83e2020-05-04 05:16:00 -0700670 strip_prefix = "rules_sass-1.25.0",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700671 urls = [
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800672 "https://mirror.bazel.build/github.com/bazelbuild/rules_sass/archive/1.25.0.zip",
673 "https://github.com/bazelbuild/rules_sass/archive/1.25.0.zip",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700674 ],
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700675)
iirinaf5c334262019-03-19 02:44:59 -0700676
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700677http_archive(
678 name = "build_bazel_rules_nodejs",
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800679 sha256 = "b6670f9f43faa66e3009488bbd909bc7bc46a5a9661a33f6bc578068d1837f37",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700680 urls = [
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800681 "https://mirror.bazel.build/github.com/bazelbuild/rules_nodejs/releases/download/1.3.0/rules_nodejs-1.3.0.tar.gz",
682 "https://github.com/bazelbuild/rules_nodejs/releases/download/1.3.0/rules_nodejs-1.3.0.tar.gz",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700683 ],
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700684)
685
iirina3ab4dbc2019-04-29 05:12:39 -0700686http_archive(
iirinaa6e92602019-05-13 06:20:12 -0700687 name = "java_tools_langtools_javac11",
iirinab815b792019-07-17 05:47:01 -0700688 sha256 = "cf0814fa002ef3d794582bb086516d8c9ed0958f83f19799cdb08949019fe4c7",
iirinaa6e92602019-05-13 06:20:12 -0700689 urls = [
iirinab815b792019-07-17 05:47:01 -0700690 "https://mirror.bazel.build/bazel_java_tools/jdk_langtools/langtools_jdk11_v2.zip",
iirinaa6e92602019-05-13 06:20:12 -0700691 ],
692)
693
iirina0eec6932019-06-12 07:48:22 -0700694http_archive(
hlopkoaaf64572019-06-14 02:33:56 -0700695 name = "platforms",
aldersondrive64235c32019-11-18 08:50:39 -0800696 sha256 = "66184688debeeefcc2a16a2f80b03f514deac8346fe888fb7e691a52c023dd88",
697 strip_prefix = "platforms-46993efdd33b73649796c5fc5c9efb193ae19d51",
hlopkoaaf64572019-06-14 02:33:56 -0700698 urls = [
aldersondrive64235c32019-11-18 08:50:39 -0800699 "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
700 "https://github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
hlopkoaaf64572019-06-14 02:33:56 -0700701 ],
hlopkoaaf64572019-06-14 02:33:56 -0700702)
703
704http_archive(
iirina0eec6932019-06-12 07:48:22 -0700705 name = "java_tools_langtools_javac12",
706 sha256 = "99b107105165a91df82cd7cf82a8efb930d803fb7de1663cf7f780142104cd14",
707 urls = [
708 "https://mirror.bazel.build/bazel_java_tools/jdk_langtools/langtools_jdk12.zip",
709 ],
710)
711
philwo17506af2020-01-28 04:20:39 -0800712# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/android/android_remote_tools.WORKSPACE
713http_archive(
714 name = "android_tools_for_testing",
715 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
716 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Jingwen Chenf3d16832020-05-28 07:41:16 -0700717 sha256 = "8d0bf8ab83c9e38ec6ed5ce7bf425dbdc6469cec9e078559d4e8da42b705410f", # DO_NOT_REMOVE_THIS_ANDROID_TOOLS_UPDATE_MARKER
718 url = "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.17.0.tar.gz",
philwo17506af2020-01-28 04:20:39 -0800719)
720
721# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/coverage.WORKSPACE.
722http_archive(
723 name = "remote_coverage_tools_for_testing",
724 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
725 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Tobias Werth7c4f3ff2020-06-18 02:40:24 -0700726 sha256 = "0d6f73ed76908d7ec2840edd765a264b34036e4e3ec1c21a00421770523bcb27",
philwo17506af2020-01-28 04:20:39 -0800727 urls = [
Tobias Werth7c4f3ff2020-06-18 02:40:24 -0700728 "https://mirror.bazel.build/bazel_coverage_output_generator/releases/coverage_output_generator-v2.3.zip",
philwo17506af2020-01-28 04:20:39 -0800729 ],
730)
731
732# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
733http_archive(
philwo17506af2020-01-28 04:20:39 -0800734 name = "remotejdk11_linux_for_testing",
735 build_file = "@local_jdk//:BUILD.bazel",
736 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
737 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo8b1ef422020-02-14 08:26:00 -0800738 sha256 = "360626cc19063bc411bfed2914301b908a8f77a7919aaea007a977fa8fb3cde1",
739 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-linux_x64",
740 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz"],
philwo17506af2020-01-28 04:20:39 -0800741)
742
743# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
744http_archive(
745 name = "remotejdk11_linux_aarch64_for_testing",
746 build_file = "@local_jdk//:BUILD.bazel",
747 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
748 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo8b1ef422020-02-14 08:26:00 -0800749 sha256 = "a452f1b9682d9f83c1c14e54d1446e1c51b5173a3a05dcb013d380f9508562e4",
750 strip_prefix = "zulu11.37.48-ca-jdk11.0.6-linux_aarch64",
751 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.48-ca-jdk11.0.6/zulu11.37.48-ca-jdk11.0.6-linux_aarch64.tar.gz"],
philwo17506af2020-01-28 04:20:39 -0800752)
753
754# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
755http_archive(
Jason Furmanek04e073e2020-05-28 05:48:09 -0700756 name = "remotejdk11_linux_ppc64le_for_testing",
757 build_file = "@local_jdk//:BUILD.bazel",
758 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
759 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
760 sha256 = "a417db0295b1f4b538ecbaf7c774f3a177fab9657a665940170936c0eca4e71a",
761 strip_prefix = "jdk-11.0.7+10",
762 urls = [
philwo66d84ef2020-06-05 06:52:20 -0700763 "https://mirror.bazel.build/openjdk/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.7_10.tar.gz",
764 "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.7_10.tar.gz",
Jason Furmanek04e073e2020-05-28 05:48:09 -0700765 ],
766)
767
768# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
769http_archive(
philwo17506af2020-01-28 04:20:39 -0800770 name = "remotejdk11_macos_for_testing",
771 build_file = "@local_jdk//:BUILD.bazel",
772 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
773 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo8b1ef422020-02-14 08:26:00 -0800774 sha256 = "e1fe56769f32e2aaac95e0a8f86b5a323da5af3a3b4bba73f3086391a6cc056f",
775 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-macosx_x64",
776 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz"],
philwo17506af2020-01-28 04:20:39 -0800777)
778
779# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
780http_archive(
781 name = "remotejdk11_win_for_testing",
782 build_file = "@local_jdk//:BUILD.bazel",
783 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
784 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo8b1ef422020-02-14 08:26:00 -0800785 sha256 = "a9695617b8374bfa171f166951214965b1d1d08f43218db9a2a780b71c665c18",
786 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-win_x64",
787 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-win_x64.zip"],
philwo17506af2020-01-28 04:20:39 -0800788)
789
790# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
791http_archive(
792 name = "remote_java_tools_linux_for_testing",
793 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
794 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
elenairina623fe582020-02-18 07:53:40 -0800795 sha256 = "c24aef916cc5a8e9f6d53db1f93c54fe5790a58996a1099592e1dfe992acc81e",
philwo17506af2020-01-28 04:20:39 -0800796 urls = [
elenairina623fe582020-02-18 07:53:40 -0800797 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_linux-v8.0.zip",
798 "https://github.com/bazelbuild/java_tools/releases/download/javac11_v8.0/java_tools_javac11_linux-v8.0.zip",
philwo17506af2020-01-28 04:20:39 -0800799 ],
800)
801
802# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
803http_archive(
804 name = "remote_java_tools_windows_for_testing",
805 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
806 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
elenairina623fe582020-02-18 07:53:40 -0800807 sha256 = "444c391977e50af4e10549a28d021069d2ca7745a0e7b9b968a7b153fe3ea430",
philwo17506af2020-01-28 04:20:39 -0800808 urls = [
elenairina623fe582020-02-18 07:53:40 -0800809 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_windows-v8.0.zip",
810 "https://github.com/bazelbuild/java_tools/releases/download/javac11_v8.0/java_tools_javac11_windows-v8.0.zip",
philwo17506af2020-01-28 04:20:39 -0800811 ],
812)
813
814# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
815http_archive(
816 name = "remote_java_tools_darwin_for_testing",
817 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
818 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
elenairina623fe582020-02-18 07:53:40 -0800819 sha256 = "e0291e8956ac295143da4a673ca50727f7376665ee82b649a4ee810b64ff76c1",
philwo17506af2020-01-28 04:20:39 -0800820 urls = [
elenairina623fe582020-02-18 07:53:40 -0800821 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_darwin-v8.0.zip",
822 "https://github.com/bazelbuild/java_tools/releases/download/javac11_v8.0/java_tools_javac11_darwin-v8.0.zip",
philwo17506af2020-01-28 04:20:39 -0800823 ],
824)
825
826# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
827http_archive(
philwo17506af2020-01-28 04:20:39 -0800828 name = "remote_java_tools_javac11_test_linux",
829 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
830 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
elenairina623fe582020-02-18 07:53:40 -0800831 sha256 = "c24aef916cc5a8e9f6d53db1f93c54fe5790a58996a1099592e1dfe992acc81e",
philwo17506af2020-01-28 04:20:39 -0800832 urls = [
elenairina623fe582020-02-18 07:53:40 -0800833 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_linux-v8.0.zip",
philwo17506af2020-01-28 04:20:39 -0800834 ],
835)
836
837# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
838http_archive(
839 name = "remote_java_tools_javac11_test_windows",
840 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
841 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
elenairina623fe582020-02-18 07:53:40 -0800842 sha256 = "444c391977e50af4e10549a28d021069d2ca7745a0e7b9b968a7b153fe3ea430",
philwo17506af2020-01-28 04:20:39 -0800843 urls = [
elenairina623fe582020-02-18 07:53:40 -0800844 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_windows-v8.0.zip",
philwo17506af2020-01-28 04:20:39 -0800845 ],
846)
847
848# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
849http_archive(
850 name = "remote_java_tools_javac11_test_darwin",
851 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
852 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
elenairina623fe582020-02-18 07:53:40 -0800853 sha256 = "e0291e8956ac295143da4a673ca50727f7376665ee82b649a4ee810b64ff76c1",
philwo17506af2020-01-28 04:20:39 -0800854 urls = [
elenairina623fe582020-02-18 07:53:40 -0800855 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_darwin-v8.0.zip",
philwo17506af2020-01-28 04:20:39 -0800856 ],
857)
858
859# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
860http_archive(
861 name = "remote_java_tools_javac12_test_linux",
862 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
863 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
864 sha256 = "3997ee9a57b095748f1c0d084839fab2fbc72504aeb7b37b1f71c31738d330e3",
865 urls = ["https://mirror.bazel.build/bazel_java_tools/releases/javac12/v3.0/java_tools_javac12_linux-v3.0.zip"],
866)
867
868# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
869http_archive(
870 name = "remote_java_tools_javac12_test_windows",
871 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
872 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
873 sha256 = "cfad1718dad1fed12816748eed27ab30b9ea1268c8ce9940acf3b5b7d82d483d",
874 urls = [
875 "https://mirror.bazel.build/bazel_java_tools/releases/javac12/v3.0/java_tools_javac12_windows-v3.0.zip",
876 ],
877)
878
879# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
880http_archive(
881 name = "remote_java_tools_javac12_test_darwin",
882 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
883 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
884 sha256 = "54df966e7583bafe659e39b4103a4ce934201d969de638d071ada07d8e0c1a3a",
885 urls = [
886 "https://mirror.bazel.build/bazel_java_tools/releases/javac12/v3.0/java_tools_javac12_darwin-v3.0.zip",
887 ],
888)
889
890# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
891http_archive(
philwo17506af2020-01-28 04:20:39 -0800892 name = "openjdk11_linux_archive",
893 build_file_content = """
894java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
895exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
896""",
philwo8b1ef422020-02-14 08:26:00 -0800897 sha256 = "360626cc19063bc411bfed2914301b908a8f77a7919aaea007a977fa8fb3cde1",
898 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-linux_x64",
899 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz"],
philwo17506af2020-01-28 04:20:39 -0800900)
901
902# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
903http_archive(
904 name = "openjdk11_darwin_archive",
905 build_file_content = """
906java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
907exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
908""",
philwo8b1ef422020-02-14 08:26:00 -0800909 sha256 = "e1fe56769f32e2aaac95e0a8f86b5a323da5af3a3b4bba73f3086391a6cc056f",
910 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-macosx_x64",
911 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz"],
philwo17506af2020-01-28 04:20:39 -0800912)
913
914# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
915http_archive(
916 name = "openjdk11_windows_archive",
917 build_file_content = """
918java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
919exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
920""",
philwo8b1ef422020-02-14 08:26:00 -0800921 sha256 = "a9695617b8374bfa171f166951214965b1d1d08f43218db9a2a780b71c665c18",
922 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-win_x64",
923 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-win_x64.zip"],
philwo17506af2020-01-28 04:20:39 -0800924)
925
926# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
927http_archive(
928 name = "openjdk12_linux_archive",
929 build_file_content = """
930java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
931exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
932""",
philwof1fdd7a2020-02-17 00:10:46 -0800933 sha256 = "529c99841d69e11a85aea967ccfb9d0fd40b98c5b68dbe1d059002655e0a9c13",
philwo17506af2020-01-28 04:20:39 -0800934 strip_prefix = "zulu12.2.3-ca-jdk12.0.1-linux_x64",
philwof1fdd7a2020-02-17 00:10:46 -0800935 urls = ["https://mirror.bazel.build/openjdk/azul-zulu12.2.3-ca-jdk12.0.1/zulu12.2.3-ca-jdk12.0.1-linux_x64.tar.gz"],
philwo17506af2020-01-28 04:20:39 -0800936)
937
938# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
939http_archive(
940 name = "openjdk12_darwin_archive",
941 build_file_content = """
942java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
943exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
944""",
philwof1fdd7a2020-02-17 00:10:46 -0800945 sha256 = "67ca9d285056132ebb19fa237a14affda52132142e1171fe1c20e18974b3b8a5",
philwo17506af2020-01-28 04:20:39 -0800946 strip_prefix = "zulu12.2.3-ca-jdk12.0.1-macosx_x64",
philwof1fdd7a2020-02-17 00:10:46 -0800947 urls = ["https://mirror.bazel.build/openjdk/azul-zulu12.2.3-ca-jdk12.0.1/zulu12.2.3-ca-jdk12.0.1-macosx_x64.tar.gz"],
philwo17506af2020-01-28 04:20:39 -0800948)
949
950# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
951http_archive(
952 name = "openjdk12_windows_archive",
953 build_file_content = """
954java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
955exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
956""",
philwof1fdd7a2020-02-17 00:10:46 -0800957 sha256 = "cf28404c23c3aa1115363ba6e796c30580a768e1d7d6681a7d053e516008e00d",
philwo17506af2020-01-28 04:20:39 -0800958 strip_prefix = "zulu12.2.3-ca-jdk12.0.1-win_x64",
philwof1fdd7a2020-02-17 00:10:46 -0800959 urls = ["https://mirror.bazel.build/openjdk/azul-zulu12.2.3-ca-jdk12.0.1/zulu12.2.3-ca-jdk12.0.1-win_x64.zip"],
philwo17506af2020-01-28 04:20:39 -0800960)
961
wyv8062ca42020-05-25 00:21:00 -0700962load("@io_bazel_skydoc//:setup.bzl", "stardoc_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700963
wyv8062ca42020-05-25 00:21:00 -0700964stardoc_repositories()
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700965
966load("@io_bazel_rules_sass//:package.bzl", "rules_sass_dependencies")
iirinaf5c334262019-03-19 02:44:59 -0700967
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700968rules_sass_dependencies()
969
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800970load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700971
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700972node_repositories()
973
974load("@io_bazel_rules_sass//:defs.bzl", "sass_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700975
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700976sass_repositories()
Jakob Buchgraber593c5302019-04-16 10:12:20 -0700977
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700978register_execution_platforms("//:default_host_platform") # buildozer: disable=positional-args
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700979
980# Tools for building deb, rpm and tar files.
981http_archive(
982 name = "rules_pkg",
philwo17506af2020-01-28 04:20:39 -0800983 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
984 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwob14e4062020-01-27 03:02:32 -0800985 sha256 = "4ba8f4ab0ff85f2484287ab06c0d871dcb31cc54d439457d28fd4ae14b18450a",
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700986 urls = [
philwob14e4062020-01-27 03:02:32 -0800987 "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.2.4/rules_pkg-0.2.4.tar.gz",
988 "https://github.com/bazelbuild/rules_pkg/releases/download/0.2.4/rules_pkg-0.2.4.tar.gz",
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700989 ],
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700990)
iirinad26a3c12019-07-19 04:39:33 -0700991
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700992load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
iirinad26a3c12019-07-19 04:39:33 -0700993
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700994rules_pkg_dependencies()
Laszlo Csomor3e023182019-08-01 05:05:09 -0700995
996# Toolchains for Resource Compilation (.rc files on Windows).
997load("//src/main/res:winsdk_configure.bzl", "winsdk_configure")
998
999winsdk_configure(name = "local_config_winsdk")
1000
1001load("@local_config_winsdk//:toolchains.bzl", "register_local_rc_exe_toolchains")
1002
1003register_local_rc_exe_toolchains()
1004
1005register_toolchains("//src/main/res:empty_rc_toolchain")
Yun Peng01609b82020-05-04 11:12:33 -07001006
Yun Penge2f11d72020-06-03 09:16:35 -07001007http_archive(
1008 name = "com_github_grpc_grpc",
1009 urls = [
1010 "https://mirror.bazel.build/github.com/grpc/grpc/archive/v1.26.0.tar.gz",
1011 "https://github.com/grpc/grpc/archive/v1.26.0.tar.gz",
1012 ],
1013 sha256 = "2fcb7f1ab160d6fd3aaade64520be3e5446fc4c6fa7ba6581afdc4e26094bd81",
1014 patches = ["//third_party/grpc:grpc_1.26.0.patch"],
1015 patch_args = ["-p1"],
1016 strip_prefix = "grpc-1.26.0",
1017)
1018
1019# Projects using gRPC as an external dependency must call both grpc_deps() and
1020# grpc_extra_deps().
1021load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
1022grpc_deps()
1023
1024load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
1025grpc_extra_deps()
1026
Yun Peng01609b82020-05-04 11:12:33 -07001027load("//tools/distributions/debian:deps.bzl", "debian_deps")
1028debian_deps()