aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorKent Ross <k@mad.cash>2019-02-26 10:07:55 -0800
committerAdam Cozzette <acozzette@google.com>2019-02-26 11:27:20 -0800
commitb6375e03aa80274dae89410efdf46346413b2247 (patch)
tree4bcfcb4728882d8402d8efe3a53ea0510f12b873 /examples
parente4e5bc49d7cd9fa1cc7e352da3289711fedcea18 (diff)
downloadprotobuf-b6375e03aa80274dae89410efdf46346413b2247.tar.gz
create importable function for defining zlib
Diffstat (limited to 'examples')
-rw-r--r--examples/WORKSPACE14
1 files changed, 3 insertions, 11 deletions
diff --git a/examples/WORKSPACE b/examples/WORKSPACE
index 878b25582..8b97e47f4 100644
--- a/examples/WORKSPACE
+++ b/examples/WORKSPACE
@@ -41,18 +41,10 @@ http_archive(
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"],
-)
+load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
-bind(
- name = "zlib",
- actual = "@net_zlib//:zlib",
-)
+protobuf_deps()
load("@bazel_skylib//lib:versions.bzl", "versions")
+
versions.check(minimum_bazel_version = "0.5.4")