12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
- # This com_google_protobuf repository is required for proto_library rule.
- # It provides the protocol compiler binary (i.e., protoc).
- http_archive(
- name = "com_google_protobuf",
- strip_prefix = "protobuf-master",
- urls = ["https://github.com/protocolbuffers/protobuf/archive/master.zip"],
- )
- # This com_google_protobuf_cc repository is required for cc_proto_library
- # rule. It provides protobuf C++ runtime. Note that it actually is the same
- # repo as com_google_protobuf but has to be given a different name as
- # required by bazel.
- http_archive(
- name = "com_google_protobuf_cc",
- strip_prefix = "protobuf-master",
- urls = ["https://github.com/protocolbuffers/protobuf/archive/master.zip"],
- )
- # Similar to com_google_protobuf_cc but for Java (i.e., java_proto_library).
- http_archive(
- name = "com_google_protobuf_java",
- strip_prefix = "protobuf-master",
- urls = ["https://github.com/protocolbuffers/protobuf/archive/master.zip"],
- )
- # Similar to com_google_protobuf_cc but for Java lite. If you are building
- # for Android, the lite version should be prefered because it has a much
- # smaller code size.
- http_archive(
- name = "com_google_protobuf_javalite",
- strip_prefix = "protobuf-javalite",
- urls = ["https://github.com/protocolbuffers/protobuf/archive/javalite.zip"],
- )
- http_archive(
- name = "bazel_skylib",
- sha256 = "bbccf674aa441c266df9894182d80de104cabd19be98be002f6d478aaa31574d",
- strip_prefix = "bazel-skylib-2169ae1c374aab4a09aa90e65efe1a3aad4e279b",
- urls = ["https://github.com/bazelbuild/bazel-skylib/archive/2169ae1c374aab4a09aa90e65efe1a3aad4e279b.tar.gz"],
- )
- http_archive(
- name = "net_zlib",
- build_file = "//:third_party/zlib.BUILD",
- sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
- strip_prefix = "zlib-1.2.11",
- urls = ["https://zlib.net/zlib-1.2.11.tar.gz"],
- )
- bind(
- name = "zlib",
- actual = "@net_zlib//:zlib",
- )
- load("@bazel_skylib//lib:versions.bzl", "versions")
- versions.check(minimum_bazel_version = "0.5.4")
|