blob: 3108c989bef30b350542e02b3f58239c5d1580cc [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",
Vladimir Moskva285791a2017-09-01 15:03:05 +020072 build_file = "./third_party/protobuf/3.4.0/BUILD",
73 path = "./third_party/protobuf/3.4.0/",
Carmi Grushko0fd73d62017-02-17 06:49:40 +000074)
75
76new_local_repository(
kmbf6b8d5e2017-10-12 01:21:26 +020077 name = "com_google_protobuf_cc",
78 build_file = "./third_party/protobuf/3.4.0/BUILD",
79 path = "./third_party/protobuf/3.4.0/",
80)
81
82new_local_repository(
Carmi Grushkof1aa34c2016-11-29 01:04:35 +000083 name = "com_google_protobuf_java",
Vladimir Moskva285791a2017-09-01 15:03:05 +020084 build_file = "./third_party/protobuf/3.4.0/com_google_protobuf_java.BUILD",
85 path = "./third_party/protobuf/3.4.0/",
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
Philipp Wollermann95048272017-03-17 15:11:58 +000094# OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK.
95http_file(
96 name = "openjdk_linux",
Philipp Wollermannb2ba2072018-03-05 06:23:29 -080097 sha256 = "85b81652b3fe8cfb0a2cfb835988672bde7844f613dae5b9487b5b44921a1afd",
philwo915fa8f2017-05-09 12:17:12 -040098 urls = [
Philipp Wollermannb2ba2072018-03-05 06:23:29 -080099 "https://mirror.bazel.build/openjdk/azul-zulu-8.28.0.1-jdk8.0.163/zulu8.28.0.1-jdk8.0.163-linux_x64.tar.gz",
100 "https://bazel-mirror.storage.googleapis.com/openjdk/azul-zulu-8.28.0.1-jdk8.0.163/zulu8.28.0.1-jdk8.0.163-linux_x64.tar.gz",
101 "https://cdn.azul.com/zulu/bin/zulu8.28.0.1-jdk8.0.163-linux_x64.tar.gz",
philwo915fa8f2017-05-09 12:17:12 -0400102 ],
Philipp Wollermann95048272017-03-17 15:11:58 +0000103)
104
105http_file(
106 name = "openjdk_macos",
Philipp Wollermannb2ba2072018-03-05 06:23:29 -0800107 sha256 = "292a44695e708a8822b3d0a462faf32887ddb80b56aa91e7598fd4b6f6341f69",
philwo915fa8f2017-05-09 12:17:12 -0400108 urls = [
Philipp Wollermannb2ba2072018-03-05 06:23:29 -0800109 "https://mirror.bazel.build/openjdk/azul-zulu-8.28.0.1-jdk8.0.163/zulu8.28.0.1-jdk8.0.163-macosx_x64.tar.gz",
110 "https://bazel-mirror.storage.googleapis.com/openjdk/azul-zulu-8.28.0.1-jdk8.0.163/zulu8.28.0.1-jdk8.0.163-macosx_x64.tar.gz",
111 "https://cdn.azul.com/zulu/bin/zulu8.28.0.1-jdk8.0.163-macosx_x64.tar.gz",
philwo915fa8f2017-05-09 12:17:12 -0400112 ],
Philipp Wollermann95048272017-03-17 15:11:58 +0000113)
114
115http_file(
116 name = "openjdk_win",
Philipp Wollermannb2ba2072018-03-05 06:23:29 -0800117 sha256 = "0c5ea3634ae7d7851630cf61fdd6344cce110cf9246593345e49fc430bb39442",
philwo915fa8f2017-05-09 12:17:12 -0400118 urls = [
Philipp Wollermannb2ba2072018-03-05 06:23:29 -0800119 "https://mirror.bazel.build/openjdk/azul-zulu-8.28.0.1-jdk8.0.163/zulu8.28.0.1-jdk8.0.163-win_x64.zip",
120 "https://bazel-mirror.storage.googleapis.com/openjdk/azul-zulu-8.28.0.1-jdk8.0.163/zulu8.28.0.1-jdk8.0.163-win_x64.zip",
121 "https://cdn.azul.com/zulu/bin/zulu8.28.0.1-jdk8.0.163-win_x64.zip",
philwo915fa8f2017-05-09 12:17:12 -0400122 ],
Philipp Wollermann95048272017-03-17 15:11:58 +0000123)
Googler5f36bf82017-07-12 20:43:08 +0200124
125http_archive(
126 name = "bazel_toolchains",
xingaoae1e81e2017-07-13 21:58:01 +0200127 urls = [
xingaobea67122018-01-16 08:29:59 -0800128 "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/f3b09700fae5d7b6e659d7cefe0dcc6e8498504c.tar.gz",
129 "https://github.com/bazelbuild/bazel-toolchains/archive/f3b09700fae5d7b6e659d7cefe0dcc6e8498504c.tar.gz",
xingaoae1e81e2017-07-13 21:58:01 +0200130 ],
xingaobea67122018-01-16 08:29:59 -0800131 strip_prefix = "bazel-toolchains-f3b09700fae5d7b6e659d7cefe0dcc6e8498504c",
132 sha256 = "ed829b5eea8af1f405f4cc3d6ecfc3b1365bb7843171036030a31b5127002311",
Googler5f36bf82017-07-12 20:43:08 +0200133)
ccalvarin1cbe62a2017-08-14 21:09:07 +0200134
135http_archive(
136 name = "com_googlesource_code_re2",
137 urls = [
laurentlb2cf560f2017-12-06 05:57:09 -0800138 "https://github.com/google/re2/archive/2017-12-01.tar.gz",
ccalvarin1cbe62a2017-08-14 21:09:07 +0200139 ],
laurentlb2cf560f2017-12-06 05:57:09 -0800140 strip_prefix = "re2-2017-12-01",
141 sha256 = "62797e7cd7cc959419710cd25b075b5f5b247da0e8214d47bf5af9b32128fb0d",
ccalvarin1cbe62a2017-08-14 21:09:07 +0200142)
Xin Gaoc439ae12017-11-07 19:05:31 +0100143
144# For src/test/shell/bazel:bazel_sandboxing_test
145http_file(
146 name = 'mount_path_toolchain',
147 url = 'https://asci-toolchain.appspot.com.storage.googleapis.com/toolchain-testing/mount_path_toolchain.tar.gz',
148)