commit-bot@chromium.org | f84722e | 2014-02-24 20:22:34 +0000 | [diff] [blame] | 1 | # 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.org | 0f1c95c | 2011-06-24 23:13:47 +0000 | [diff] [blame] | 6 | { |
bsalomon | ebc1c10 | 2015-08-06 17:33:16 -0700 | [diff] [blame] | 7 | 'variables': { |
| 8 | 'skia_warnings_as_errors': 0, |
| 9 | }, |
scroggo | 3da9181 | 2015-03-02 06:24:15 -0800 | [diff] [blame] | 10 | 'targets': [ |
| 11 | { |
scroggo | 3da9181 | 2015-03-02 06:24:15 -0800 | [diff] [blame] | 12 | 'target_name': 'zlib', |
scroggo | 3da9181 | 2015-03-02 06:24:15 -0800 | [diff] [blame] | 13 | 'conditions': [ |
mtklein | 84b8d89 | 2016-02-03 07:06:27 -0800 | [diff] [blame] | 14 | [ 'skia_android_framework', { |
mtklein | 82966b5 | 2015-03-07 07:47:51 -0800 | [diff] [blame] | 15 | 'type': 'none', |
mtklein | 84b8d89 | 2016-02-03 07:06:27 -0800 | [diff] [blame] | 16 | 'direct_dependent_settings': { |
| 17 | 'include_dirs': [ 'external/zlib' ], |
| 18 | 'link_settings': { 'libraries': [ '-lz' ] }, |
| 19 | }, |
mtklein | 82966b5 | 2015-03-07 07:47:51 -0800 | [diff] [blame] | 20 | }, { |
scroggo | 3da9181 | 2015-03-02 06:24:15 -0800 | [diff] [blame] | 21 | 'type': 'static_library', |
halcanary | 3d5942e | 2016-05-23 14:02:54 -0700 | [diff] [blame] | 22 | 'variables': { |
| 23 | 'skia_zlib_flags' : [ |
| 24 | '-Wno-unused-value', |
| 25 | '-Wno-shift-negative-value', |
halcanary | 910fff4 | 2016-05-24 05:23:52 -0700 | [diff] [blame] | 26 | '-Wno-unknown-warning-option', |
halcanary | 3d5942e | 2016-05-23 14:02:54 -0700 | [diff] [blame] | 27 | ], |
| 28 | }, |
| 29 | 'cflags': [ '<@(skia_zlib_flags)' ], |
| 30 | 'xcode_settings': { 'WARNING_CFLAGS': [ '<@(skia_zlib_flags)' ], }, |
scroggo | 3da9181 | 2015-03-02 06:24:15 -0800 | [diff] [blame] | 31 | 'sources': [ |
| 32 | '../third_party/externals/zlib/adler32.c', |
| 33 | '../third_party/externals/zlib/compress.c', |
| 34 | '../third_party/externals/zlib/crc32.c', |
scroggo | 3da9181 | 2015-03-02 06:24:15 -0800 | [diff] [blame] | 35 | '../third_party/externals/zlib/deflate.c', |
scroggo | 3da9181 | 2015-03-02 06:24:15 -0800 | [diff] [blame] | 36 | '../third_party/externals/zlib/gzclose.c', |
scroggo | 3da9181 | 2015-03-02 06:24:15 -0800 | [diff] [blame] | 37 | '../third_party/externals/zlib/gzlib.c', |
| 38 | '../third_party/externals/zlib/gzread.c', |
| 39 | '../third_party/externals/zlib/gzwrite.c', |
| 40 | '../third_party/externals/zlib/infback.c', |
| 41 | '../third_party/externals/zlib/inffast.c', |
scroggo | 3da9181 | 2015-03-02 06:24:15 -0800 | [diff] [blame] | 42 | '../third_party/externals/zlib/inflate.c', |
scroggo | 3da9181 | 2015-03-02 06:24:15 -0800 | [diff] [blame] | 43 | '../third_party/externals/zlib/inftrees.c', |
mtklein | 84b8d89 | 2016-02-03 07:06:27 -0800 | [diff] [blame] | 44 | '../third_party/externals/zlib/simd_stub.c', |
scroggo | 3da9181 | 2015-03-02 06:24:15 -0800 | [diff] [blame] | 45 | '../third_party/externals/zlib/trees.c', |
scroggo | 3da9181 | 2015-03-02 06:24:15 -0800 | [diff] [blame] | 46 | '../third_party/externals/zlib/uncompr.c', |
scroggo | 3da9181 | 2015-03-02 06:24:15 -0800 | [diff] [blame] | 47 | '../third_party/externals/zlib/zutil.c', |
scroggo | 3da9181 | 2015-03-02 06:24:15 -0800 | [diff] [blame] | 48 | ], |
| 49 | 'include_dirs': [ |
| 50 | '../third_party/externals/zlib/', |
| 51 | ], |
| 52 | 'direct_dependent_settings': { |
| 53 | 'include_dirs': [ |
| 54 | '../third_party/externals/zlib', |
| 55 | ], |
| 56 | }, |
scroggo | 3da9181 | 2015-03-02 06:24:15 -0800 | [diff] [blame] | 57 | 'defines': [ |
| 58 | '_CRT_NONSTDC_NO_DEPRECATE', |
| 59 | ], |
| 60 | }], |
| 61 | ], |
mtklein | 1e4e814 | 2015-02-17 13:10:43 -0800 | [diff] [blame] | 62 | }], |
vandebo@chromium.org | 0f1c95c | 2011-06-24 23:13:47 +0000 | [diff] [blame] | 63 | } |