aboutsummaryrefslogtreecommitdiff
path: root/WORKSPACE
diff options
context:
space:
mode:
authorCody Schroeder <schroederc@google.com>2018-12-11 11:58:26 -0800
committerAdam Cozzette <acozzette@google.com>2018-12-11 11:58:26 -0800
commit802d543173d39ad4087cb188008a6eb01c6cef96 (patch)
treeab455e3c602da06d776790cf6b8140561231de8f /WORKSPACE
parent8bd15429800124fcb6c2404216531b4e6c46d786 (diff)
downloadprotobuf-802d543173d39ad4087cb188008a6eb01c6cef96.tar.gz
Add Bazel config for zlib support (#5389)
* Add Bazel config for optional zlib support * Add hard dependency on zlib * Remove unused config_setting
Diffstat (limited to 'WORKSPACE')
-rw-r--r--WORKSPACE16
1 files changed, 15 insertions, 1 deletions
diff --git a/WORKSPACE b/WORKSPACE
index f3020843f..0fa64583a 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -1,10 +1,11 @@
workspace(name = "com_google_protobuf")
+
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
new_local_repository(
name = "submodule_gmock",
+ build_file = "@//:third_party/googletest/BUILD.bazel",
path = "third_party/googletest",
- build_file = "@//:third_party/googletest/BUILD.bazel"
)
http_archive(
@@ -21,6 +22,14 @@ 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"],
+)
+
bind(
name = "python_headers",
actual = "//util/python:python_headers",
@@ -60,3 +69,8 @@ bind(
name = "gson",
actual = "@gson_maven//jar",
)
+
+bind(
+ name = "zlib",
+ actual = "@net_zlib//:zlib",
+)