aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/zlib
diff options
context:
space:
mode:
authorGravatar abarth <abarth@chromium.org>2016-07-15 15:15:15 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-15 15:15:15 -0700
commit6fc8ff024bd823f350400a86e7b9daa1c25f618e (patch)
tree0b3febab003cc6df959a05e90936019e6659b494 /third_party/zlib
parent31e0c1379e6d0ce48196183e295b929af51fa74e (diff)
Add support for Fuchsia
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2152273002 [mtklein edit from here down] No public API changes. TBR=reed@google.com Review-Url: https://codereview.chromium.org/2152273002
Diffstat (limited to 'third_party/zlib')
-rw-r--r--third_party/zlib/BUILD.gn35
1 files changed, 35 insertions, 0 deletions
diff --git a/third_party/zlib/BUILD.gn b/third_party/zlib/BUILD.gn
new file mode 100644
index 0000000000..0fff083a43
--- /dev/null
+++ b/third_party/zlib/BUILD.gn
@@ -0,0 +1,35 @@
+# Copyright 2016 Google Inc.
+#
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("../third_party.gni")
+
+config("zlib_public") {
+ include_dirs = [ "../externals/zlib" ]
+}
+source_set("zlib") {
+ public_configs = [ ":zlib_public" ]
+ configs -= unwanted_configs
+
+ cflags = [ "-w" ]
+
+ sources = [
+ "../externals/zlib/adler32.c",
+ "../externals/zlib/compress.c",
+ "../externals/zlib/crc32.c",
+ "../externals/zlib/deflate.c",
+ "../externals/zlib/gzclose.c",
+ "../externals/zlib/gzlib.c",
+ "../externals/zlib/gzread.c",
+ "../externals/zlib/gzwrite.c",
+ "../externals/zlib/infback.c",
+ "../externals/zlib/inffast.c",
+ "../externals/zlib/inflate.c",
+ "../externals/zlib/inftrees.c",
+ "../externals/zlib/simd_stub.c",
+ "../externals/zlib/trees.c",
+ "../externals/zlib/uncompr.c",
+ "../externals/zlib/zutil.c",
+ ]
+}