| OLD | NEW |
| (Empty) |
| 1 # Target for including zlib. | |
| 2 { | |
| 3 'targets': [ | |
| 4 { | |
| 5 'target_name': 'zlib', | |
| 6 'type': 'static_library', | |
| 7 'dependencies': [ | |
| 8 'skia_lib.gyp:skia_lib', | |
| 9 ], | |
| 10 'sources': [ | |
| 11 '../include/core/SkFlate.h', | |
| 12 | |
| 13 '../src/core/SkFlate.cpp', | |
| 14 ], | |
| 15 'conditions': [ | |
| 16 [ 'skia_os == "mac"', { | |
| 17 'link_settings': { | |
| 18 'libraries': [ | |
| 19 '$(SDKROOT)/usr/lib/libz.dylib', | |
| 20 ], | |
| 21 }, | |
| 22 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ], | |
| 23 }], | |
| 24 [ 'skia_os == "ios"', { | |
| 25 'link_settings': { | |
| 26 'libraries': [ | |
| 27 '$(SDKROOT)/usr/lib/libz.dylib', | |
| 28 ], | |
| 29 }, | |
| 30 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ], | |
| 31 }], | |
| 32 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android", "nac
l"]', { | |
| 33 'link_settings': { 'libraries': [ '-lz', ], }, | |
| 34 'conditions': [ | |
| 35 [ 'skia_android_framework==0', { | |
| 36 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ], | |
| 37 }], | |
| 38 ], | |
| 39 }], | |
| 40 [ 'skia_android_framework', { | |
| 41 'include_dirs': [ | |
| 42 'external/zlib', | |
| 43 ], | |
| 44 }], | |
| 45 ], | |
| 46 }, | |
| 47 ], | |
| 48 } | |
| OLD | NEW |