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 | |
Googler | 5b90b16 | 2017-08-31 16:29:34 +0200 | [diff] [blame] | 36 | http_archive( |
| 37 | name = "bazel_j2objc", |
| 38 | url = "https://github.com/google/j2objc/releases/download/2.0.3/j2objc-2.0.3.zip", |
| 39 | sha256 = "529ee99e6f0e3f88edef61aeae4f13dc6e5eb8183993ced191338422b0e1fbeb", |
| 40 | strip_prefix = "j2objc-2.0.3", |
| 41 | ) |
| 42 | |
Damien Martin-Guillerez | 0baff0f | 2017-08-22 17:40:37 +0200 | [diff] [blame] | 43 | # For src/test/shell/bazel:test_srcs |
| 44 | load("//src/test/shell/bazel:list_source_repository.bzl", "list_source_repository") |
| 45 | list_source_repository(name = "local_bazel_source_list") |
| 46 | |
Adam Michael | 9b7330f | 2017-03-23 18:40:51 +0000 | [diff] [blame] | 47 | # To run the Android integration tests in //src/test/shell/bazel/android:all or |
| 48 | # build the Android sample app in //examples/android/java/bazel:hello_world |
| 49 | # |
| 50 | # 1. Install an Android SDK and NDK from https://developer.android.com |
| 51 | # 2. Set the $ANDROID_HOME and $ANDROID_NDK_HOME environment variables |
| 52 | # 3. Uncomment the two lines below |
| 53 | # |
| 54 | # android_sdk_repository(name = "androidsdk") |
| 55 | # android_ndk_repository(name = "androidndk") |
Cal Peyser | 2152bc1 | 2016-04-22 17:08:59 +0000 | [diff] [blame] | 56 | |
Adam Michael | 8a136d8 | 2016-11-16 23:04:46 +0000 | [diff] [blame] | 57 | # In order to run //src/test/shell/bazel:maven_skylark_test, follow the |
| 58 | # instructions above for the Android integration tests and uncomment the |
| 59 | # following lines: |
| 60 | # load("//tools/build_defs/repo:maven_rules.bzl", "maven_dependency_plugin") |
| 61 | # maven_dependency_plugin() |
| 62 | |
Cal Peyser | 2152bc1 | 2016-04-22 17:08:59 +0000 | [diff] [blame] | 63 | # This allows rules written in skylark to locate apple build tools. |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 64 | bind( |
| 65 | name = "xcrunwrapper", |
| 66 | actual = "@bazel_tools//tools/objc:xcrunwrapper", |
| 67 | ) |
Carmi Grushko | bfaff29 | 2016-08-17 18:37:55 +0000 | [diff] [blame] | 68 | |
Jakob Buchgraber | 8ff0d0d | 2017-04-14 21:16:19 +0200 | [diff] [blame] | 69 | new_local_repository( |
Carmi Grushko | 0fd73d6 | 2017-02-17 06:49:40 +0000 | [diff] [blame] | 70 | name = "com_google_protobuf", |
Vladimir Moskva | 285791a | 2017-09-01 15:03:05 +0200 | [diff] [blame] | 71 | build_file = "./third_party/protobuf/3.4.0/BUILD", |
| 72 | path = "./third_party/protobuf/3.4.0/", |
Carmi Grushko | 0fd73d6 | 2017-02-17 06:49:40 +0000 | [diff] [blame] | 73 | ) |
| 74 | |
| 75 | new_local_repository( |
kmb | f6b8d5e | 2017-10-12 01:21:26 +0200 | [diff] [blame] | 76 | name = "com_google_protobuf_cc", |
| 77 | build_file = "./third_party/protobuf/3.4.0/BUILD", |
| 78 | path = "./third_party/protobuf/3.4.0/", |
| 79 | ) |
| 80 | |
| 81 | new_local_repository( |
Carmi Grushko | f1aa34c | 2016-11-29 01:04:35 +0000 | [diff] [blame] | 82 | name = "com_google_protobuf_java", |
Vladimir Moskva | 285791a | 2017-09-01 15:03:05 +0200 | [diff] [blame] | 83 | build_file = "./third_party/protobuf/3.4.0/com_google_protobuf_java.BUILD", |
| 84 | path = "./third_party/protobuf/3.4.0/", |
Carmi Grushko | f1aa34c | 2016-11-29 01:04:35 +0000 | [diff] [blame] | 85 | ) |
Philipp Wollermann | 9504827 | 2017-03-17 15:11:58 +0000 | [diff] [blame] | 86 | |
Jakob Buchgraber | 166f28c | 2017-05-30 16:41:18 +0200 | [diff] [blame] | 87 | new_local_repository( |
| 88 | name = "googleapis", |
| 89 | path = "./third_party/googleapis/", |
| 90 | build_file = "./third_party/googleapis/BUILD", |
| 91 | ) |
| 92 | |
Philipp Wollermann | 9504827 | 2017-03-17 15:11:58 +0000 | [diff] [blame] | 93 | # OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK. |
| 94 | http_file( |
| 95 | name = "openjdk_linux", |
Philipp Wollermann | 3e75122 | 2017-09-01 13:29:47 +0200 | [diff] [blame] | 96 | sha256 = "7e6284739c0e5b7142bc7a9adc61ced70dc5bb26b130b582b18e809013bcb251", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 97 | urls = [ |
Philipp Wollermann | 3e75122 | 2017-09-01 13:29:47 +0200 | [diff] [blame] | 98 | "https://mirror.bazel.build/openjdk/azul-zulu-8.23.0.3-jdk8.0.144/zulu8.23.0.3-jdk8.0.144-linux_x64.tar.gz", |
| 99 | "https://bazel-mirror.storage.googleapis.com/openjdk/azul-zulu-8.23.0.3-jdk8.0.144/zulu8.23.0.3-jdk8.0.144-linux_x64.tar.gz", |
| 100 | "https://cdn.azul.com/zulu/bin/zulu8.23.0.3-jdk8.0.144-linux_x64.tar.gz", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 101 | ], |
Philipp Wollermann | 9504827 | 2017-03-17 15:11:58 +0000 | [diff] [blame] | 102 | ) |
| 103 | |
| 104 | http_file( |
| 105 | name = "openjdk_macos", |
Philipp Wollermann | 3e75122 | 2017-09-01 13:29:47 +0200 | [diff] [blame] | 106 | sha256 = "ff533364c9cbd3b271ab5328efe28e2dd6d7bae5b630098a5683f742ecf0709d", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 107 | urls = [ |
Philipp Wollermann | 3e75122 | 2017-09-01 13:29:47 +0200 | [diff] [blame] | 108 | "https://mirror.bazel.build/openjdk/azul-zulu-8.23.0.3-jdk8.0.144/zulu8.23.0.3-jdk8.0.144-macosx_x64.zip", |
| 109 | "https://bazel-mirror.storage.googleapis.com/openjdk/azul-zulu-8.23.0.3-jdk8.0.144/zulu8.23.0.3-jdk8.0.144-macosx_x64.zip", |
| 110 | "https://cdn.azul.com/zulu/bin/zulu8.23.0.3-jdk8.0.144-macosx_x64.zip", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 111 | ], |
Philipp Wollermann | 9504827 | 2017-03-17 15:11:58 +0000 | [diff] [blame] | 112 | ) |
| 113 | |
| 114 | http_file( |
| 115 | name = "openjdk_win", |
Philipp Wollermann | 3e75122 | 2017-09-01 13:29:47 +0200 | [diff] [blame] | 116 | sha256 = "f1d9d3341ef7c8c9baff3597953e99a6a7c64f8608ee62c03fdd7574b7655c02", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 117 | urls = [ |
Philipp Wollermann | 3e75122 | 2017-09-01 13:29:47 +0200 | [diff] [blame] | 118 | "https://mirror.bazel.build/openjdk/azul-zulu-8.23.0.3-jdk8.0.144/zulu8.23.0.3-jdk8.0.144-win_x64.zip", |
| 119 | "https://bazel-mirror.storage.googleapis.com/openjdk/azul-zulu-8.23.0.3-jdk8.0.144/zulu8.23.0.3-jdk8.0.144-win_x64.zip", |
| 120 | "https://cdn.azul.com/zulu/bin/zulu8.23.0.3-jdk8.0.144-win_x64.zip", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 121 | ], |
Philipp Wollermann | 9504827 | 2017-03-17 15:11:58 +0000 | [diff] [blame] | 122 | ) |
Googler | 5f36bf8 | 2017-07-12 20:43:08 +0200 | [diff] [blame] | 123 | |
| 124 | http_archive( |
| 125 | name = "bazel_toolchains", |
xingao | ae1e81e | 2017-07-13 21:58:01 +0200 | [diff] [blame] | 126 | urls = [ |
xingao | bea6712 | 2018-01-16 08:29:59 -0800 | [diff] [blame] | 127 | "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/f3b09700fae5d7b6e659d7cefe0dcc6e8498504c.tar.gz", |
| 128 | "https://github.com/bazelbuild/bazel-toolchains/archive/f3b09700fae5d7b6e659d7cefe0dcc6e8498504c.tar.gz", |
xingao | ae1e81e | 2017-07-13 21:58:01 +0200 | [diff] [blame] | 129 | ], |
xingao | bea6712 | 2018-01-16 08:29:59 -0800 | [diff] [blame] | 130 | strip_prefix = "bazel-toolchains-f3b09700fae5d7b6e659d7cefe0dcc6e8498504c", |
| 131 | sha256 = "ed829b5eea8af1f405f4cc3d6ecfc3b1365bb7843171036030a31b5127002311", |
Googler | 5f36bf8 | 2017-07-12 20:43:08 +0200 | [diff] [blame] | 132 | ) |
ccalvarin | 1cbe62a | 2017-08-14 21:09:07 +0200 | [diff] [blame] | 133 | |
| 134 | http_archive( |
| 135 | name = "com_googlesource_code_re2", |
| 136 | urls = [ |
laurentlb | 2cf560f | 2017-12-06 05:57:09 -0800 | [diff] [blame] | 137 | "https://github.com/google/re2/archive/2017-12-01.tar.gz", |
ccalvarin | 1cbe62a | 2017-08-14 21:09:07 +0200 | [diff] [blame] | 138 | ], |
laurentlb | 2cf560f | 2017-12-06 05:57:09 -0800 | [diff] [blame] | 139 | strip_prefix = "re2-2017-12-01", |
| 140 | sha256 = "62797e7cd7cc959419710cd25b075b5f5b247da0e8214d47bf5af9b32128fb0d", |
ccalvarin | 1cbe62a | 2017-08-14 21:09:07 +0200 | [diff] [blame] | 141 | ) |
Xin Gao | c439ae1 | 2017-11-07 19:05:31 +0100 | [diff] [blame] | 142 | |
| 143 | # For src/test/shell/bazel:bazel_sandboxing_test |
| 144 | http_file( |
| 145 | name = 'mount_path_toolchain', |
| 146 | url = 'https://asci-toolchain.appspot.com.storage.googleapis.com/toolchain-testing/mount_path_toolchain.tar.gz', |
| 147 | ) |