Commit f313b9cc authored by Nic McDonald's avatar Nic McDonald Committed by Adam Cozzette

comply with Bazel recommendations

parent 8e5ea659
...@@ -19,7 +19,7 @@ config_setting( ...@@ -19,7 +19,7 @@ config_setting(
# ZLIB configuration # ZLIB configuration
################################################################################ ################################################################################
ZLIB_DEPS = ["//external:zlib"] ZLIB_DEPS = ["@zlib//:zlib"]
################################################################################ ################################################################################
# Protobuf Runtime Library # Protobuf Runtime Library
......
...@@ -5,14 +5,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") ...@@ -5,14 +5,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def protobuf_deps(): def protobuf_deps():
"""Loads common dependencies needed to compile the protobuf library.""" """Loads common dependencies needed to compile the protobuf library."""
native.bind( if "zlib" not in native.existing_rules():
name = "zlib",
actual = "@net_zlib//:zlib",
)
if "net_zlib" not in native.existing_rules():
http_archive( http_archive(
name = "net_zlib", name = "zlib",
build_file = "@com_google_protobuf//:third_party/zlib.BUILD", build_file = "@com_google_protobuf//:third_party/zlib.BUILD",
sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1", sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
strip_prefix = "zlib-1.2.11", strip_prefix = "zlib-1.2.11",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment