blob: 479e67391b7f2d1902a883efcaac4ff1dd74d41f [file] [log] [blame]
epoger@google.com51c078b2011-05-31 19:02:37 +00001# Core Skia library code.
bsalomon@google.coma9681db2011-03-21 13:34:23 +00002{
bsalomon@google.coma9681db2011-03-21 13:34:23 +00003 'targets': [
4 {
epoger@google.com51c078b2011-05-31 19:02:37 +00005 'target_name': 'core',
borenet@google.comefb1d772012-10-10 19:45:51 +00006 'product_name': 'skia_core',
bsalomon@google.coma9681db2011-03-21 13:34:23 +00007 'type': 'static_library',
borenet@google.comefb1d772012-10-10 19:45:51 +00008 'standalone_static_library': 1,
bsalomon@google.coma9681db2011-03-21 13:34:23 +00009 'msvs_guid': 'B7760B5E-BFA8-486B-ACFD-49E3A6DE8E76',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000010
reed@google.combaa5d942012-08-08 20:39:17 +000011 'includes': [
12 'core.gypi',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000013 ],
reed@google.combaa5d942012-08-08 20:39:17 +000014
bsalomon@google.coma9681db2011-03-21 13:34:23 +000015 'include_dirs': [
16 '../include/config',
17 '../include/core',
scroggo@google.comf8d7d272013-02-22 21:38:35 +000018 '../include/lazy',
scroggo@google.com5af9b202012-06-04 17:17:36 +000019 '../include/pipe',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000020 '../include/ports',
humper@google.com7af56be2013-01-14 18:49:19 +000021 '../include/utils',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000022 '../include/xml',
23 '../src/core',
reed@google.com97af1a62012-08-28 12:19:02 +000024 '../src/image',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000025 ],
bsalomon@google.com202a51b2012-09-04 14:37:12 +000026 'sources': [
27 'core.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
28 ],
bsalomon@google.coma9681db2011-03-21 13:34:23 +000029 'msvs_disabled_warnings': [4244, 4267,4345, 4390, 4554, 4800],
30 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000031 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
bsalomon@google.coma9681db2011-03-21 13:34:23 +000032 'cflags': [
33 '-Wno-unused',
34 '-Wno-unused-function',
35 ],
bsalomon@google.coma9681db2011-03-21 13:34:23 +000036 'link_settings': {
37 'libraries': [
senorblanco@chromium.org7eb492e2011-03-25 17:41:34 +000038 '-lpthread',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000039 ],
bsalomon@google.com91826102011-03-21 19:51:57 +000040 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +000041 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000042 [ 'skia_os == "mac"', {
bsalomon@google.coma9681db2011-03-21 13:34:23 +000043 'include_dirs': [
44 '../include/utils/mac',
reed@google.com830a23e2011-11-10 15:20:49 +000045 '../third_party/freetype/include/**',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000046 ],
47 'sources': [
bsalomon@google.coma9681db2011-03-21 13:34:23 +000048 '../include/utils/mac/SkCGUtils.h',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000049 ],
epoger@google.com0a030cd2011-06-02 19:52:14 +000050 'link_settings': {
51 'libraries': [
yangsu@google.comccb74ea2011-06-21 13:09:32 +000052 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
epoger@google.com0a030cd2011-06-02 19:52:14 +000053 ],
54 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +000055 }],
epoger@google.comea5dfa82011-07-01 21:01:32 +000056 [ 'skia_os == "ios"', {
57 'include_dirs': [
58 '../include/utils/ios',
59 ],
60 'sources': [
epoger@google.comea5dfa82011-07-01 21:01:32 +000061 '../include/utils/mac/SkCGUtils.h',
epoger@google.comea5dfa82011-07-01 21:01:32 +000062 ],
63 'link_settings': {
64 'libraries': [
bsalomon@google.com46638222012-10-04 12:52:03 +000065 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
66 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
67 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
68 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
69 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
70 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
71 '$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework',
72 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
73 '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
epoger@google.comea5dfa82011-07-01 21:01:32 +000074 ],
75 },
76 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000077 [ 'skia_os == "win"', {
bsalomon@google.coma9681db2011-03-21 13:34:23 +000078 'include_dirs': [
79 'config/win',
80 ],
djsollen@google.com62b24b12011-12-15 16:16:22 +000081 'sources!': [
82 '../include/core/SkMMapStream.h',
83 '../src/core/SkMMapStream.cpp',
84 ],
senorblanco@chromium.orgc1587e02011-05-04 18:59:38 +000085 }],
borenet@google.com327b9b22013-03-07 15:33:28 +000086 [ 'skia_os in ("android", "nacl")', {
djsollen@google.com58629292011-11-03 13:08:29 +000087 'dependencies': [
borenet@google.com327b9b22013-03-07 15:33:28 +000088 'freetype.gyp:freetype',
djsollen@google.com58629292011-11-03 13:08:29 +000089 ],
digit@google.comeec9dbc2012-05-30 13:54:41 +000090 }],
djsollen@google.come341cb32012-06-28 16:08:05 +000091 [ 'skia_os == "android" and skia_arch_type == "arm" and armv7 == 1', {
digit@google.comeec9dbc2012-05-30 13:54:41 +000092 # The code in SkUtilsArm.cpp can be used on an ARM-based Linux system, not only Android.
93 'sources': [
94 '../src/core/SkUtilsArm.cpp',
digit@google.comfbf31942012-08-01 15:58:41 +000095 '../src/core/SkUtilsArm.h',
digit@google.comeec9dbc2012-05-30 13:54:41 +000096 ],
97 }],
bsalomon@google.come197cbf2013-01-14 16:46:26 +000098 ['skia_gpu == 1', {
99 'include_dirs': [
100 '../include/gpu',
101 '../src/gpu',
102 ],
103 }],
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000104 ],
105 'direct_dependent_settings': {
106 'include_dirs': [
107 'config',
108 '../include/config',
109 '../include/core',
scroggo@google.comf8d7d272013-02-22 21:38:35 +0000110 '../include/lazy',
scroggo@google.com5af9b202012-06-04 17:17:36 +0000111 '../include/pipe',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000112 'ext',
113 ],
borenet@google.comefb1d772012-10-10 19:45:51 +0000114 'conditions': [
115 [ 'skia_os == "mac"', {
116 'include_dirs': [
117 '../include/utils/mac',
118 '../third_party/freetype/include/**',
119 ],
120 }],
121 [ 'skia_os == "ios"', {
122 'include_dirs': [
123 '../include/utils/ios',
124 ],
125 }],
126 [ 'skia_os == "win"', {
127 'include_dirs': [
128 'config/win',
129 ],
130 }],
131 ],
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000132 },
bungeman@google.com5a64e582012-03-29 14:51:56 +0000133 'dependencies': [
134 'opts.gyp:opts'
135 ],
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000136 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000137 ],
138}
139
140# Local Variables:
141# tab-width:2
142# indent-tabs-mode:nil
143# End:
144# vim: set expandtab tabstop=2 shiftwidth=2: