OLD | NEW |
---|---|
(Empty) | |
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 'conditions': [ | |
8 ['skia_zlib_static', { | |
9 'variables': { | |
10 'skia_warnings_as_errors': 0, | |
11 }, | |
12 'targets': [ | |
13 { | |
14 'target_name': 'libzlib', | |
15 'type': 'static_library', | |
16 'defines': [ | |
17 ], | |
18 'include_dirs': [ | |
19 '../third_party/externals/zlib', | |
20 ], | |
21 'direct_dependent_settings': { | |
22 'defines': [ | |
23 'SK_ZLIB_INCLUDE=<zlib.h>', | |
24 ], | |
25 'include_dirs': [ | |
26 '../third_party/externals/zlib', | |
27 ], | |
28 }, | |
29 'cflags': [ | |
30 ], | |
31 'link_settings': { | |
32 }, | |
33 'sources': [ | |
34 '../third_party/externals/zlib/adler32.c', | |
35 '../third_party/externals/zlib/compress.c', | |
36 '../third_party/externals/zlib/crc32.c', | |
37 '../third_party/externals/zlib/deflate.c', | |
38 '../third_party/externals/zlib/gzclose.c', | |
39 '../third_party/externals/zlib/gzlib.c', | |
40 '../third_party/externals/zlib/gzread.c', | |
41 '../third_party/externals/zlib/gzwrite.c', | |
42 '../third_party/externals/zlib/infback.c', | |
43 '../third_party/externals/zlib/inffast.c', | |
44 '../third_party/externals/zlib/inflate.c', | |
45 '../third_party/externals/zlib/inftrees.c', | |
46 '../third_party/externals/zlib/trees.c', | |
47 '../third_party/externals/zlib/uncompr.c', | |
48 '../third_party/externals/zlib/zutil.c', | |
49 ], | |
50 } | |
51 ] | |
52 }, { | |
53 'targets': [ | |
54 { | |
55 'target_name': 'libzlib', | |
56 'type': 'none', | |
57 'dependencies': [ | |
58 ], | |
59 'export_dependent_settings': [ | |
scroggo
2014/02/06 16:22:13
This file has many empty lists. I don't think they
hal.canary
2014/02/06 18:01:57
Done.
| |
60 ], | |
61 'direct_dependent_settings': { | |
62 'conditions': [ | |
63 [ 'skia_android_framework', { | |
64 'include_dirs': [ | |
65 'external/zlib', | |
66 ], | |
67 }, { | |
68 'defines': [ | |
69 'SK_ZLIB_INCLUDE=<zlib.h>', | |
70 ], | |
71 }] | |
72 ], | |
73 'link_settings': { | |
74 'conditions': [ | |
75 [ 'skia_os == "mac" or skia_os == "ios"', { | |
76 'libraries': [ | |
77 '$(SDKROOT)/usr/lib/libz.dylib', | |
78 ] | |
79 }, { | |
80 'libraries': [ | |
81 '-lz', | |
82 ] | |
83 }], | |
84 ], | |
85 } | |
86 }, | |
87 }, | |
88 ], | |
89 }] | |
90 ] | |
91 } | |
OLD | NEW |