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 | |
Damien Martin-Guillerez | 9b88920 | 2016-03-03 00:35:13 +0000 | [diff] [blame] | 36 | # For tools/cpp/test/... |
| 37 | load("//tools/cpp/test:docker_repository.bzl", "docker_repository") |
| 38 | docker_repository() |
| 39 | |
Adam Michael | 9b7330f | 2017-03-23 18:40:51 +0000 | [diff] [blame] | 40 | # To run the Android integration tests in //src/test/shell/bazel/android:all or |
| 41 | # build the Android sample app in //examples/android/java/bazel:hello_world |
| 42 | # |
| 43 | # 1. Install an Android SDK and NDK from https://developer.android.com |
| 44 | # 2. Set the $ANDROID_HOME and $ANDROID_NDK_HOME environment variables |
| 45 | # 3. Uncomment the two lines below |
| 46 | # |
| 47 | # android_sdk_repository(name = "androidsdk") |
| 48 | # android_ndk_repository(name = "androidndk") |
Cal Peyser | 2152bc1 | 2016-04-22 17:08:59 +0000 | [diff] [blame] | 49 | |
Adam Michael | 8a136d8 | 2016-11-16 23:04:46 +0000 | [diff] [blame] | 50 | # In order to run //src/test/shell/bazel:maven_skylark_test, follow the |
| 51 | # instructions above for the Android integration tests and uncomment the |
| 52 | # following lines: |
| 53 | # load("//tools/build_defs/repo:maven_rules.bzl", "maven_dependency_plugin") |
| 54 | # maven_dependency_plugin() |
| 55 | |
Cal Peyser | 2152bc1 | 2016-04-22 17:08:59 +0000 | [diff] [blame] | 56 | # This allows rules written in skylark to locate apple build tools. |
| 57 | bind(name = "xcrunwrapper", actual = "@bazel_tools//tools/objc:xcrunwrapper") |
Carmi Grushko | bfaff29 | 2016-08-17 18:37:55 +0000 | [diff] [blame] | 58 | |
Jakob Buchgraber | 8ff0d0d | 2017-04-14 21:16:19 +0200 | [diff] [blame] | 59 | new_local_repository( |
Carmi Grushko | 0fd73d6 | 2017-02-17 06:49:40 +0000 | [diff] [blame] | 60 | name = "com_google_protobuf", |
Jakob Buchgraber | 6e12e65 | 2017-05-02 11:53:15 +0200 | [diff] [blame^] | 61 | path = "./third_party/protobuf/3.2.0/", |
| 62 | build_file = "./third_party/protobuf/3.2.0/BUILD" |
Carmi Grushko | 0fd73d6 | 2017-02-17 06:49:40 +0000 | [diff] [blame] | 63 | ) |
| 64 | |
| 65 | new_local_repository( |
Carmi Grushko | f1aa34c | 2016-11-29 01:04:35 +0000 | [diff] [blame] | 66 | name = "com_google_protobuf_java", |
Jakob Buchgraber | 6e12e65 | 2017-05-02 11:53:15 +0200 | [diff] [blame^] | 67 | path = "./third_party/protobuf/3.2.0/", |
| 68 | build_file = "./third_party/protobuf/3.2.0/com_google_protobuf_java.BUILD", |
Carmi Grushko | f1aa34c | 2016-11-29 01:04:35 +0000 | [diff] [blame] | 69 | ) |
Philipp Wollermann | 9504827 | 2017-03-17 15:11:58 +0000 | [diff] [blame] | 70 | |
| 71 | # OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK. |
| 72 | http_file( |
| 73 | name = "openjdk_linux", |
| 74 | url = "https://bazel-mirror.storage.googleapis.com/openjdk/azul-zulu-8.20.0.5-jdk8.0.121/zulu8.20.0.5-jdk8.0.121-linux_x64.tar.gz", |
| 75 | sha256 = "7fdfb17d890406470b2303d749d3138e7f353749e67a0a22f542e1ab3e482745", |
| 76 | ) |
| 77 | |
| 78 | http_file( |
| 79 | name = "openjdk_macos", |
| 80 | url = "https://bazel-mirror.storage.googleapis.com/openjdk/azul-zulu-8.20.0.5-jdk8.0.121/zulu8.20.0.5-jdk8.0.121-macosx_x64.zip", |
| 81 | sha256 = "2a58bd1d9b0cbf0b3d8d1bcdd117c407e3d5a0ec01e2f53565c9bec5cf9ea78b", |
| 82 | ) |
| 83 | |
| 84 | http_file( |
| 85 | name = "openjdk_win", |
| 86 | url = "https://bazel-mirror.storage.googleapis.com/openjdk/azul-zulu-8.20.0.5-jdk8.0.121/zulu8.20.0.5-jdk8.0.121-win_x64.zip", |
| 87 | sha256 = "35414df28f17704546b9559b5e62b4d00cdc8fdfd349116be4f987abaeaaff68", |
| 88 | ) |