2011-06-24 23:13:47 +00:00
|
|
|
{
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'zlib',
|
|
|
|
'type': 'static_library',
|
2013-07-22 14:39:45 +00:00
|
|
|
'dependencies': [
|
|
|
|
'skia_lib.gyp:skia_lib',
|
2011-06-24 23:13:47 +00:00
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'../include/core/SkFlate.h',
|
|
|
|
|
|
|
|
'../src/core/SkFlate.cpp',
|
|
|
|
],
|
|
|
|
'conditions': [
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os == "mac"', {
|
2011-06-24 23:13:47 +00:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'$(SDKROOT)/usr/lib/libz.dylib',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ],
|
|
|
|
}],
|
2012-09-24 19:33:57 +00:00
|
|
|
[ 'skia_os == "ios"', {
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
2012-10-04 12:52:03 +00:00
|
|
|
'$(SDKROOT)/usr/lib/libz.dylib',
|
2012-09-24 19:33:57 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ],
|
|
|
|
}],
|
2012-11-01 17:43:44 +00:00
|
|
|
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android", "nacl"]', {
|
2011-06-24 23:13:47 +00:00
|
|
|
'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:
|