vandebo@chromium.org | 0f1c95c | 2011-06-24 23:13:47 +0000 | [diff] [blame] | 1 | { |
| 2 | 'includes': [ |
epoger@google.com | 5351b37 | 2011-07-01 17:16:26 +0000 | [diff] [blame] | 3 | 'common.gypi', |
vandebo@chromium.org | 0f1c95c | 2011-06-24 23:13:47 +0000 | [diff] [blame] | 4 | ], |
| 5 | 'targets': [ |
| 6 | { |
| 7 | 'target_name': 'zlib', |
| 8 | 'type': 'static_library', |
| 9 | 'include_dirs': [ |
| 10 | '../include/config', |
| 11 | '../include/core', |
| 12 | ], |
| 13 | 'sources': [ |
| 14 | '../include/core/SkFlate.h', |
| 15 | |
| 16 | '../src/core/SkFlate.cpp', |
| 17 | ], |
| 18 | 'conditions': [ |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 19 | [ 'skia_os == "mac"', { |
vandebo@chromium.org | 0f1c95c | 2011-06-24 23:13:47 +0000 | [diff] [blame] | 20 | 'link_settings': { |
| 21 | 'libraries': [ |
| 22 | '$(SDKROOT)/usr/lib/libz.dylib', |
| 23 | ], |
| 24 | }, |
| 25 | 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ], |
| 26 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 27 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { |
vandebo@chromium.org | 0f1c95c | 2011-06-24 23:13:47 +0000 | [diff] [blame] | 28 | 'link_settings': { 'libraries': [ '-lz', ], }, |
| 29 | 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ], |
| 30 | }], |
| 31 | ], |
| 32 | }, |
| 33 | ], |
| 34 | } |
| 35 | |
| 36 | # Local Variables: |
| 37 | # tab-width:2 |
| 38 | # indent-tabs-mode:nil |
| 39 | # End: |
| 40 | # vim: set expandtab tabstop=2 shiftwidth=2: |