summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Pursehouse <dpursehouse@collab.net>2019-05-10 21:29:02 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-05-10 21:29:02 +0000
commit62c8b72009ab2269aaf291365c8cd7df389ca5dd (patch)
tree9c1e99fd221284b3bf44a98cd42ce9daddaf650f
parent1a863c09c6eb131f6d65860dcb3ada9885cee399 (diff)
parent83f356fac25d25f6781c63dbbfbefb98c3718764 (diff)
Merge "Merge branch 'stable-2.16' into stable-3.0" into stable-3.0
-rw-r--r--WORKSPACE27
-rw-r--r--lib/zlib/BUILD60
2 files changed, 7 insertions, 80 deletions
diff --git a/WORKSPACE b/WORKSPACE
index e1caa7af4c..626d36a3a1 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -7,30 +7,16 @@ load("//plugins:external_plugin_deps.bzl", "external_plugin_deps")
http_archive(
name = "bazel_skylib",
- sha256 = "bbccf674aa441c266df9894182d80de104cabd19be98be002f6d478aaa31574d",
- strip_prefix = "bazel-skylib-2169ae1c374aab4a09aa90e65efe1a3aad4e279b",
- urls = ["https://github.com/bazelbuild/bazel-skylib/archive/2169ae1c374aab4a09aa90e65efe1a3aad4e279b.tar.gz"],
+ sha256 = "2ea8a5ed2b448baf4a6855d3ce049c4c452a6470b1efd1504fdb7c1c134d220a",
+ strip_prefix = "bazel-skylib-0.8.0",
+ urls = ["https://github.com/bazelbuild/bazel-skylib/archive/0.8.0.tar.gz"],
)
http_archive(
name = "io_bazel_rules_closure",
- sha256 = "1c05fea22c9630cf1047f25d008780756373a60ddd4d2a6993cf9858279c5da6",
- strip_prefix = "rules_closure-50d3dc9e6d27a5577a0f95708466718825d579f4",
- urls = ["https://github.com/bazelbuild/rules_closure/archive/50d3dc9e6d27a5577a0f95708466718825d579f4.tar.gz"],
-)
-
-# Transitive dependency of rules_closure and protobuf
-http_archive(
- name = "net_zlib",
- build_file = "//:lib/zlib/BUILD",
- sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
- strip_prefix = "zlib-1.2.11",
- urls = ["https://zlib.net/zlib-1.2.11.tar.gz"],
-)
-
-bind(
- name = "zlib",
- actual = "@net_zlib//:zlib",
+ sha256 = "bdb00831682cd0923df36e19b01619b8230896d582f16304a937d8dc8270b1b6",
+ strip_prefix = "rules_closure-ad75d7cc1cff0e845cd83683881915d995bd75b2",
+ urls = ["https://github.com/bazelbuild/rules_closure/archive/ad75d7cc1cff0e845cd83683881915d995bd75b2.tar.gz"],
)
# File is specific to Polymer and copied from the Closure Github -- should be
@@ -55,6 +41,7 @@ load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")
# https://github.com/google/closure-templates/pull/155
closure_repositories(
omit_aopalliance = True,
+ omit_bazel_skylib = True,
omit_javax_inject = True,
)
diff --git a/lib/zlib/BUILD b/lib/zlib/BUILD
deleted file mode 100644
index f948117417..0000000000
--- a/lib/zlib/BUILD
+++ /dev/null
@@ -1,60 +0,0 @@
-package(default_visibility = ["//visibility:public"])
-
-licenses(["notice"]) # BSD/MIT-like license (for zlib)
-
-_ZLIB_HEADERS = [
- "crc32.h",
- "deflate.h",
- "gzguts.h",
- "inffast.h",
- "inffixed.h",
- "inflate.h",
- "inftrees.h",
- "trees.h",
- "zconf.h",
- "zlib.h",
- "zutil.h",
-]
-
-_ZLIB_PREFIXED_HEADERS = ["zlib/include/" + hdr for hdr in _ZLIB_HEADERS]
-
-# In order to limit the damage from the `includes` propagation
-# via `:zlib`, copy the public headers to a subdirectory and
-# expose those.
-genrule(
- name = "copy_public_headers",
- srcs = _ZLIB_HEADERS,
- outs = _ZLIB_PREFIXED_HEADERS,
- cmd = "cp $(SRCS) $(@D)/zlib/include/",
- visibility = ["//visibility:private"],
-)
-
-cc_library(
- name = "zlib",
- srcs = [
- "adler32.c",
- "compress.c",
- "crc32.c",
- "deflate.c",
- "gzclose.c",
- "gzlib.c",
- "gzread.c",
- "gzwrite.c",
- "infback.c",
- "inffast.c",
- "inflate.c",
- "inftrees.c",
- "trees.c",
- "uncompr.c",
- "zutil.c",
- # Include the un-prefixed headers in srcs to work
- # around the fact that zlib isn't consistent in its
- # choice of <> or "" delimiter when including itself.
- ] + _ZLIB_HEADERS,
- hdrs = _ZLIB_PREFIXED_HEADERS,
- copts = [
- "-Wno-unused-variable",
- "-Wno-implicit-function-declaration",
- ],
- includes = ["zlib/include/"],
-)