skia2/gyp/zlib.gyp
scroggo@google.com d4adfa37fb Reland "Gyp file changes for the android framework."
Relands https://codereview.chromium.org/153093003/, which was reverted
with https://skia.googlesource.com/skia.git/+/eb6295044b97db05ec40625dcebc2459b2a38a98

This reverts commit 6b32be1402eb6c549d5ba1db71860e24f9de2991.

BUG=skia:1975
R=djsollen@google.com

Review URL: https://codereview.chromium.org/154053002

git-svn-id: http://skia.googlecode.com/svn/trunk@13321 2bbb7eff-a529-9590-31e7-b0007b416f81
2014-02-05 16:35:12 +00:00

49 lines
1.2 KiB
Python

# Target for including zlib.
{
'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', ], },
'conditions': [
[ 'skia_android_framework==0', {
'defines': [ 'SK_ZLIB_INCLUDE=<zlib.h>', ],
}],
],
}],
[ 'skia_android_framework', {
'include_dirs': [
'external/zlib',
],
}],
],
},
],
}