protobuf_deps.bzl 719 B

1234567891011121314151617181920
  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. native.bind(
  6. name = "zlib",
  7. actual = "@net_zlib//:zlib",
  8. )
  9. if "net_zlib" not in native.existing_rules():
  10. http_archive(
  11. name = "net_zlib",
  12. build_file = "@com_google_protobuf//:third_party/zlib.BUILD",
  13. sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
  14. strip_prefix = "zlib-1.2.11",
  15. urls = ["https://zlib.net/zlib-1.2.11.tar.gz"],
  16. )