Kristina Chodorow | 93fbc3e | 2016-04-27 17:03:28 +0000 | [diff] [blame] | 1 | workspace(name = "io_bazel") |
| 2 | |
David Chen | b78bbd5 | 2016-03-16 13:17:57 +0000 | [diff] [blame] | 3 | # 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. |
| 6 | bind( |
| 7 | name = "python_headers", |
| 8 | actual = "//:dummy", |
| 9 | ) |
| 10 | |
Alpha Lam | a1a79cb | 2016-05-15 19:13:52 +0000 | [diff] [blame] | 11 | # Protobuf code generation for GRPC requires three external labels: |
| 12 | # //external:grpc-java_plugin |
| 13 | # //external:grpc-jar |
| 14 | # //external:guava |
| 15 | bind( |
| 16 | name = "grpc-java-plugin", |
| 17 | actual = "//third_party/grpc:grpc-java-plugin", |
| 18 | ) |
| 19 | |
| 20 | bind( |
| 21 | name = "grpc-jar", |
| 22 | actual = "//third_party/grpc:grpc-jar", |
| 23 | ) |
| 24 | |
| 25 | bind( |
| 26 | name = "guava", |
| 27 | actual = "//third_party:guava", |
| 28 | ) |
| 29 | |
Jakob Buchgraber | 6e12e65 | 2017-05-02 11:53:15 +0200 | [diff] [blame] | 30 | # Used by //third_party/protobuf:protobuf_python |
| 31 | bind( |
| 32 | name = "six", |
| 33 | actual = "//third_party/py/six", |
| 34 | ) |
| 35 | |
dmarting | 0010cc9 | 2017-06-27 14:57:21 +0200 | [diff] [blame] | 36 | # For src/test/docker/... |
| 37 | load("//src/test/docker:docker_repository.bzl", "docker_repository") |
Damien Martin-Guillerez | 9b88920 | 2016-03-03 00:35:13 +0000 | [diff] [blame] | 38 | docker_repository() |
dmarting | 71a20e3 | 2017-07-21 14:30:02 +0200 | [diff] [blame] | 39 | load("//src/test/docker:flavours.bzl", "pull_images_for_docker_tests") |
| 40 | pull_images_for_docker_tests() |
Damien Martin-Guillerez | 9b88920 | 2016-03-03 00:35:13 +0000 | [diff] [blame] | 41 | |
Adam Michael | 9b7330f | 2017-03-23 18:40:51 +0000 | [diff] [blame] | 42 | # To run the Android integration tests in //src/test/shell/bazel/android:all or |
| 43 | # build the Android sample app in //examples/android/java/bazel:hello_world |
| 44 | # |
| 45 | # 1. Install an Android SDK and NDK from https://developer.android.com |
| 46 | # 2. Set the $ANDROID_HOME and $ANDROID_NDK_HOME environment variables |
| 47 | # 3. Uncomment the two lines below |
| 48 | # |
| 49 | # android_sdk_repository(name = "androidsdk") |
| 50 | # android_ndk_repository(name = "androidndk") |
Cal Peyser | 2152bc1 | 2016-04-22 17:08:59 +0000 | [diff] [blame] | 51 | |
Adam Michael | 8a136d8 | 2016-11-16 23:04:46 +0000 | [diff] [blame] | 52 | # In order to run //src/test/shell/bazel:maven_skylark_test, follow the |
| 53 | # instructions above for the Android integration tests and uncomment the |
| 54 | # following lines: |
| 55 | # load("//tools/build_defs/repo:maven_rules.bzl", "maven_dependency_plugin") |
| 56 | # maven_dependency_plugin() |
| 57 | |
Cal Peyser | 2152bc1 | 2016-04-22 17:08:59 +0000 | [diff] [blame] | 58 | # This allows rules written in skylark to locate apple build tools. |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 59 | bind( |
| 60 | name = "xcrunwrapper", |
| 61 | actual = "@bazel_tools//tools/objc:xcrunwrapper", |
| 62 | ) |
Carmi Grushko | bfaff29 | 2016-08-17 18:37:55 +0000 | [diff] [blame] | 63 | |
Jakob Buchgraber | 8ff0d0d | 2017-04-14 21:16:19 +0200 | [diff] [blame] | 64 | new_local_repository( |
Carmi Grushko | 0fd73d6 | 2017-02-17 06:49:40 +0000 | [diff] [blame] | 65 | name = "com_google_protobuf", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 66 | build_file = "./third_party/protobuf/3.2.0/BUILD", |
Jakob Buchgraber | 6e12e65 | 2017-05-02 11:53:15 +0200 | [diff] [blame] | 67 | path = "./third_party/protobuf/3.2.0/", |
Carmi Grushko | 0fd73d6 | 2017-02-17 06:49:40 +0000 | [diff] [blame] | 68 | ) |
| 69 | |
| 70 | new_local_repository( |
Carmi Grushko | f1aa34c | 2016-11-29 01:04:35 +0000 | [diff] [blame] | 71 | name = "com_google_protobuf_java", |
Jakob Buchgraber | 6e12e65 | 2017-05-02 11:53:15 +0200 | [diff] [blame] | 72 | build_file = "./third_party/protobuf/3.2.0/com_google_protobuf_java.BUILD", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 73 | path = "./third_party/protobuf/3.2.0/", |
Carmi Grushko | f1aa34c | 2016-11-29 01:04:35 +0000 | [diff] [blame] | 74 | ) |
Philipp Wollermann | 9504827 | 2017-03-17 15:11:58 +0000 | [diff] [blame] | 75 | |
Jakob Buchgraber | 166f28c | 2017-05-30 16:41:18 +0200 | [diff] [blame] | 76 | new_local_repository( |
| 77 | name = "googleapis", |
| 78 | path = "./third_party/googleapis/", |
| 79 | build_file = "./third_party/googleapis/BUILD", |
| 80 | ) |
| 81 | |
Philipp Wollermann | 9504827 | 2017-03-17 15:11:58 +0000 | [diff] [blame] | 82 | # OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK. |
| 83 | http_file( |
| 84 | name = "openjdk_linux", |
Philipp Wollermann | 1e54a59 | 2017-05-17 15:51:03 +0200 | [diff] [blame] | 85 | sha256 = "17218c6bdd608b5714ffba9d5e28522bb2efc309266ba46232b8b918e6e62133", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 86 | urls = [ |
Philipp Wollermann | 1e54a59 | 2017-05-17 15:51:03 +0200 | [diff] [blame] | 87 | "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", |
| 88 | "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", |
| 89 | "https://cdn.azul.com/zulu/bin/zulu8.21.0.1-jdk8.0.131-linux_x64.tar.gz", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 90 | ], |
Philipp Wollermann | 9504827 | 2017-03-17 15:11:58 +0000 | [diff] [blame] | 91 | ) |
| 92 | |
| 93 | http_file( |
| 94 | name = "openjdk_macos", |
Philipp Wollermann | 1e54a59 | 2017-05-17 15:51:03 +0200 | [diff] [blame] | 95 | sha256 = "87575cbe5dc98ae4326c3c786dbe53515030f832451af910c11ce1b67e5b0977", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 96 | urls = [ |
Philipp Wollermann | 1e54a59 | 2017-05-17 15:51:03 +0200 | [diff] [blame] | 97 | "https://mirror.bazel.build/openjdk/azul-zulu-8.21.0.1-jdk8.0.131/zulu8.21.0.1-jdk8.0.131-macosx_x64.zip", |
| 98 | "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", |
| 99 | "https://cdn.azul.com/zulu/bin/zulu8.21.0.1-jdk8.0.131-macosx_x64.zip", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 100 | ], |
Philipp Wollermann | 9504827 | 2017-03-17 15:11:58 +0000 | [diff] [blame] | 101 | ) |
| 102 | |
| 103 | http_file( |
| 104 | name = "openjdk_win", |
Philipp Wollermann | 1e54a59 | 2017-05-17 15:51:03 +0200 | [diff] [blame] | 105 | sha256 = "474120caa9748e3512e2cd38d304a63d70cbf747ca2f8aa915f0a880ed807eb4", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 106 | urls = [ |
Philipp Wollermann | 1e54a59 | 2017-05-17 15:51:03 +0200 | [diff] [blame] | 107 | "https://mirror.bazel.build/openjdk/azul-zulu-8.21.0.1-jdk8.0.131/zulu8.21.0.1-jdk8.0.131-win_x64.zip", |
| 108 | "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", |
| 109 | "https://cdn.azul.com/zulu/bin/zulu8.21.0.1-jdk8.0.131-win_x64.zip", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 110 | ], |
Philipp Wollermann | 9504827 | 2017-03-17 15:11:58 +0000 | [diff] [blame] | 111 | ) |
Googler | 5f36bf8 | 2017-07-12 20:43:08 +0200 | [diff] [blame] | 112 | |
| 113 | http_archive( |
| 114 | name = "bazel_toolchains", |
xingao | ae1e81e | 2017-07-13 21:58:01 +0200 | [diff] [blame] | 115 | urls = [ |
| 116 | "http://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/bccee4855c049d34bac481083b4c68e2fab8cc50.tar.gz", |
| 117 | "https://github.com/bazelbuild/bazel-toolchains/archive/bccee4855c049d34bac481083b4c68e2fab8cc50.tar.gz", |
| 118 | ], |
Googler | 5f36bf8 | 2017-07-12 20:43:08 +0200 | [diff] [blame] | 119 | strip_prefix = "bazel-toolchains-bccee4855c049d34bac481083b4c68e2fab8cc50", |
| 120 | sha256 = "3903fd93b96b42067e00b7973a2c16c34e761ad7a0b55e1557d408f352849e41", |
| 121 | ) |
ccalvarin | 1cbe62a | 2017-08-14 21:09:07 +0200 | [diff] [blame] | 122 | |
| 123 | http_archive( |
| 124 | name = "com_googlesource_code_re2", |
| 125 | urls = [ |
| 126 | "https://github.com/google/re2/archive/2017-08-01.tar.gz", |
| 127 | ], |
| 128 | strip_prefix = "re2-2017-08-01", |
| 129 | sha256 = "938723dc197125392698c5fcf41acb74877866ff140b81fd50b7314bf26f1636", |
| 130 | ) |