blob: 59ca61c62e029a3a0b87fdbedc62616c43de0b54 [file] [log] [blame]
commit-bot@chromium.orgf84722e2014-02-24 20:22:34 +00001# Copyright 2014 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
vandebo@chromium.org0f1c95c2011-06-24 23:13:47 +00006{
bsalomonebc1c102015-08-06 17:33:16 -07007 'variables': {
8 'skia_warnings_as_errors': 0,
9 },
scroggo3da91812015-03-02 06:24:15 -080010 'targets': [
11 {
scroggo3da91812015-03-02 06:24:15 -080012 'target_name': 'zlib',
scroggo3da91812015-03-02 06:24:15 -080013 'conditions': [
mtklein84b8d892016-02-03 07:06:27 -080014 [ 'skia_android_framework', {
mtklein82966b52015-03-07 07:47:51 -080015 'type': 'none',
mtklein84b8d892016-02-03 07:06:27 -080016 'direct_dependent_settings': {
17 'include_dirs': [ 'external/zlib' ],
18 'link_settings': { 'libraries': [ '-lz' ] },
19 },
mtklein82966b52015-03-07 07:47:51 -080020 }, {
scroggo3da91812015-03-02 06:24:15 -080021 'type': 'static_library',
mtklein013475a2016-02-12 12:15:23 -080022 'cflags': [ '-w' ],
scroggo3da91812015-03-02 06:24:15 -080023 'sources': [
24 '../third_party/externals/zlib/adler32.c',
25 '../third_party/externals/zlib/compress.c',
26 '../third_party/externals/zlib/crc32.c',
scroggo3da91812015-03-02 06:24:15 -080027 '../third_party/externals/zlib/deflate.c',
scroggo3da91812015-03-02 06:24:15 -080028 '../third_party/externals/zlib/gzclose.c',
scroggo3da91812015-03-02 06:24:15 -080029 '../third_party/externals/zlib/gzlib.c',
30 '../third_party/externals/zlib/gzread.c',
31 '../third_party/externals/zlib/gzwrite.c',
32 '../third_party/externals/zlib/infback.c',
33 '../third_party/externals/zlib/inffast.c',
scroggo3da91812015-03-02 06:24:15 -080034 '../third_party/externals/zlib/inflate.c',
scroggo3da91812015-03-02 06:24:15 -080035 '../third_party/externals/zlib/inftrees.c',
mtklein84b8d892016-02-03 07:06:27 -080036 '../third_party/externals/zlib/simd_stub.c',
scroggo3da91812015-03-02 06:24:15 -080037 '../third_party/externals/zlib/trees.c',
scroggo3da91812015-03-02 06:24:15 -080038 '../third_party/externals/zlib/uncompr.c',
scroggo3da91812015-03-02 06:24:15 -080039 '../third_party/externals/zlib/zutil.c',
scroggo3da91812015-03-02 06:24:15 -080040 ],
41 'include_dirs': [
42 '../third_party/externals/zlib/',
43 ],
44 'direct_dependent_settings': {
45 'include_dirs': [
46 '../third_party/externals/zlib',
47 ],
48 },
scroggo3da91812015-03-02 06:24:15 -080049 'defines': [
50 '_CRT_NONSTDC_NO_DEPRECATE',
51 ],
52 }],
53 ],
mtklein1e4e8142015-02-17 13:10:43 -080054 }],
vandebo@chromium.org0f1c95c2011-06-24 23:13:47 +000055}