workspace(name = "io_bazel") # Protobuf expects an //external:python_headers label which would contain the # Python headers if fast Python protos is enabled. Since we are not using fast # Python protos, bind python_headers to a dummy target. bind( name = "python_headers", actual = "//:dummy", ) # Protobuf code generation for GRPC requires three external labels: # //external:grpc-java_plugin # //external:grpc-jar # //external:guava bind( name = "grpc-java-plugin", actual = "//third_party/grpc:grpc-java-plugin", ) bind( name = "grpc-jar", actual = "//third_party/grpc:grpc-jar", ) bind( name = "guava", actual = "//third_party:guava", ) # Used by //third_party/protobuf:protobuf_python bind( name = "six", actual = "//third_party/py/six", ) http_archive( name = "bazel_j2objc", url = "https://github.com/google/j2objc/releases/download/2.0.3/j2objc-2.0.3.zip", # Computed using "shasum -a 256 j2objc-2.0.3.zip" sha256 = "a36bac432d0dbd8c98249e484b2b69dd5720afa4abb58711a3c3def1c0bfa21d", strip_prefix = "j2objc-2.0.3", ) # For src/test/shell/bazel:test_srcs load("//src/test/shell/bazel:list_source_repository.bzl", "list_source_repository") list_source_repository(name = "local_bazel_source_list") # To run the Android integration tests in //src/test/shell/bazel/android:all or # build the Android sample app in //examples/android/java/bazel:hello_world # # 1. Install an Android SDK and NDK from https://developer.android.com # 2. Set the $ANDROID_HOME and $ANDROID_NDK_HOME environment variables # 3. Uncomment the two lines below # # android_sdk_repository(name = "androidsdk") # android_ndk_repository(name = "androidndk") # In order to run //src/test/shell/bazel:maven_skylark_test, follow the # instructions above for the Android integration tests and uncomment the # following lines: # load("//tools/build_defs/repo:maven_rules.bzl", "maven_dependency_plugin") # maven_dependency_plugin() # This allows rules written in skylark to locate apple build tools. bind( name = "xcrunwrapper", actual = "@bazel_tools//tools/objc:xcrunwrapper", ) new_local_repository( name = "com_google_protobuf", build_file = "./third_party/protobuf/3.4.0/BUILD", path = "./third_party/protobuf/3.4.0/", ) new_local_repository( name = "com_google_protobuf_cc", build_file = "./third_party/protobuf/3.4.0/BUILD", path = "./third_party/protobuf/3.4.0/", ) new_local_repository( name = "com_google_protobuf_java", build_file = "./third_party/protobuf/3.4.0/com_google_protobuf_java.BUILD", path = "./third_party/protobuf/3.4.0/", ) new_local_repository( name = "googleapis", path = "./third_party/googleapis/", build_file = "./third_party/googleapis/BUILD", ) http_archive( name = "desugar_jdk_libs", url = "https://github.com/google/desugar_jdk_libs/archive/f5e6d80c6b4ec6b0a46603f72b015d45cf3c11cd.zip", # Computed using "shasum -a 256 " sha256 = "c80f3f3d442d8a6ca7adc83f90ecd638c3864087fdd6787ffac070b6f1cc8f9b", strip_prefix = "desugar_jdk_libs-f5e6d80c6b4ec6b0a46603f72b015d45cf3c11cd", ) load("//:distdir.bzl", "distdir_tar") distdir_tar( name = "additional_distfiles", dirname = "derived/distdir", archives = ["f5e6d80c6b4ec6b0a46603f72b015d45cf3c11cd.zip"], urls = { "f5e6d80c6b4ec6b0a46603f72b015d45cf3c11cd.zip" : ["https://github.com/google/desugar_jdk_libs/archive/f5e6d80c6b4ec6b0a46603f72b015d45cf3c11cd.zip"], }, sha256 = { "f5e6d80c6b4ec6b0a46603f72b015d45cf3c11cd.zip" : "c80f3f3d442d8a6ca7adc83f90ecd638c3864087fdd6787ffac070b6f1cc8f9b", }, ) # OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK. http_file( name = "openjdk_linux", sha256 = "45f2dfbee93b91b1468cf81d843fc6d9a47fef1f831c0b7ceff4f1eb6e6851c8", urls = [ "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", "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", "https://cdn.azul.com/zulu/bin/zulu9.0.7.1-jdk9.0.7-linux_x64.tar.gz", ], ) http_file( name = "openjdk_macos", sha256 = "5a5b3225b86d3fdb51e9add5335f43cc19c6b2d9b8b5558e72b52d7b2ce9162e", urls = [ "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", "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", "https://cdn.azul.com/zulu/bin/zulu9.0.7.1-jdk9.0.7-macosx_x64.tar.gz", ], ) http_file( name = "openjdk_win", sha256 = "75f76c53c6a1f12b1a571b86bd9708ab75adf582d689dddc94fdd77dcc0f3f5c", urls = [ "https://mirror.bazel.build/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zulu9.0.7.1-jdk9.0.7-win_x64.zip", "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", "https://cdn.azul.com/zulu/bin/zulu9.0.7.1-jdk9.0.7-win_x64.zip", ], ) http_archive( name = "bazel_toolchains", urls = [ "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/09c850dbb8e785ded3d23a7003e9a0168fe1fb2f.tar.gz", "https://github.com/bazelbuild/bazel-toolchains/archive/09c850dbb8e785ded3d23a7003e9a0168fe1fb2f.tar.gz", ], strip_prefix = "bazel-toolchains-09c850dbb8e785ded3d23a7003e9a0168fe1fb2f", sha256 = "08e521cf2d0998e3d27a16c2e2542ebf4d3857b3ddadcfd145d128140754d7bd", ) # We're pinning to a commit because this project does not have a recent release. # Nothing special about this commit, though. http_archive( name = "com_google_googletest", urls = [ "https://github.com/google/googletest/archive/dfa853b63d17c787914b663b50c2095a0c5b706e.tar.gz", ], strip_prefix = "googletest-dfa853b63d17c787914b663b50c2095a0c5b706e", sha256 = "313a16fba8f0be8ee20ba9883e044556044cbd1ae6cea532473d163a843ef991", ) # For src/test/shell/bazel:bazel_sandboxing_test http_file( name = 'mount_path_toolchain', url = 'https://asci-toolchain.appspot.com.storage.googleapis.com/toolchain-testing/mount_path_toolchain.tar.gz', sha256 = "dd8088d3543a86fd91a9ccde6e40102aff6eaf3d048aa73cc18eff05cc2053d5", )