• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
6{
7  'variables': {
8    'skia_warnings_as_errors': 0,
9  },
10  'targets': [
11  {
12      'target_name': 'zlib',
13      'conditions': [
14        [ 'skia_android_framework', {
15          'type': 'none',
16          'direct_dependent_settings': {
17              'include_dirs': [ 'external/zlib' ],
18              'link_settings': { 'libraries': [ '-lz' ] },
19          },
20        }, {
21          'type': 'static_library',
22          'cflags': [ '-w' ],
23          'sources': [
24            '../third_party/externals/zlib/adler32.c',
25            '../third_party/externals/zlib/compress.c',
26            '../third_party/externals/zlib/crc32.c',
27            '../third_party/externals/zlib/deflate.c',
28            '../third_party/externals/zlib/gzclose.c',
29            '../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',
34            '../third_party/externals/zlib/inflate.c',
35            '../third_party/externals/zlib/inftrees.c',
36            '../third_party/externals/zlib/simd_stub.c',
37            '../third_party/externals/zlib/trees.c',
38            '../third_party/externals/zlib/uncompr.c',
39            '../third_party/externals/zlib/zutil.c',
40          ],
41          'include_dirs': [
42            '../third_party/externals/zlib/',
43          ],
44          'direct_dependent_settings': {
45            'include_dirs': [
46              '../third_party/externals/zlib',
47            ],
48          },
49          'defines': [
50            '_CRT_NONSTDC_NO_DEPRECATE',
51          ],
52        }],
53      ],
54  }],
55}
56