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", |
Laszlo Csomor | 0f3f788 | 2018-03-13 06:56:12 -0700 | [diff] [blame] | 39 | # Computed using "shasum -a 256 j2objc-2.0.3.zip" |
| 40 | sha256 = "a36bac432d0dbd8c98249e484b2b69dd5720afa4abb58711a3c3def1c0bfa21d", |
Googler | 5b90b16 | 2017-08-31 16:29:34 +0200 | [diff] [blame] | 41 | strip_prefix = "j2objc-2.0.3", |
| 42 | ) |
| 43 | |
Damien Martin-Guillerez | 0baff0f | 2017-08-22 17:40:37 +0200 | [diff] [blame] | 44 | # For src/test/shell/bazel:test_srcs |
| 45 | load("//src/test/shell/bazel:list_source_repository.bzl", "list_source_repository") |
| 46 | list_source_repository(name = "local_bazel_source_list") |
| 47 | |
Adam Michael | 9b7330f | 2017-03-23 18:40:51 +0000 | [diff] [blame] | 48 | # 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 Peyser | 2152bc1 | 2016-04-22 17:08:59 +0000 | [diff] [blame] | 57 | |
Adam Michael | 8a136d8 | 2016-11-16 23:04:46 +0000 | [diff] [blame] | 58 | # 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 Peyser | 2152bc1 | 2016-04-22 17:08:59 +0000 | [diff] [blame] | 64 | # This allows rules written in skylark to locate apple build tools. |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 65 | bind( |
| 66 | name = "xcrunwrapper", |
| 67 | actual = "@bazel_tools//tools/objc:xcrunwrapper", |
| 68 | ) |
Carmi Grushko | bfaff29 | 2016-08-17 18:37:55 +0000 | [diff] [blame] | 69 | |
Jakob Buchgraber | 8ff0d0d | 2017-04-14 21:16:19 +0200 | [diff] [blame] | 70 | new_local_repository( |
Carmi Grushko | 0fd73d6 | 2017-02-17 06:49:40 +0000 | [diff] [blame] | 71 | name = "com_google_protobuf", |
Vladimir Moskva | 285791a | 2017-09-01 15:03:05 +0200 | [diff] [blame] | 72 | build_file = "./third_party/protobuf/3.4.0/BUILD", |
| 73 | path = "./third_party/protobuf/3.4.0/", |
Carmi Grushko | 0fd73d6 | 2017-02-17 06:49:40 +0000 | [diff] [blame] | 74 | ) |
| 75 | |
| 76 | new_local_repository( |
kmb | f6b8d5e | 2017-10-12 01:21:26 +0200 | [diff] [blame] | 77 | 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 | |
| 82 | new_local_repository( |
Carmi Grushko | f1aa34c | 2016-11-29 01:04:35 +0000 | [diff] [blame] | 83 | name = "com_google_protobuf_java", |
Vladimir Moskva | 285791a | 2017-09-01 15:03:05 +0200 | [diff] [blame] | 84 | build_file = "./third_party/protobuf/3.4.0/com_google_protobuf_java.BUILD", |
| 85 | path = "./third_party/protobuf/3.4.0/", |
Carmi Grushko | f1aa34c | 2016-11-29 01:04:35 +0000 | [diff] [blame] | 86 | ) |
Philipp Wollermann | 9504827 | 2017-03-17 15:11:58 +0000 | [diff] [blame] | 87 | |
Jakob Buchgraber | 166f28c | 2017-05-30 16:41:18 +0200 | [diff] [blame] | 88 | new_local_repository( |
| 89 | name = "googleapis", |
| 90 | path = "./third_party/googleapis/", |
| 91 | build_file = "./third_party/googleapis/BUILD", |
| 92 | ) |
| 93 | |
kmb | bfd89d6 | 2018-04-11 14:26:56 -0700 | [diff] [blame] | 94 | http_archive( |
| 95 | name = "desugar_jdk_libs", |
kmb | 5064676 | 2018-04-17 04:09:08 -0700 | [diff] [blame] | 96 | url = "https://github.com/google/desugar_jdk_libs/archive/f5e6d80c6b4ec6b0a46603f72b015d45cf3c11cd.zip", |
kmb | bfd89d6 | 2018-04-11 14:26:56 -0700 | [diff] [blame] | 97 | # Computed using "shasum -a 256 <zip>" |
kmb | 5064676 | 2018-04-17 04:09:08 -0700 | [diff] [blame] | 98 | sha256 = "c80f3f3d442d8a6ca7adc83f90ecd638c3864087fdd6787ffac070b6f1cc8f9b", |
| 99 | strip_prefix = "desugar_jdk_libs-f5e6d80c6b4ec6b0a46603f72b015d45cf3c11cd", |
kmb | bfd89d6 | 2018-04-11 14:26:56 -0700 | [diff] [blame] | 100 | ) |
| 101 | |
Klaus Aehlig | 3c9cd82 | 2018-05-24 03:35:42 -0700 | [diff] [blame] | 102 | load("//:distdir.bzl", "distdir_tar") |
| 103 | distdir_tar( |
| 104 | name = "additional_distfiles", |
| 105 | dirname = "derived/distdir", |
| 106 | archives = ["f5e6d80c6b4ec6b0a46603f72b015d45cf3c11cd.zip"], |
| 107 | urls = { |
| 108 | "f5e6d80c6b4ec6b0a46603f72b015d45cf3c11cd.zip" : |
| 109 | ["https://github.com/google/desugar_jdk_libs/archive/f5e6d80c6b4ec6b0a46603f72b015d45cf3c11cd.zip"], |
| 110 | }, |
| 111 | sha256 = { |
| 112 | "f5e6d80c6b4ec6b0a46603f72b015d45cf3c11cd.zip" : |
| 113 | "c80f3f3d442d8a6ca7adc83f90ecd638c3864087fdd6787ffac070b6f1cc8f9b", |
| 114 | }, |
| 115 | ) |
| 116 | |
Philipp Wollermann | 9504827 | 2017-03-17 15:11:58 +0000 | [diff] [blame] | 117 | # OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK. |
| 118 | http_file( |
| 119 | name = "openjdk_linux", |
cushon | 72141a1 | 2018-06-11 08:30:15 -0700 | [diff] [blame] | 120 | sha256 = "45f2dfbee93b91b1468cf81d843fc6d9a47fef1f831c0b7ceff4f1eb6e6851c8", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 121 | urls = [ |
cushon | 72141a1 | 2018-06-11 08:30:15 -0700 | [diff] [blame] | 122 | "https://mirror.bazel.build/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zulu9.0.7.1-jdk9.0.7-linux_x64.tar.gz", |
| 123 | "https://bazel-mirror.storage.googleapis.com/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zulu9.0.7.1-jdk9.0.7-linux_x64.tar.gz", |
| 124 | "https://cdn.azul.com/zulu/bin/zulu9.0.7.1-jdk9.0.7-linux_x64.tar.gz", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 125 | ], |
Philipp Wollermann | 9504827 | 2017-03-17 15:11:58 +0000 | [diff] [blame] | 126 | ) |
| 127 | |
| 128 | http_file( |
| 129 | name = "openjdk_macos", |
cushon | 72141a1 | 2018-06-11 08:30:15 -0700 | [diff] [blame] | 130 | sha256 = "5a5b3225b86d3fdb51e9add5335f43cc19c6b2d9b8b5558e72b52d7b2ce9162e", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 131 | urls = [ |
cushon | 72141a1 | 2018-06-11 08:30:15 -0700 | [diff] [blame] | 132 | "https://mirror.bazel.build/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zulu9.0.7.1-jdk9.0.7-macosx_x64.tar.gz", |
| 133 | "https://bazel-mirror.storage.googleapis.com/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zulu9.0.7.1-jdk9.0.7-macosx_x64.tar.gz", |
| 134 | "https://cdn.azul.com/zulu/bin/zulu9.0.7.1-jdk9.0.7-macosx_x64.tar.gz", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 135 | ], |
Philipp Wollermann | 9504827 | 2017-03-17 15:11:58 +0000 | [diff] [blame] | 136 | ) |
| 137 | |
| 138 | http_file( |
| 139 | name = "openjdk_win", |
cushon | 72141a1 | 2018-06-11 08:30:15 -0700 | [diff] [blame] | 140 | sha256 = "75f76c53c6a1f12b1a571b86bd9708ab75adf582d689dddc94fdd77dcc0f3f5c", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 141 | urls = [ |
cushon | 72141a1 | 2018-06-11 08:30:15 -0700 | [diff] [blame] | 142 | "https://mirror.bazel.build/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zulu9.0.7.1-jdk9.0.7-win_x64.zip", |
| 143 | "https://bazel-mirror.storage.googleapis.com/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zulu9.0.7.1-jdk9.0.7-win_x64.zip", |
| 144 | "https://cdn.azul.com/zulu/bin/zulu9.0.7.1-jdk9.0.7-win_x64.zip", |
philwo | 915fa8f | 2017-05-09 12:17:12 -0400 | [diff] [blame] | 145 | ], |
Philipp Wollermann | 9504827 | 2017-03-17 15:11:58 +0000 | [diff] [blame] | 146 | ) |
Googler | 5f36bf8 | 2017-07-12 20:43:08 +0200 | [diff] [blame] | 147 | |
| 148 | http_archive( |
buchgr | d34f306 | 2018-05-22 06:19:10 -0700 | [diff] [blame] | 149 | name = "bazel_toolchains", |
| 150 | urls = [ |
| 151 | "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/09c850dbb8e785ded3d23a7003e9a0168fe1fb2f.tar.gz", |
| 152 | "https://github.com/bazelbuild/bazel-toolchains/archive/09c850dbb8e785ded3d23a7003e9a0168fe1fb2f.tar.gz", |
| 153 | ], |
| 154 | strip_prefix = "bazel-toolchains-09c850dbb8e785ded3d23a7003e9a0168fe1fb2f", |
| 155 | sha256 = "08e521cf2d0998e3d27a16c2e2542ebf4d3857b3ddadcfd145d128140754d7bd", |
Googler | 5f36bf8 | 2017-07-12 20:43:08 +0200 | [diff] [blame] | 156 | ) |
ccalvarin | 1cbe62a | 2017-08-14 21:09:07 +0200 | [diff] [blame] | 157 | |
ccalvarin | 7383976 | 2018-03-23 15:35:00 -0700 | [diff] [blame] | 158 | # We're pinning to a commit because this project does not have a recent release. |
| 159 | # Nothing special about this commit, though. |
ccalvarin | 8e9f4a8 | 2018-03-23 08:19:37 -0700 | [diff] [blame] | 160 | http_archive( |
| 161 | name = "com_google_googletest", |
| 162 | urls = [ |
| 163 | "https://github.com/google/googletest/archive/dfa853b63d17c787914b663b50c2095a0c5b706e.tar.gz", |
| 164 | ], |
| 165 | strip_prefix = "googletest-dfa853b63d17c787914b663b50c2095a0c5b706e", |
| 166 | sha256 = "313a16fba8f0be8ee20ba9883e044556044cbd1ae6cea532473d163a843ef991", |
| 167 | ) |
| 168 | |
Xin Gao | c439ae1 | 2017-11-07 19:05:31 +0100 | [diff] [blame] | 169 | # For src/test/shell/bazel:bazel_sandboxing_test |
| 170 | http_file( |
| 171 | name = 'mount_path_toolchain', |
| 172 | url = 'https://asci-toolchain.appspot.com.storage.googleapis.com/toolchain-testing/mount_path_toolchain.tar.gz', |
Klaus Aehlig | 6ed275b | 2018-06-12 05:36:53 -0700 | [diff] [blame^] | 173 | sha256 = "dd8088d3543a86fd91a9ccde6e40102aff6eaf3d048aa73cc18eff05cc2053d5", |
Xin Gao | c439ae1 | 2017-11-07 19:05:31 +0100 | [diff] [blame] | 174 | ) |