blob: 14b14b04fb9396a7e30d2c9e0be03835f891c41f [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.com5af9b202012-06-04 17:17:36 +000018 '../include/pipe',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000019 '../include/ports',
20 '../include/xml',
21 '../src/core',
reed@google.com97af1a62012-08-28 12:19:02 +000022 '../src/image',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000023 ],
bsalomon@google.com202a51b2012-09-04 14:37:12 +000024 'sources': [
25 'core.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
26 ],
bsalomon@google.coma9681db2011-03-21 13:34:23 +000027 'msvs_disabled_warnings': [4244, 4267,4345, 4390, 4554, 4800],
28 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000029 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
bsalomon@google.coma9681db2011-03-21 13:34:23 +000030 'cflags': [
31 '-Wno-unused',
32 '-Wno-unused-function',
33 ],
bsalomon@google.coma9681db2011-03-21 13:34:23 +000034 'link_settings': {
35 'libraries': [
senorblanco@chromium.org7eb492e2011-03-25 17:41:34 +000036 '-lpthread',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000037 ],
bsalomon@google.com91826102011-03-21 19:51:57 +000038 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +000039 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000040 [ 'skia_os == "mac"', {
bsalomon@google.coma9681db2011-03-21 13:34:23 +000041 'include_dirs': [
42 '../include/utils/mac',
reed@google.com830a23e2011-11-10 15:20:49 +000043 '../third_party/freetype/include/**',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000044 ],
45 'sources': [
bsalomon@google.coma9681db2011-03-21 13:34:23 +000046 '../include/utils/mac/SkCGUtils.h',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000047 ],
epoger@google.com0a030cd2011-06-02 19:52:14 +000048 'link_settings': {
49 'libraries': [
yangsu@google.comccb74ea2011-06-21 13:09:32 +000050 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
epoger@google.com0a030cd2011-06-02 19:52:14 +000051 ],
52 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +000053 }],
epoger@google.comea5dfa82011-07-01 21:01:32 +000054 [ 'skia_os == "ios"', {
55 'include_dirs': [
56 '../include/utils/ios',
57 ],
58 'sources': [
epoger@google.comea5dfa82011-07-01 21:01:32 +000059 '../include/utils/mac/SkCGUtils.h',
epoger@google.comea5dfa82011-07-01 21:01:32 +000060 ],
61 'link_settings': {
62 'libraries': [
bsalomon@google.com46638222012-10-04 12:52:03 +000063 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
64 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
65 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework',
66 '$(SDKROOT)/System/Library/Frameworks/UIKit.framework',
67 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
68 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
69 '$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework',
70 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
71 '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
epoger@google.comea5dfa82011-07-01 21:01:32 +000072 ],
73 },
74 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000075 [ 'skia_os == "win"', {
bsalomon@google.coma9681db2011-03-21 13:34:23 +000076 'include_dirs': [
77 'config/win',
78 ],
djsollen@google.com62b24b12011-12-15 16:16:22 +000079 'sources!': [
80 '../include/core/SkMMapStream.h',
81 '../src/core/SkMMapStream.cpp',
82 ],
senorblanco@chromium.orgc1587e02011-05-04 18:59:38 +000083 }],
djsollen@google.com58629292011-11-03 13:08:29 +000084 [ 'skia_os == "android"', {
djsollen@google.com58629292011-11-03 13:08:29 +000085 'dependencies': [
borenet@google.com7158e6a2012-11-01 17:43:44 +000086 'freetype.gyp:freetype',
djsollen@google.com58629292011-11-03 13:08:29 +000087 ],
digit@google.comeec9dbc2012-05-30 13:54:41 +000088 }],
djsollen@google.come341cb32012-06-28 16:08:05 +000089 [ 'skia_os == "android" and skia_arch_type == "arm" and armv7 == 1', {
digit@google.comeec9dbc2012-05-30 13:54:41 +000090 # The code in SkUtilsArm.cpp can be used on an ARM-based Linux system, not only Android.
91 'sources': [
92 '../src/core/SkUtilsArm.cpp',
digit@google.comfbf31942012-08-01 15:58:41 +000093 '../src/core/SkUtilsArm.h',
digit@google.comeec9dbc2012-05-30 13:54:41 +000094 ],
95 }],
bsalomon@google.coma9681db2011-03-21 13:34:23 +000096 ],
97 'direct_dependent_settings': {
98 'include_dirs': [
99 'config',
100 '../include/config',
101 '../include/core',
scroggo@google.com5af9b202012-06-04 17:17:36 +0000102 '../include/pipe',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000103 'ext',
104 ],
borenet@google.comefb1d772012-10-10 19:45:51 +0000105 'conditions': [
106 [ 'skia_os == "mac"', {
107 'include_dirs': [
108 '../include/utils/mac',
109 '../third_party/freetype/include/**',
110 ],
111 }],
112 [ 'skia_os == "ios"', {
113 'include_dirs': [
114 '../include/utils/ios',
115 ],
116 }],
117 [ 'skia_os == "win"', {
118 'include_dirs': [
119 'config/win',
120 ],
121 }],
122 ],
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000123 },
bungeman@google.com5a64e582012-03-29 14:51:56 +0000124 'dependencies': [
125 'opts.gyp:opts'
126 ],
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000127 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000128 ],
129}
130
131# Local Variables:
132# tab-width:2
133# indent-tabs-mode:nil
134# End:
135# vim: set expandtab tabstop=2 shiftwidth=2: