blob: 7d322a6287c8ac544c1d63346d63351caff83c6e [file] [log] [blame]
epoger@google.comc576e192011-05-31 19:02:37 +00001# Core Skia library code.
bsalomon@google.com23b72aa2011-03-21 13:34:23 +00002{
bsalomon@google.com23b72aa2011-03-21 13:34:23 +00003 'targets': [
4 {
epoger@google.comc576e192011-05-31 19:02:37 +00005 'target_name': 'core',
borenet@google.com0dcb15d2012-10-10 19:45:51 +00006 'product_name': 'skia_core',
bsalomon@google.com23b72aa2011-03-21 13:34:23 +00007 'type': 'static_library',
borenet@google.com0dcb15d2012-10-10 19:45:51 +00008 'standalone_static_library': 1,
bsalomon@google.com23b72aa2011-03-21 13:34:23 +00009 'msvs_guid': 'B7760B5E-BFA8-486B-ACFD-49E3A6DE8E76',
bsalomon@google.com23b72aa2011-03-21 13:34:23 +000010
reed@google.comfa564472012-08-08 20:39:17 +000011 'includes': [
12 'core.gypi',
bsalomon@google.com23b72aa2011-03-21 13:34:23 +000013 ],
reed@google.comfa564472012-08-08 20:39:17 +000014
bsalomon@google.com23b72aa2011-03-21 13:34:23 +000015 'include_dirs': [
16 '../include/config',
17 '../include/core',
scroggo@google.comc7206742013-02-22 21:38:35 +000018 '../include/lazy',
caryclark@google.com092bb7d2013-04-25 13:34:40 +000019 '../include/pathops',
scroggo@google.com2b1534d2012-06-04 17:17:36 +000020 '../include/pipe',
bsalomon@google.com23b72aa2011-03-21 13:34:23 +000021 '../include/ports',
humper@google.com72288f42013-01-14 18:49:19 +000022 '../include/utils',
bsalomon@google.com23b72aa2011-03-21 13:34:23 +000023 '../include/xml',
24 '../src/core',
reed@google.com7195e262012-08-28 12:19:02 +000025 '../src/image',
bsalomon@google.com23b72aa2011-03-21 13:34:23 +000026 ],
bsalomon@google.com8f7b7562012-09-04 14:37:12 +000027 'sources': [
28 'core.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
29 ],
bsalomon@google.com23b72aa2011-03-21 13:34:23 +000030 'msvs_disabled_warnings': [4244, 4267,4345, 4390, 4554, 4800],
31 'conditions': [
borenet@google.com881ed1e2013-06-11 15:52:19 +000032 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
bsalomon@google.com23b72aa2011-03-21 13:34:23 +000033 'link_settings': {
34 'libraries': [
senorblanco@chromium.org25910712011-03-25 17:41:34 +000035 '-lpthread',
bsalomon@google.com23b72aa2011-03-21 13:34:23 +000036 ],
bsalomon@google.comf5b60542011-03-21 19:51:57 +000037 },
bsalomon@google.com23b72aa2011-03-21 13:34:23 +000038 }],
epoger@google.com95185842011-07-01 20:20:07 +000039 [ 'skia_os == "mac"', {
bsalomon@google.com23b72aa2011-03-21 13:34:23 +000040 'include_dirs': [
41 '../include/utils/mac',
42 ],
43 'sources': [
bsalomon@google.com23b72aa2011-03-21 13:34:23 +000044 '../include/utils/mac/SkCGUtils.h',
bsalomon@google.com23b72aa2011-03-21 13:34:23 +000045 ],
epoger@google.com61778592011-06-02 19:52:14 +000046 'link_settings': {
47 'libraries': [
yangsu@google.com082ab1e2011-06-21 13:09:32 +000048 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
epoger@google.com61778592011-06-02 19:52:14 +000049 ],
50 },
bsalomon@google.com23b72aa2011-03-21 13:34:23 +000051 }],
epoger@google.com234df452011-07-01 21:01:32 +000052 [ 'skia_os == "ios"', {
53 'include_dirs': [
54 '../include/utils/ios',
55 ],
56 'sources': [
epoger@google.com234df452011-07-01 21:01:32 +000057 '../include/utils/mac/SkCGUtils.h',
epoger@google.com234df452011-07-01 21:01:32 +000058 ],
59 'link_settings': {
60 'libraries': [
bsalomon@google.com44e60602012-10-04 12:52:03 +000061 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
62 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
63 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
64 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
65 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
66 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
67 '$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework',
68 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
69 '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
epoger@google.com234df452011-07-01 21:01:32 +000070 ],
71 },
72 }],
epoger@google.com95185842011-07-01 20:20:07 +000073 [ 'skia_os == "win"', {
bsalomon@google.com23b72aa2011-03-21 13:34:23 +000074 'include_dirs': [
75 'config/win',
76 ],
senorblanco@chromium.orgdd84b662011-05-04 18:59:38 +000077 }],
djsollen@google.com25077962013-06-03 12:10:19 +000078 [ 'skia_os == "android"', {
79 'sources': [
80 '../src/core/SkPaintOptionsAndroid.cpp',
81 ],
djsollen@google.coma22c9a62013-08-05 13:38:28 +000082 'dependencies': [
83 'android_deps.gyp:cpu_features',
84 ],
djsollen@google.com25077962013-06-03 12:10:19 +000085 }],
djsollen@google.coma22c9a62013-08-05 13:38:28 +000086 [ 'skia_arch_type == "arm"', {
digit@google.comb18f85e2012-05-30 13:54:41 +000087 # The code in SkUtilsArm.cpp can be used on an ARM-based Linux system, not only Android.
88 'sources': [
89 '../src/core/SkUtilsArm.cpp',
digit@google.comf06bf652012-08-01 15:58:41 +000090 '../src/core/SkUtilsArm.h',
digit@google.comb18f85e2012-05-30 13:54:41 +000091 ],
92 }],
bsalomon@google.com032ca782013-01-14 16:46:26 +000093 ['skia_gpu == 1', {
94 'include_dirs': [
95 '../include/gpu',
96 '../src/gpu',
97 ],
98 }],
bsalomon@google.com23b72aa2011-03-21 13:34:23 +000099 ],
100 'direct_dependent_settings': {
101 'include_dirs': [
102 'config',
103 '../include/config',
104 '../include/core',
scroggo@google.comc7206742013-02-22 21:38:35 +0000105 '../include/lazy',
caryclark@google.com092bb7d2013-04-25 13:34:40 +0000106 '../include/pathops',
scroggo@google.com2b1534d2012-06-04 17:17:36 +0000107 '../include/pipe',
bsalomon@google.com23b72aa2011-03-21 13:34:23 +0000108 'ext',
109 ],
borenet@google.com0dcb15d2012-10-10 19:45:51 +0000110 'conditions': [
111 [ 'skia_os == "mac"', {
112 'include_dirs': [
113 '../include/utils/mac',
borenet@google.com0dcb15d2012-10-10 19:45:51 +0000114 ],
115 }],
116 [ 'skia_os == "ios"', {
117 'include_dirs': [
118 '../include/utils/ios',
119 ],
120 }],
121 [ 'skia_os == "win"', {
122 'include_dirs': [
123 'config/win',
124 ],
125 }],
126 ],
bsalomon@google.com23b72aa2011-03-21 13:34:23 +0000127 },
bsalomon@google.com23b72aa2011-03-21 13:34:23 +0000128 },
bsalomon@google.com23b72aa2011-03-21 13:34:23 +0000129 ],
130}
131
132# Local Variables:
133# tab-width:2
134# indent-tabs-mode:nil
135# End:
136# vim: set expandtab tabstop=2 shiftwidth=2: