blob: 89d4470b3fb4c6667aaddbd90002974ed07c02b6 [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',
bungeman@google.comb8f36552013-07-22 14:39:45 +00006 'dependencies': [
7 'skia_lib.gyp:skia_lib',
vandebo@chromium.org0f1c95c2011-06-24 23:13:47 +00008 ],
9 'sources': [
10 '../include/core/SkFlate.h',
11
12 '../src/core/SkFlate.cpp',
13 ],
14 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000015 [ 'skia_os == "mac"', {
vandebo@chromium.org0f1c95c2011-06-24 23:13:47 +000016 'link_settings': {
17 'libraries': [
18 '$(SDKROOT)/usr/lib/libz.dylib',
19 ],
20 },
21 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ],
22 }],
caryclark@google.com594dd3c2012-09-24 19:33:57 +000023 [ 'skia_os == "ios"', {
24 'link_settings': {
25 'libraries': [
bsalomon@google.com46638222012-10-04 12:52:03 +000026 '$(SDKROOT)/usr/lib/libz.dylib',
caryclark@google.com594dd3c2012-09-24 19:33:57 +000027 ],
28 },
29 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ],
30 }],
borenet@google.com7158e6a2012-11-01 17:43:44 +000031 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android", "nacl"]', {
vandebo@chromium.org0f1c95c2011-06-24 23:13:47 +000032 'link_settings': { 'libraries': [ '-lz', ], },
33 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ],
34 }],
35 ],
36 },
37 ],
38}
39
40# Local Variables:
41# tab-width:2
42# indent-tabs-mode:nil
43# End:
44# vim: set expandtab tabstop=2 shiftwidth=2: