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 | }], |
djsollen@google.com | 6ff8255 | 2011-11-07 15:43:57 +0000 | [diff] [blame] | 24 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android"]', { |
vandebo@chromium.org | 0f1c95c | 2011-06-24 23:13:47 +0000 | [diff] [blame] | 25 | 'link_settings': { 'libraries': [ '-lz', ], }, |
| 26 | 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ], |
| 27 | }], |
| 28 | ], |
| 29 | }, |
| 30 | ], |
| 31 | } |
| 32 | |
| 33 | # Local Variables: |
| 34 | # tab-width:2 |
| 35 | # indent-tabs-mode:nil |
| 36 | # End: |
| 37 | # vim: set expandtab tabstop=2 shiftwidth=2: |