blob: e7776f5ffb22f35420df6f7b1bf6c7eb316c8967 [file] [log] [blame]
abarth6fc8ff02016-07-15 15:15:15 -07001# Copyright 2016 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
mtkleinf037d482016-07-19 08:25:00 -07006declare_args() {
Mike Klein10d665d2016-11-01 11:46:10 -04007 skia_use_system_zlib = false
mtkleinf037d482016-07-19 08:25:00 -07008}
9
abarth6fc8ff02016-07-15 15:15:15 -070010import("../third_party.gni")
11
Mike Klein10d665d2016-11-01 11:46:10 -040012if (skia_use_system_zlib) {
13 system("zlib") {
14 libs = [ "z" ]
15 }
16} else {
17 third_party("zlib") {
18 public_include_dirs = [ "../externals/zlib" ]
abarth6fc8ff02016-07-15 15:15:15 -070019
Mike Klein10d665d2016-11-01 11:46:10 -040020 sources = [
21 "../externals/zlib/adler32.c",
22 "../externals/zlib/compress.c",
23 "../externals/zlib/crc32.c",
24 "../externals/zlib/deflate.c",
25 "../externals/zlib/gzclose.c",
26 "../externals/zlib/gzlib.c",
27 "../externals/zlib/gzread.c",
28 "../externals/zlib/gzwrite.c",
29 "../externals/zlib/infback.c",
30 "../externals/zlib/inffast.c",
31 "../externals/zlib/inflate.c",
32 "../externals/zlib/inftrees.c",
33 "../externals/zlib/simd_stub.c",
34 "../externals/zlib/trees.c",
35 "../externals/zlib/uncompr.c",
36 "../externals/zlib/zutil.c",
37 ]
38 }
abarth6fc8ff02016-07-15 15:15:15 -070039}