vandebo@chromium.org | 0f1c95c | 2011-06-24 23:13:47 +0000 | [diff] [blame] | 1 | { |
vandebo@chromium.org | 0f1c95c | 2011-06-24 23:13:47 +0000 | [diff] [blame] | 2 | '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.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 16 | [ 'skia_os == "mac"', { |
vandebo@chromium.org | 0f1c95c | 2011-06-24 23:13:47 +0000 | [diff] [blame] | 17 | 'link_settings': { |
| 18 | 'libraries': [ |
| 19 | '$(SDKROOT)/usr/lib/libz.dylib', |
| 20 | ], |
| 21 | }, |
| 22 | 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ], |
| 23 | }], |
caryclark@google.com | 594dd3c | 2012-09-24 19:33:57 +0000 | [diff] [blame] | 24 | [ 'skia_os == "ios"', { |
| 25 | 'link_settings': { |
| 26 | 'libraries': [ |
bsalomon@google.com | 4663822 | 2012-10-04 12:52:03 +0000 | [diff] [blame] | 27 | '$(SDKROOT)/usr/lib/libz.dylib', |
caryclark@google.com | 594dd3c | 2012-09-24 19:33:57 +0000 | [diff] [blame] | 28 | ], |
| 29 | }, |
| 30 | 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ], |
| 31 | }], |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 32 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android", "nacl"]', { |
vandebo@chromium.org | 0f1c95c | 2011-06-24 23:13:47 +0000 | [diff] [blame] | 33 | '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: |