blob: fcd0ac3b40f01752bced6a9439a99e52dfe4e092 [file] [log] [blame]
vandebo@chromium.org0f1c95c2011-06-24 23:13:47 +00001{
vandebo@chromium.org0f1c95c2011-06-24 23:13:47 +00002 'targets': [
3 {
4 'target_name': 'zlib',
5 'type': 'static_library',
6 'include_dirs': [
7 '../include/config',
8 '../include/core',
9 ],
10 'sources': [
11 '../include/core/SkFlate.h',
12
13 '../src/core/SkFlate.cpp',
14 ],
15 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000016 [ 'skia_os == "mac"', {
vandebo@chromium.org0f1c95c2011-06-24 23:13:47 +000017 'link_settings': {
18 'libraries': [
19 '$(SDKROOT)/usr/lib/libz.dylib',
20 ],
21 },
22 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ],
23 }],
caryclark@google.com594dd3c2012-09-24 19:33:57 +000024 [ 'skia_os == "ios"', {
25 'link_settings': {
26 'libraries': [
bsalomon@google.com46638222012-10-04 12:52:03 +000027 '$(SDKROOT)/usr/lib/libz.dylib',
caryclark@google.com594dd3c2012-09-24 19:33:57 +000028 ],
29 },
30 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ],
31 }],
borenet@google.com7158e6a2012-11-01 17:43:44 +000032 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android", "nacl"]', {
vandebo@chromium.org0f1c95c2011-06-24 23:13:47 +000033 'link_settings': { 'libraries': [ '-lz', ], },
34 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ],
35 }],
36 ],
37 },
38 ],
39}
40
41# Local Variables:
42# tab-width:2
43# indent-tabs-mode:nil
44# End:
45# vim: set expandtab tabstop=2 shiftwidth=2: