blob: 14eda4bd3ce42f916c035df9cbe34ccf61ca4afd [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',
caryclark@google.com45a75fb2013-04-25 13:34:40 +000019 '../include/pathops',
scroggo@google.com5af9b202012-06-04 17:17:36 +000020 '../include/pipe',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000021 '../include/ports',
humper@google.com7af56be2013-01-14 18:49:19 +000022 '../include/utils',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000023 '../include/xml',
24 '../src/core',
reed@google.com97af1a62012-08-28 12:19:02 +000025 '../src/image',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000026 ],
bsalomon@google.com202a51b2012-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.coma9681db2011-03-21 13:34:23 +000030 'msvs_disabled_warnings': [4244, 4267,4345, 4390, 4554, 4800],
31 'conditions': [
borenet@google.com05d550e2013-06-11 15:52:19 +000032 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
bsalomon@google.coma9681db2011-03-21 13:34:23 +000033 'link_settings': {
34 'libraries': [
senorblanco@chromium.org7eb492e2011-03-25 17:41:34 +000035 '-lpthread',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000036 ],
bsalomon@google.com91826102011-03-21 19:51:57 +000037 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +000038 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000039 [ 'skia_os == "mac"', {
bsalomon@google.coma9681db2011-03-21 13:34:23 +000040 'include_dirs': [
41 '../include/utils/mac',
42 ],
43 'sources': [
bsalomon@google.coma9681db2011-03-21 13:34:23 +000044 '../include/utils/mac/SkCGUtils.h',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000045 ],
epoger@google.com0a030cd2011-06-02 19:52:14 +000046 'link_settings': {
47 'libraries': [
yangsu@google.comccb74ea2011-06-21 13:09:32 +000048 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
epoger@google.com0a030cd2011-06-02 19:52:14 +000049 ],
50 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +000051 }],
epoger@google.comea5dfa82011-07-01 21:01:32 +000052 [ 'skia_os == "ios"', {
53 'include_dirs': [
54 '../include/utils/ios',
55 ],
56 'sources': [
epoger@google.comea5dfa82011-07-01 21:01:32 +000057 '../include/utils/mac/SkCGUtils.h',
epoger@google.comea5dfa82011-07-01 21:01:32 +000058 ],
59 'link_settings': {
60 'libraries': [
bsalomon@google.com46638222012-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.comea5dfa82011-07-01 21:01:32 +000070 ],
71 },
72 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000073 [ 'skia_os == "win"', {
bsalomon@google.coma9681db2011-03-21 13:34:23 +000074 'include_dirs': [
75 'config/win',
76 ],
senorblanco@chromium.orgc1587e02011-05-04 18:59:38 +000077 }],
djsollen@google.com52f02972013-06-03 12:10:19 +000078 [ 'skia_os == "android"', {
79 'sources': [
80 '../src/core/SkPaintOptionsAndroid.cpp',
81 ],
82 }],
djsollen@google.comf7542ba2013-07-31 12:57:27 +000083 [ 'skia_os == "android" and skia_arch_type == "arm"', {
digit@google.comeec9dbc2012-05-30 13:54:41 +000084 # The code in SkUtilsArm.cpp can be used on an ARM-based Linux system, not only Android.
85 'sources': [
commit-bot@chromium.orgc7a20e42013-05-13 14:09:13 +000086 '../src/core/SkPaintOptionsAndroid.cpp',
digit@google.comeec9dbc2012-05-30 13:54:41 +000087 '../src/core/SkUtilsArm.cpp',
digit@google.comfbf31942012-08-01 15:58:41 +000088 '../src/core/SkUtilsArm.h',
digit@google.comeec9dbc2012-05-30 13:54:41 +000089 ],
90 }],
bsalomon@google.come197cbf2013-01-14 16:46:26 +000091 ['skia_gpu == 1', {
92 'include_dirs': [
93 '../include/gpu',
94 '../src/gpu',
95 ],
96 }],
bsalomon@google.coma9681db2011-03-21 13:34:23 +000097 ],
98 'direct_dependent_settings': {
99 'include_dirs': [
100 'config',
101 '../include/config',
102 '../include/core',
scroggo@google.comf8d7d272013-02-22 21:38:35 +0000103 '../include/lazy',
caryclark@google.com45a75fb2013-04-25 13:34:40 +0000104 '../include/pathops',
scroggo@google.com5af9b202012-06-04 17:17:36 +0000105 '../include/pipe',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000106 'ext',
107 ],
borenet@google.comefb1d772012-10-10 19:45:51 +0000108 'conditions': [
109 [ 'skia_os == "mac"', {
110 'include_dirs': [
111 '../include/utils/mac',
borenet@google.comefb1d772012-10-10 19:45:51 +0000112 ],
113 }],
114 [ 'skia_os == "ios"', {
115 'include_dirs': [
116 '../include/utils/ios',
117 ],
118 }],
119 [ 'skia_os == "win"', {
120 'include_dirs': [
121 'config/win',
122 ],
123 }],
124 ],
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000125 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000126 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000127 ],
128}
129
130# Local Variables:
131# tab-width:2
132# indent-tabs-mode:nil
133# End:
134# vim: set expandtab tabstop=2 shiftwidth=2: