2019-02-26 18:07:55 +00:00
|
|
|
"""Load dependencies needed to compile the protobuf library as a 3rd-party consumer."""
|
|
|
|
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
|
|
|
|
def protobuf_deps():
|
|
|
|
"""Loads common dependencies needed to compile the protobuf library."""
|
|
|
|
|
2019-04-12 22:41:08 +00:00
|
|
|
if "zlib" not in native.existing_rules():
|
2019-02-26 18:07:55 +00:00
|
|
|
http_archive(
|
2019-04-12 22:41:08 +00:00
|
|
|
name = "zlib",
|
2019-02-26 18:07:55 +00:00
|
|
|
build_file = "@com_google_protobuf//:third_party/zlib.BUILD",
|
|
|
|
sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
|
|
|
|
strip_prefix = "zlib-1.2.11",
|
|
|
|
urls = ["https://zlib.net/zlib-1.2.11.tar.gz"],
|
|
|
|
)
|