protobuf_deps.bzl 627 B

123456789101112131415
  1. """Load dependencies needed to compile the protobuf library as a 3rd-party consumer."""
  2. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
  3. def protobuf_deps():
  4. """Loads common dependencies needed to compile the protobuf library."""
  5. if "zlib" not in native.existing_rules():
  6. http_archive(
  7. name = "zlib",
  8. build_file = "@com_google_protobuf//:third_party/zlib.BUILD",
  9. sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
  10. strip_prefix = "zlib-1.2.11",
  11. urls = ["https://zlib.net/zlib-1.2.11.tar.gz"],
  12. )