blob: 5068803552f6e9f45184e90ea2f8668aa94715b6 [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',
halcanary3d5942e2016-05-23 14:02:54 -070022 'variables': {
23 'skia_zlib_flags' : [
24 '-Wno-unused-value',
25 '-Wno-shift-negative-value',
halcanary910fff42016-05-24 05:23:52 -070026 '-Wno-unknown-warning-option',
halcanary3d5942e2016-05-23 14:02:54 -070027 ],
28 },
29 'cflags': [ '<@(skia_zlib_flags)' ],
30 'xcode_settings': { 'WARNING_CFLAGS': [ '<@(skia_zlib_flags)' ], },
scroggo3da91812015-03-02 06:24:15 -080031 'sources': [
32 '../third_party/externals/zlib/adler32.c',
33 '../third_party/externals/zlib/compress.c',
34 '../third_party/externals/zlib/crc32.c',
scroggo3da91812015-03-02 06:24:15 -080035 '../third_party/externals/zlib/deflate.c',
scroggo3da91812015-03-02 06:24:15 -080036 '../third_party/externals/zlib/gzclose.c',
scroggo3da91812015-03-02 06:24:15 -080037 '../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',
scroggo3da91812015-03-02 06:24:15 -080042 '../third_party/externals/zlib/inflate.c',
scroggo3da91812015-03-02 06:24:15 -080043 '../third_party/externals/zlib/inftrees.c',
mtklein84b8d892016-02-03 07:06:27 -080044 '../third_party/externals/zlib/simd_stub.c',
scroggo3da91812015-03-02 06:24:15 -080045 '../third_party/externals/zlib/trees.c',
scroggo3da91812015-03-02 06:24:15 -080046 '../third_party/externals/zlib/uncompr.c',
scroggo3da91812015-03-02 06:24:15 -080047 '../third_party/externals/zlib/zutil.c',
scroggo3da91812015-03-02 06:24:15 -080048 ],
49 'include_dirs': [
50 '../third_party/externals/zlib/',
51 ],
52 'direct_dependent_settings': {
53 'include_dirs': [
54 '../third_party/externals/zlib',
55 ],
56 },
scroggo3da91812015-03-02 06:24:15 -080057 'defines': [
58 '_CRT_NONSTDC_NO_DEPRECATE',
59 ],
60 }],
61 ],
mtklein1e4e8142015-02-17 13:10:43 -080062 }],
vandebo@chromium.org0f1c95c2011-06-24 23:13:47 +000063}