aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/zlib.BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/zlib.BUILD')
-rw-r--r--third_party/zlib.BUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/third_party/zlib.BUILD b/third_party/zlib.BUILD
new file mode 100644
index 0000000000..279e6395b0
--- /dev/null
+++ b/third_party/zlib.BUILD
@@ -0,0 +1,40 @@
+package(default_visibility = ["//visibility:public"])
+
+licenses(["notice"]) # BSD/MIT-like license (for zlib)
+
+cc_library(
+ name = "zlib",
+ srcs = [
+ "adler32.c",
+ "compress.c",
+ "crc32.c",
+ "crc32.h",
+ "deflate.c",
+ "deflate.h",
+ "gzclose.c",
+ "gzguts.h",
+ "gzlib.c",
+ "gzread.c",
+ "gzwrite.c",
+ "infback.c",
+ "inffast.c",
+ "inffast.h",
+ "inffixed.h",
+ "inflate.c",
+ "inflate.h",
+ "inftrees.c",
+ "inftrees.h",
+ "trees.c",
+ "trees.h",
+ "uncompr.c",
+ "zconf.h",
+ "zutil.c",
+ "zutil.h",
+ ],
+ hdrs = ["zlib.h"],
+ copts = [
+ "-Wno-shift-negative-value",
+ "-Wno-implicit-function-declaration",
+ ],
+ includes = ["."],
+)