blob: cf6dd6c1a2bccb7cced6ca1542eae3fd080f50fd [file] [log] [blame]
Kristina Chodorow93fbc3e2016-04-27 17:03:28 +00001workspace(name = "io_bazel")
2
David Chenb78bbd52016-03-16 13:17:57 +00003# Protobuf expects an //external:python_headers label which would contain the
4# Python headers if fast Python protos is enabled. Since we are not using fast
5# Python protos, bind python_headers to a dummy target.
6bind(
7 name = "python_headers",
8 actual = "//:dummy",
9)
10
Alpha Lama1a79cb2016-05-15 19:13:52 +000011# Protobuf code generation for GRPC requires three external labels:
12# //external:grpc-java_plugin
13# //external:grpc-jar
14# //external:guava
15bind(
16 name = "grpc-java-plugin",
17 actual = "//third_party/grpc:grpc-java-plugin",
18)
19
20bind(
21 name = "grpc-jar",
22 actual = "//third_party/grpc:grpc-jar",
23)
24
25bind(
26 name = "guava",
27 actual = "//third_party:guava",
28)
29
Jakob Buchgraber6e12e652017-05-02 11:53:15 +020030# Used by //third_party/protobuf:protobuf_python
31bind(
32 name = "six",
33 actual = "//third_party/py/six",
34)
35
Googler5b90b162017-08-31 16:29:34 +020036http_archive(
37 name = "bazel_j2objc",
38 url = "https://github.com/google/j2objc/releases/download/2.0.3/j2objc-2.0.3.zip",
Laszlo Csomor0f3f7882018-03-13 06:56:12 -070039 # Computed using "shasum -a 256 j2objc-2.0.3.zip"
40 sha256 = "a36bac432d0dbd8c98249e484b2b69dd5720afa4abb58711a3c3def1c0bfa21d",
Googler5b90b162017-08-31 16:29:34 +020041 strip_prefix = "j2objc-2.0.3",
42)
43
Damien Martin-Guillerez0baff0f2017-08-22 17:40:37 +020044# For src/test/shell/bazel:test_srcs
45load("//src/test/shell/bazel:list_source_repository.bzl", "list_source_repository")
46list_source_repository(name = "local_bazel_source_list")
47
Adam Michael9b7330f2017-03-23 18:40:51 +000048# To run the Android integration tests in //src/test/shell/bazel/android:all or
49# build the Android sample app in //examples/android/java/bazel:hello_world
50#
51# 1. Install an Android SDK and NDK from https://developer.android.com
52# 2. Set the $ANDROID_HOME and $ANDROID_NDK_HOME environment variables
53# 3. Uncomment the two lines below
54#
55# android_sdk_repository(name = "androidsdk")
56# android_ndk_repository(name = "androidndk")
Cal Peyser2152bc12016-04-22 17:08:59 +000057
Adam Michael8a136d82016-11-16 23:04:46 +000058# In order to run //src/test/shell/bazel:maven_skylark_test, follow the
59# instructions above for the Android integration tests and uncomment the
60# following lines:
61# load("//tools/build_defs/repo:maven_rules.bzl", "maven_dependency_plugin")
62# maven_dependency_plugin()
63
Cal Peyser2152bc12016-04-22 17:08:59 +000064# This allows rules written in skylark to locate apple build tools.
philwo915fa8f2017-05-09 12:17:12 -040065bind(
66 name = "xcrunwrapper",
67 actual = "@bazel_tools//tools/objc:xcrunwrapper",
68)
Carmi Grushkobfaff292016-08-17 18:37:55 +000069
Jakob Buchgraber8ff0d0d2017-04-14 21:16:19 +020070new_local_repository(
Carmi Grushko0fd73d62017-02-17 06:49:40 +000071 name = "com_google_protobuf",
hlopkoead10022018-09-05 05:37:23 -070072 build_file = "./third_party/protobuf/3.6.1/BUILD",
73 path = "./third_party/protobuf/3.6.1/",
Carmi Grushko0fd73d62017-02-17 06:49:40 +000074)
75
76new_local_repository(
kmbf6b8d5e2017-10-12 01:21:26 +020077 name = "com_google_protobuf_cc",
hlopkoead10022018-09-05 05:37:23 -070078 build_file = "./third_party/protobuf/3.6.1/BUILD",
79 path = "./third_party/protobuf/3.6.1/",
kmbf6b8d5e2017-10-12 01:21:26 +020080)
81
82new_local_repository(
Carmi Grushkof1aa34c2016-11-29 01:04:35 +000083 name = "com_google_protobuf_java",
hlopkoead10022018-09-05 05:37:23 -070084 build_file = "./third_party/protobuf/3.6.1/com_google_protobuf_java.BUILD",
85 path = "./third_party/protobuf/3.6.1/",
Carmi Grushkof1aa34c2016-11-29 01:04:35 +000086)
Philipp Wollermann95048272017-03-17 15:11:58 +000087
Jakob Buchgraber166f28c2017-05-30 16:41:18 +020088new_local_repository(
89 name = "googleapis",
90 path = "./third_party/googleapis/",
91 build_file = "./third_party/googleapis/BUILD",
92)
93
Ola Rozenfeld930119a2018-08-10 11:04:44 -070094new_local_repository(
95 name = "remoteapis",
96 path = "./third_party/remoteapis/",
97 build_file = "./third_party/remoteapis/BUILD.bazel",
98)
99
kmbbfd89d62018-04-11 14:26:56 -0700100http_archive(
101 name = "desugar_jdk_libs",
kmbb6da3b12018-07-03 12:36:21 -0700102 url = "https://github.com/google/desugar_jdk_libs/archive/fd937f4180c1b557805219af4482f1a27eb0ff2b.zip",
kmbbfd89d62018-04-11 14:26:56 -0700103 # Computed using "shasum -a 256 <zip>"
kmbb6da3b12018-07-03 12:36:21 -0700104 sha256 = "43b8fcc56a180e178d498f375fbeb95e8b65b9bf6c2da91ae3ae0332521a1a12",
105 strip_prefix = "desugar_jdk_libs-fd937f4180c1b557805219af4482f1a27eb0ff2b",
kmbbfd89d62018-04-11 14:26:56 -0700106)
107
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700108load("//:distdir.bzl", "distdir_tar")
109distdir_tar(
110 name = "additional_distfiles",
111 dirname = "derived/distdir",
cparsons871cd6f2018-08-16 09:10:38 -0700112 archives = [
113 "fd937f4180c1b557805219af4482f1a27eb0ff2b.zip",
114 "7490380c6bbf9a5a060df78dc2222e7de6ffae5c.tar.gz"
115 ],
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700116 urls = {
kmbb6da3b12018-07-03 12:36:21 -0700117 "fd937f4180c1b557805219af4482f1a27eb0ff2b.zip" :
118 ["https://github.com/google/desugar_jdk_libs/archive/fd937f4180c1b557805219af4482f1a27eb0ff2b.zip"],
cparsons871cd6f2018-08-16 09:10:38 -0700119 "7490380c6bbf9a5a060df78dc2222e7de6ffae5c.tar.gz" :
120 ["https://github.com/bazelbuild/bazel-skylib/archive/7490380c6bbf9a5a060df78dc2222e7de6ffae5c.tar.gz"],
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700121 },
122 sha256 = {
kmbb6da3b12018-07-03 12:36:21 -0700123 "fd937f4180c1b557805219af4482f1a27eb0ff2b.zip" :
124 "43b8fcc56a180e178d498f375fbeb95e8b65b9bf6c2da91ae3ae0332521a1a12",
cparsons871cd6f2018-08-16 09:10:38 -0700125 "7490380c6bbf9a5a060df78dc2222e7de6ffae5c.tar.gz" :
126 "3528fc6012a78da6291c00854373ea43f7f8b6c4046320be5f0884f5b3385b14"
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700127 },
128)
129
Philipp Wollermann95048272017-03-17 15:11:58 +0000130# OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK.
131http_file(
132 name = "openjdk_linux",
buchgr4c9149d2018-07-24 11:50:48 -0700133 sha256 = "57fad3602e74c79587901d6966d3b54ef32cb811829a2552163185d5064fe9b5",
philwo915fa8f2017-05-09 12:17:12 -0400134 urls = [
buchgr4c9149d2018-07-24 11:50:48 -0700135 "https://mirror.bazel.build/openjdk/azul-zulu10.2%2B3-jdk10.0.1/zulu10.2%2B3-jdk10.0.1-linux_x64-allmodules.tar.gz",
philwo915fa8f2017-05-09 12:17:12 -0400136 ],
Philipp Wollermann95048272017-03-17 15:11:58 +0000137)
138
139http_file(
140 name = "openjdk_macos",
buchgr4c9149d2018-07-24 11:50:48 -0700141 sha256 = "e669c9a897413d855b550b4e39d79614392e6fb96f494e8ef99a34297d9d85d3",
philwo915fa8f2017-05-09 12:17:12 -0400142 urls = [
buchgr4c9149d2018-07-24 11:50:48 -0700143 "https://mirror.bazel.build/openjdk/azul-zulu10.2%2B3-jdk10.0.1/zulu10.2%2B3-jdk10.0.1-macosx_x64-allmodules.tar.gz",
philwo915fa8f2017-05-09 12:17:12 -0400144 ],
Philipp Wollermann95048272017-03-17 15:11:58 +0000145)
146
147http_file(
148 name = "openjdk_win",
buchgr4c9149d2018-07-24 11:50:48 -0700149 sha256 = "c39e7700a8d41794d60985df5a20352435196e78ecbc6a2b30df7be8637bffd5",
philwo915fa8f2017-05-09 12:17:12 -0400150 urls = [
buchgr4c9149d2018-07-24 11:50:48 -0700151 "https://mirror.bazel.build/openjdk/azul-zulu10.2%2B3-jdk10.0.1/zulu10.2%2B3-jdk10.0.1-win_x64-allmodules.zip",
philwo915fa8f2017-05-09 12:17:12 -0400152 ],
Philipp Wollermann95048272017-03-17 15:11:58 +0000153)
Googler5f36bf82017-07-12 20:43:08 +0200154
Arielle Albonfa7e49f2018-07-31 00:57:54 -0700155# The source-code for this OpenJDK can be found at:
Arielle Albon281231d2018-08-23 00:36:42 -0700156# https://openjdk.linaro.org/releases/jdk10-src-1804.tar.xz
Arielle Albonfa7e49f2018-07-31 00:57:54 -0700157http_file(
158 name = "openjdk_linux_aarch64",
Arielle Albon281231d2018-08-23 00:36:42 -0700159 sha256 = "b7098b7aaf6ee1ffd4a2d0371a0be26c5a5c87f6aebbe46fe9a92c90583a84be",
Arielle Albonfa7e49f2018-07-31 00:57:54 -0700160 urls = [
161 # When you update this, also update the link to the source-code above.
Arielle Albon281231d2018-08-23 00:36:42 -0700162 "http://openjdk.linaro.org/releases/jdk10-server-release-1804.tar.xz",
Arielle Albonfa7e49f2018-07-31 00:57:54 -0700163 ],
164)
165
Googler5f36bf82017-07-12 20:43:08 +0200166http_archive(
philwob495eaf2018-08-28 04:00:46 -0700167 name = "bazel_toolchains",
168 urls = [
169 "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/cdea5b8675914d0a354d89f108de5d28e54e0edc.tar.gz",
170 "https://github.com/bazelbuild/bazel-toolchains/archive/cdea5b8675914d0a354d89f108de5d28e54e0edc.tar.gz",
171 ],
172 strip_prefix = "bazel-toolchains-cdea5b8675914d0a354d89f108de5d28e54e0edc",
173 sha256 = "cefb6ccf86ca592baaa029bcef04148593c0efe8f734542f10293ea58f170715",
Googler5f36bf82017-07-12 20:43:08 +0200174)
ccalvarin1cbe62a2017-08-14 21:09:07 +0200175
ccalvarin73839762018-03-23 15:35:00 -0700176# We're pinning to a commit because this project does not have a recent release.
177# Nothing special about this commit, though.
ccalvarin8e9f4a82018-03-23 08:19:37 -0700178http_archive(
179 name = "com_google_googletest",
180 urls = [
181 "https://github.com/google/googletest/archive/dfa853b63d17c787914b663b50c2095a0c5b706e.tar.gz",
182 ],
183 strip_prefix = "googletest-dfa853b63d17c787914b663b50c2095a0c5b706e",
184 sha256 = "313a16fba8f0be8ee20ba9883e044556044cbd1ae6cea532473d163a843ef991",
185)
186
Xin Gaoc439ae12017-11-07 19:05:31 +0100187# For src/test/shell/bazel:bazel_sandboxing_test
188http_file(
189 name = 'mount_path_toolchain',
190 url = 'https://asci-toolchain.appspot.com.storage.googleapis.com/toolchain-testing/mount_path_toolchain.tar.gz',
Klaus Aehlig6ed275b2018-06-12 05:36:53 -0700191 sha256 = "dd8088d3543a86fd91a9ccde6e40102aff6eaf3d048aa73cc18eff05cc2053d5",
Xin Gaoc439ae12017-11-07 19:05:31 +0100192)
cparsons871cd6f2018-08-16 09:10:38 -0700193
194http_archive(
195 name = "bazel_skylib",
196 urls = [
197 "https://github.com/bazelbuild/bazel-skylib/archive/7490380c6bbf9a5a060df78dc2222e7de6ffae5c.tar.gz",
198 ],
199 sha256 = "3528fc6012a78da6291c00854373ea43f7f8b6c4046320be5f0884f5b3385b14",
200 strip_prefix = "bazel-skylib-7490380c6bbf9a5a060df78dc2222e7de6ffae5c"
201)
cparsonsa5be6612018-08-27 13:21:21 -0700202
203http_archive(
204 name = "skydoc",
205 urls = [
206 "https://github.com/bazelbuild/skydoc/archive/d34c44c3f4102eb94beaf2636c6cf532f0ec1ee8.tar.gz",
207 ],
208 sha256 = "cfbfcc107f5c9853dc5b2b81f1fe90fc326bd1c61f76c9aac2b4201dff75b91d",
209 strip_prefix = "skydoc-d34c44c3f4102eb94beaf2636c6cf532f0ec1ee8"
210)