From 639575249534dadd9ce1f93fc89a7fbd25681630 Mon Sep 17 00:00:00 2001 From: hzeller Date: Fri, 18 Oct 2024 18:00:45 +0000 Subject: [PATCH] Since we're now using MODULE.bazel, don't need zlib.BUILD anymore. PiperOrigin-RevId: 687359582 --- src/external/zlib.BUILD | 61 ----------------------------------------- 1 file changed, 61 deletions(-) delete mode 100644 src/external/zlib.BUILD diff --git a/src/external/zlib.BUILD b/src/external/zlib.BUILD deleted file mode 100644 index 8a7e3839..00000000 --- a/src/external/zlib.BUILD +++ /dev/null @@ -1,61 +0,0 @@ -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) # BSD/MIT-like license (for zlib) - -# From zlib/README -_ZLIB_PUBLIC_HEADERS = [ - "zconf.h", - "zlib.h", -] - -_ZLIB_PREFIXED_HEADERS = ["zlib/include/" + hdr for hdr in _ZLIB_PUBLIC_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_PUBLIC_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", - "crc32.h", - "deflate.h", - "gzguts.h", - "inffast.h", - "inffixed.h", - "inflate.h", - "inftrees.h", - "trees.h", - "zutil.h", - # Include the un-prefixed headers in srcs to work - # around the fact that zlib uses "" when including itself, - # but clients generally use <>. - ] + _ZLIB_PUBLIC_HEADERS, - hdrs = _ZLIB_PREFIXED_HEADERS, - copts = [ - "-Wno-unused-variable", - "-Wno-implicit-function-declaration", - ], - includes = ["zlib/include/"], -)