skia2/gyp/core.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

131 lines
3.7 KiB
Python

# Core Skia library code.
{
'targets': [
{
'target_name': 'core',
'product_name': 'skia_core',
'type': 'static_library',
'standalone_static_library': 1,
'msvs_guid': 'B7760B5E-BFA8-486B-ACFD-49E3A6DE8E76',
'includes': [
'core.gypi',
],
'include_dirs': [
'../include/config',
'../include/core',
'../include/pathops',
'../include/pipe',
'../include/ports',
'../include/utils',
'../include/xml',
'../src/core',
'../src/opts',
'../src/image',
],
'sources': [
'core.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
],
'msvs_disabled_warnings': [4244, 4267,4345, 4390, 4554, 4800],
'conditions': [
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
'link_settings': {
'libraries': [
'-lpthread',
],
},
}],
[ 'skia_os == "mac"', {
'include_dirs': [
'../include/utils/mac',
],
'sources': [
'../include/utils/mac/SkCGUtils.h',
],
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
],
},
}],
[ 'skia_os == "ios"', {
'include_dirs': [
'../include/utils/ios',
],
'sources': [
'../include/utils/mac/SkCGUtils.h',
],
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
'$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
'$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
'$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
'$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
'$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
'$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework',
'$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
'$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
],
},
}],
[ 'skia_os == "win"', {
'include_dirs': [
'config/win',
],
}],
[ 'skia_os == "android"', {
'dependencies': [
'android_deps.gyp:cpu_features',
],
}],
[ 'skia_android_framework', {
'libraries': [
# Required for SkAtomics_android.h
'-lcutils',
],
}],
[ 'skia_arch_type == "arm"', {
# The code in SkUtilsArm.cpp can be used on an ARM-based Linux system, not only Android.
'sources': [
'../src/core/SkUtilsArm.cpp',
'../src/core/SkUtilsArm.h',
],
}],
['skia_gpu == 1', {
'include_dirs': [
'../include/gpu',
'../src/gpu',
],
}],
],
'direct_dependent_settings': {
'include_dirs': [
'../include/config',
'../include/core',
'../include/pathops',
'../include/pipe',
],
'conditions': [
[ 'skia_os == "mac"', {
'include_dirs': [
'../include/utils/mac',
],
}],
[ 'skia_os == "ios"', {
'include_dirs': [
'../include/utils/ios',
],
}],
[ 'skia_os == "win"', {
'include_dirs': [
'config/win',
],
}],
],
},
},
],
}