blob: 20dac815cc4a6617922ef329fb2d5810e612f76b [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
dmarting0010cc92017-06-27 14:57:21 +020036# For src/test/docker/...
37load("//src/test/docker:docker_repository.bzl", "docker_repository")
Damien Martin-Guillerez9b889202016-03-03 00:35:13 +000038docker_repository()
dmarting71a20e32017-07-21 14:30:02 +020039load("//src/test/docker:flavours.bzl", "pull_images_for_docker_tests")
40pull_images_for_docker_tests()
Damien Martin-Guillerez9b889202016-03-03 00:35:13 +000041
Damien Martin-Guillerez0baff0f2017-08-22 17:40:37 +020042# For src/test/shell/bazel:test_srcs
43load("//src/test/shell/bazel:list_source_repository.bzl", "list_source_repository")
44list_source_repository(name = "local_bazel_source_list")
45
Adam Michael9b7330f2017-03-23 18:40:51 +000046# To run the Android integration tests in //src/test/shell/bazel/android:all or
47# build the Android sample app in //examples/android/java/bazel:hello_world
48#
49# 1. Install an Android SDK and NDK from https://developer.android.com
50# 2. Set the $ANDROID_HOME and $ANDROID_NDK_HOME environment variables
51# 3. Uncomment the two lines below
52#
53# android_sdk_repository(name = "androidsdk")
54# android_ndk_repository(name = "androidndk")
Cal Peyser2152bc12016-04-22 17:08:59 +000055
Adam Michael8a136d82016-11-16 23:04:46 +000056# In order to run //src/test/shell/bazel:maven_skylark_test, follow the
57# instructions above for the Android integration tests and uncomment the
58# following lines:
59# load("//tools/build_defs/repo:maven_rules.bzl", "maven_dependency_plugin")
60# maven_dependency_plugin()
61
Cal Peyser2152bc12016-04-22 17:08:59 +000062# This allows rules written in skylark to locate apple build tools.
philwo915fa8f2017-05-09 12:17:12 -040063bind(
64 name = "xcrunwrapper",
65 actual = "@bazel_tools//tools/objc:xcrunwrapper",
66)
Carmi Grushkobfaff292016-08-17 18:37:55 +000067
Jakob Buchgraber8ff0d0d2017-04-14 21:16:19 +020068new_local_repository(
Carmi Grushko0fd73d62017-02-17 06:49:40 +000069 name = "com_google_protobuf",
philwo915fa8f2017-05-09 12:17:12 -040070 build_file = "./third_party/protobuf/3.2.0/BUILD",
Jakob Buchgraber6e12e652017-05-02 11:53:15 +020071 path = "./third_party/protobuf/3.2.0/",
Carmi Grushko0fd73d62017-02-17 06:49:40 +000072)
73
74new_local_repository(
Carmi Grushkof1aa34c2016-11-29 01:04:35 +000075 name = "com_google_protobuf_java",
Jakob Buchgraber6e12e652017-05-02 11:53:15 +020076 build_file = "./third_party/protobuf/3.2.0/com_google_protobuf_java.BUILD",
philwo915fa8f2017-05-09 12:17:12 -040077 path = "./third_party/protobuf/3.2.0/",
Carmi Grushkof1aa34c2016-11-29 01:04:35 +000078)
Philipp Wollermann95048272017-03-17 15:11:58 +000079
Jakob Buchgraber166f28c2017-05-30 16:41:18 +020080new_local_repository(
81 name = "googleapis",
82 path = "./third_party/googleapis/",
83 build_file = "./third_party/googleapis/BUILD",
84)
85
Philipp Wollermann95048272017-03-17 15:11:58 +000086# OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK.
87http_file(
88 name = "openjdk_linux",
Philipp Wollermann1e54a592017-05-17 15:51:03 +020089 sha256 = "17218c6bdd608b5714ffba9d5e28522bb2efc309266ba46232b8b918e6e62133",
philwo915fa8f2017-05-09 12:17:12 -040090 urls = [
Philipp Wollermann1e54a592017-05-17 15:51:03 +020091 "https://mirror.bazel.build/openjdk/azul-zulu-8.21.0.1-jdk8.0.131/zulu8.21.0.1-jdk8.0.131-linux_x64.tar.gz",
92 "https://bazel-mirror.storage.googleapis.com/openjdk/azul-zulu-8.21.0.1-jdk8.0.131/zulu8.21.0.1-jdk8.0.131-linux_x64.tar.gz",
93 "https://cdn.azul.com/zulu/bin/zulu8.21.0.1-jdk8.0.131-linux_x64.tar.gz",
philwo915fa8f2017-05-09 12:17:12 -040094 ],
Philipp Wollermann95048272017-03-17 15:11:58 +000095)
96
97http_file(
98 name = "openjdk_macos",
Philipp Wollermann1e54a592017-05-17 15:51:03 +020099 sha256 = "87575cbe5dc98ae4326c3c786dbe53515030f832451af910c11ce1b67e5b0977",
philwo915fa8f2017-05-09 12:17:12 -0400100 urls = [
Philipp Wollermann1e54a592017-05-17 15:51:03 +0200101 "https://mirror.bazel.build/openjdk/azul-zulu-8.21.0.1-jdk8.0.131/zulu8.21.0.1-jdk8.0.131-macosx_x64.zip",
102 "https://bazel-mirror.storage.googleapis.com/openjdk/azul-zulu-8.21.0.1-jdk8.0.131/zulu8.21.0.1-jdk8.0.131-macosx_x64.zip",
103 "https://cdn.azul.com/zulu/bin/zulu8.21.0.1-jdk8.0.131-macosx_x64.zip",
philwo915fa8f2017-05-09 12:17:12 -0400104 ],
Philipp Wollermann95048272017-03-17 15:11:58 +0000105)
106
107http_file(
108 name = "openjdk_win",
Philipp Wollermann1e54a592017-05-17 15:51:03 +0200109 sha256 = "474120caa9748e3512e2cd38d304a63d70cbf747ca2f8aa915f0a880ed807eb4",
philwo915fa8f2017-05-09 12:17:12 -0400110 urls = [
Philipp Wollermann1e54a592017-05-17 15:51:03 +0200111 "https://mirror.bazel.build/openjdk/azul-zulu-8.21.0.1-jdk8.0.131/zulu8.21.0.1-jdk8.0.131-win_x64.zip",
112 "https://bazel-mirror.storage.googleapis.com/openjdk/azul-zulu-8.21.0.1-jdk8.0.131/zulu8.21.0.1-jdk8.0.131-win_x64.zip",
113 "https://cdn.azul.com/zulu/bin/zulu8.21.0.1-jdk8.0.131-win_x64.zip",
philwo915fa8f2017-05-09 12:17:12 -0400114 ],
Philipp Wollermann95048272017-03-17 15:11:58 +0000115)
Googler5f36bf82017-07-12 20:43:08 +0200116
117http_archive(
118 name = "bazel_toolchains",
xingaoae1e81e2017-07-13 21:58:01 +0200119 urls = [
120 "http://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/bccee4855c049d34bac481083b4c68e2fab8cc50.tar.gz",
121 "https://github.com/bazelbuild/bazel-toolchains/archive/bccee4855c049d34bac481083b4c68e2fab8cc50.tar.gz",
122 ],
Googler5f36bf82017-07-12 20:43:08 +0200123 strip_prefix = "bazel-toolchains-bccee4855c049d34bac481083b4c68e2fab8cc50",
124 sha256 = "3903fd93b96b42067e00b7973a2c16c34e761ad7a0b55e1557d408f352849e41",
125)
ccalvarin1cbe62a2017-08-14 21:09:07 +0200126
127http_archive(
128 name = "com_googlesource_code_re2",
129 urls = [
130 "https://github.com/google/re2/archive/2017-08-01.tar.gz",
131 ],
132 strip_prefix = "re2-2017-08-01",
133 sha256 = "938723dc197125392698c5fcf41acb74877866ff140b81fd50b7314bf26f1636",
134)