diff options
Diffstat (limited to 'zlib.gyp')
-rw-r--r-- | zlib.gyp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/zlib.gyp b/zlib.gyp new file mode 100644 index 0000000..89d4470 --- /dev/null +++ b/zlib.gyp @@ -0,0 +1,44 @@ +{ + 'targets': [ + { + 'target_name': 'zlib', + 'type': 'static_library', + 'dependencies': [ + 'skia_lib.gyp:skia_lib', + ], + 'sources': [ + '../include/core/SkFlate.h', + + '../src/core/SkFlate.cpp', + ], + 'conditions': [ + [ 'skia_os == "mac"', { + 'link_settings': { + 'libraries': [ + '$(SDKROOT)/usr/lib/libz.dylib', + ], + }, + 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ], + }], + [ 'skia_os == "ios"', { + 'link_settings': { + 'libraries': [ + '$(SDKROOT)/usr/lib/libz.dylib', + ], + }, + 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ], + }], + [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android", "nacl"]', { + 'link_settings': { 'libraries': [ '-lz', ], }, + 'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ], + }], + ], + }, + ], +} + +# Local Variables: +# tab-width:2 +# indent-tabs-mode:nil +# End: +# vim: set expandtab tabstop=2 shiftwidth=2: |