1 { 2 'targets': [ 3 { 4 'target_name': 'zlib', 5 'type': 'static_library', 6 'dependencies': [ 7 'skia_lib.gyp:skia_lib', 8 ], 9 'sources': [ 10 '../include/core/SkFlate.h', 11 12 '../src/core/SkFlate.cpp', 13 ], 14 'conditions': [ 15 [ 'skia_os == "mac"', { 16 'link_settings': { 17 'libraries': [ 18 '$(SDKROOT)/usr/lib/libz.dylib', 19 ], 20 }, 21 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ], 22 }], 23 [ 'skia_os == "ios"', { 24 'link_settings': { 25 'libraries': [ 26 '$(SDKROOT)/usr/lib/libz.dylib', 27 ], 28 }, 29 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ], 30 }], 31 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android", "nacl"]', { 32 'link_settings': { 'libraries': [ '-lz', ], }, 33 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ], 34 }], 35 ], 36 }, 37 ], 38 } 39 40 # Local Variables: 41 # tab-width:2 42 # indent-tabs-mode:nil 43 # End: 44 # vim: set expandtab tabstop=2 shiftwidth=2: 45