1 { 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': [ 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", "nacl"]', { 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: 46