blob: b82eebd925da78ff02558b620a9ba41123b011db [file] [log] [blame]
caryclark@google.comafcb55c2011-12-14 17:12:04 +00001# Port-specific Skia library code.
2{
caryclark@google.comafcb55c2011-12-14 17:12:04 +00003 'targets': [
4 {
5 'target_name': 'ports',
borenet@google.comefb1d772012-10-10 19:45:51 +00006 'product_name': 'skia_ports',
caryclark@google.comafcb55c2011-12-14 17:12:04 +00007 'type': 'static_library',
borenet@google.comefb1d772012-10-10 19:45:51 +00008 'standalone_static_library': 1,
bungeman@google.comb8f36552013-07-22 14:39:45 +00009 'dependencies': [
10 'core.gyp:*',
11 ],
caryclark@google.comafcb55c2011-12-14 17:12:04 +000012 'include_dirs': [
bungeman@google.com5a64e582012-03-29 14:51:56 +000013 '../include/effects',
scroggo@google.comd9ef3a22013-03-15 18:08:09 +000014 '../include/images',
bungeman@google.com29b63dc2012-03-29 14:28:59 +000015 '../include/ports',
djsollen@google.com52f02972013-06-03 12:10:19 +000016 '../include/utils',
djsollen@google.com28979312013-06-03 14:44:52 +000017 '../include/utils/win',
bungeman@google.com5a64e582012-03-29 14:51:56 +000018 '../include/xml',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000019 '../src/core',
scroggo@google.comd9ef3a22013-03-15 18:08:09 +000020 '../src/lazy',
reed@google.come027a6e2013-07-31 17:37:31 +000021 '../src/ports',
djsollen@google.com52f02972013-06-03 12:10:19 +000022 '../src/sfnt',
bungeman@google.coma02bc152012-05-16 18:21:56 +000023 '../src/utils',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000024 ],
25 'sources': [
bungeman@google.comd9947f62013-12-18 15:27:39 +000026 '../src/ports/SkAtomics_sync.h',
27 '../src/ports/SkAtomics_win.h',
bungeman@google.com72cf4fc2014-03-21 22:48:32 +000028 '../src/ports/SkMutex_pthread.h',
29 '../src/ports/SkMutex_win.h',
borenet@google.com7158e6a2012-11-01 17:43:44 +000030 '../src/ports/SkDebug_nacl.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000031 '../src/ports/SkDebug_stdio.cpp',
32 '../src/ports/SkDebug_win.cpp',
bungeman@google.combfc6cc42013-08-21 15:20:43 +000033
bungeman@google.com72cf4fc2014-03-21 22:48:32 +000034 '../src/fonts/SkFontMgr_indirect.cpp',
35 '../src/fonts/SkRemotableFontMgr.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000036 '../src/ports/SkFontHost_win.cpp',
bungeman@google.combfc6cc42013-08-21 15:20:43 +000037 '../src/ports/SkFontMgr_default_gdi.cpp',
38 '../src/ports/SkFontMgr_default_dw.cpp',
bungeman51daa252014-06-05 13:38:45 -070039 '../src/ports/SkFontMgr_win_dw.cpp',
bungeman@google.com72cf4fc2014-03-21 22:48:32 +000040 '../src/ports/SkRemotableFontMgr_win_dw.cpp',
Ben Wagner98875e12014-06-05 16:55:58 -040041 '../src/ports/SkScalerContext_win_dw.cpp',
bungeman51daa252014-06-05 13:38:45 -070042 '../src/ports/SkScalerContext_win_dw.h',
43 '../src/ports/SkTypeface_win_dw.cpp',
44 '../src/ports/SkTypeface_win_dw.h',
bungeman@google.combfc6cc42013-08-21 15:20:43 +000045
caryclark@google.comd26147a2011-12-15 14:16:43 +000046 '../src/ports/SkGlobalInitialization_default.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000047 '../src/ports/SkMemory_malloc.cpp',
bungeman@google.comd9947f62013-12-18 15:27:39 +000048 '../src/ports/SkMutex_pthread.h',
49 '../src/ports/SkMutex_win.h',
bungeman@google.com6cab1a42013-05-29 13:43:31 +000050 '../src/ports/SkOSFile_posix.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000051 '../src/ports/SkOSFile_stdio.cpp',
bungeman@google.com6cab1a42013-05-29 13:43:31 +000052 '../src/ports/SkOSFile_win.cpp',
scroggo@google.com8b71ef12013-08-19 18:38:08 +000053 '../src/ports/SkDiscardableMemory_none.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000054 '../src/ports/SkTime_Unix.cpp',
55 '../src/ports/SkTime_win.cpp',
bungeman@google.comf2e7dbb2013-07-16 14:59:24 +000056 '../src/ports/SkTLS_pthread.cpp',
57 '../src/ports/SkTLS_win.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000058 '../src/ports/SkXMLParser_empty.cpp',
bungeman@google.com72cf4fc2014-03-21 22:48:32 +000059
60 '../include/ports/SkFontConfigInterface.h',
61 '../include/ports/SkFontMgr.h',
62 '../include/ports/SkFontMgr_indirect.h',
63 '../include/ports/SkFontStyle.h',
64 '../include/ports/SkRemotableFontMgr.h',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000065 ],
66 'conditions': [
djsollen@google.com2679ff82013-07-22 14:12:56 +000067 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos", "nacl", "android"]', {
68 'sources': [
69 '../src/ports/SkFontHost_FreeType.cpp',
70 '../src/ports/SkFontHost_FreeType_common.cpp',
borenet@google.com7158e6a2012-11-01 17:43:44 +000071 ],
djsollen@google.com2679ff82013-07-22 14:12:56 +000072 'dependencies': [
73 'freetype.gyp:freetype',
74 ],
75 }],
76 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
commit-bot@chromium.orgf84722e2014-02-24 20:22:34 +000077 'conditions': [
78 [ 'skia_no_fontconfig', {
79 'link_settings': {
80 'libraries': [
81 '-ldl',
82 ],
83 },
84 'sources': [
85 '../src/ports/SkFontHost_linux.cpp',
86 ],
87 }, {
88 'link_settings': {
89 'libraries': [
90 '-lfontconfig',
91 '-ldl',
92 ],
93 },
94 'sources': [
95 '../src/fonts/SkFontMgr_fontconfig.cpp',
96 '../src/ports/SkFontHost_fontconfig.cpp',
97 '../src/ports/SkFontConfigInterface_direct.cpp',
98 ],
99 }]
borenet@google.com7158e6a2012-11-01 17:43:44 +0000100 ],
101 }],
102 [ 'skia_os == "nacl"', {
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000103 'sources': [
borenet@google.com7158e6a2012-11-01 17:43:44 +0000104 '../src/ports/SkFontHost_linux.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000105 ],
borenet@google.com7158e6a2012-11-01 17:43:44 +0000106 'sources!': [
107 '../src/ports/SkDebug_stdio.cpp',
108 ],
109 }, {
110 'sources!': [
111 '../src/ports/SkDebug_nacl.cpp',
112 ],
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000113 }],
114 [ 'skia_os == "mac"', {
115 'include_dirs': [
116 '../include/utils/mac',
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000117 ],
118 'sources': [
mike@reedtribe.orgb103ed42013-03-03 03:50:09 +0000119 '../src/ports/SkFontHost_mac.cpp',
scroggo@google.comd9ef3a22013-03-15 18:08:09 +0000120 '../src/utils/mac/SkStream_mac.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000121 ],
reed@google.com17aa07d2012-02-23 14:51:10 +0000122 'sources!': [
123 '../src/ports/SkFontHost_tables.cpp',
124 ],
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000125 }],
126 [ 'skia_os == "ios"', {
127 'include_dirs': [
128 '../include/utils/ios',
caryclark@google.com35f5ac92012-09-18 15:41:18 +0000129 '../include/utils/mac',
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000130 ],
131 'sources': [
mike@reedtribe.orgb103ed42013-03-03 03:50:09 +0000132 '../src/ports/SkFontHost_mac.cpp',
scroggo@google.comd9ef3a22013-03-15 18:08:09 +0000133 '../src/utils/mac/SkStream_mac.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000134 ],
caryclark@google.com867cbd82012-09-20 15:45:41 +0000135 'sources!': [
136 '../src/ports/SkFontHost_tables.cpp',
137 ],
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000138 }],
139 [ 'skia_os == "win"', {
140 'include_dirs': [
141 'config/win',
bungeman@google.come8f05922012-08-16 16:13:40 +0000142 '../src/utils/win',
143 ],
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000144 'sources!': [ # these are used everywhere but windows
145 '../src/ports/SkDebug_stdio.cpp',
bungeman@google.com6cab1a42013-05-29 13:43:31 +0000146 '../src/ports/SkOSFile_posix.cpp',
bungeman@google.comf2e7dbb2013-07-16 14:59:24 +0000147 '../src/ports/SkTime_Unix.cpp',
148 '../src/ports/SkTLS_pthread.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000149 ],
bungeman@google.combfc6cc42013-08-21 15:20:43 +0000150 'conditions': [
151 # when we build for win, we only want one of these default files
Mike Klein93587062014-07-16 13:06:04 -0400152 [ 'skia_gdi', {
bungeman@google.combfc6cc42013-08-21 15:20:43 +0000153 'sources!': [
154 '../src/ports/SkFontMgr_default_dw.cpp',
155 ],
Mike Klein93587062014-07-16 13:06:04 -0400156 }, { # normally default to direct write
157 'sources!': [
158 '../src/ports/SkFontMgr_default_gdi.cpp',
159 ],
bungeman@google.combfc6cc42013-08-21 15:20:43 +0000160 }],
161 ],
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000162 }, { # else !win
163 'sources!': [
164 '../src/ports/SkDebug_win.cpp',
165 '../src/ports/SkFontHost_win.cpp',
bungeman@google.combfc6cc42013-08-21 15:20:43 +0000166 '../src/ports/SkFontMgr_default_gdi.cpp',
167 '../src/ports/SkFontMgr_default_dw.cpp',
bungeman51daa252014-06-05 13:38:45 -0700168 '../src/ports/SkFontMgr_win_dw.cpp',
bungeman@google.com6cab1a42013-05-29 13:43:31 +0000169 '../src/ports/SkOSFile_win.cpp',
bungeman@google.com04c32a82014-03-21 23:19:10 +0000170 '../src/ports/SkRemotableFontMgr_win_dw.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000171 '../src/ports/SkTime_win.cpp',
bungeman@google.comf2e7dbb2013-07-16 14:59:24 +0000172 '../src/ports/SkTLS_win.cpp',
Ben Wagner98875e12014-06-05 16:55:58 -0400173 '../src/ports/SkScalerContext_win_dw.cpp',
bungeman51daa252014-06-05 13:38:45 -0700174 '../src/ports/SkScalerContext_win_dw.h',
175 '../src/ports/SkTypeface_win_dw.cpp',
176 '../src/ports/SkTypeface_win_dw.h',
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000177 ],
178 }],
179 [ 'skia_os == "android"', {
180 'sources!': [
181 '../src/ports/SkDebug_stdio.cpp',
182 ],
183 'sources': [
184 '../src/ports/SkDebug_android.cpp',
djsollen@google.combfae9d32013-05-21 16:53:50 +0000185 '../src/ports/SkFontConfigInterface_android.cpp',
186 '../src/ports/SkFontConfigParser_android.cpp',
djsollen@google.combfae9d32013-05-21 16:53:50 +0000187 '../src/ports/SkFontHost_fontconfig.cpp',
bungeman8d84c992014-07-24 08:05:09 -0700188 '../src/ports/SkFontMgr_android.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000189 ],
djsollen@google.com62b24b12011-12-15 16:16:22 +0000190 'dependencies': [
borenet@google.comaf730912012-08-09 15:54:28 +0000191 'android_deps.gyp:expat',
djsollen@google.com62b24b12011-12-15 16:16:22 +0000192 ],
rmistry@google.comd6176b02012-08-23 18:14:13 +0000193 }],
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000194 ],
195 'direct_dependent_settings': {
196 'include_dirs': [
197 '../include/ports',
198 ],
199 },
200 },
201 ],
202}