blob: a62791002a44e60c51e34412079ff33f73ea0e2a [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_android.h',
27 '../src/ports/SkAtomics_none.h',
28 '../src/ports/SkAtomics_sync.h',
29 '../src/ports/SkAtomics_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
caryclark@google.comafcb55c2011-12-14 17:12:04 +000034 '../src/ports/SkFontHost_win.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +000035 '../src/ports/SkFontHost_win_dw.cpp',
bungeman@google.combfc6cc42013-08-21 15:20:43 +000036 '../src/ports/SkFontMgr_default_gdi.cpp',
37 '../src/ports/SkFontMgr_default_dw.cpp',
38
caryclark@google.comd26147a2011-12-15 14:16:43 +000039 '../src/ports/SkGlobalInitialization_default.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000040 '../src/ports/SkMemory_malloc.cpp',
bungeman@google.comd9947f62013-12-18 15:27:39 +000041 '../src/ports/SkMutex_none.h',
42 '../src/ports/SkMutex_pthread.h',
43 '../src/ports/SkMutex_win.h',
bungeman@google.com6cab1a42013-05-29 13:43:31 +000044 '../src/ports/SkOSFile_posix.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000045 '../src/ports/SkOSFile_stdio.cpp',
bungeman@google.com6cab1a42013-05-29 13:43:31 +000046 '../src/ports/SkOSFile_win.cpp',
scroggo@google.com8b71ef12013-08-19 18:38:08 +000047 '../src/ports/SkDiscardableMemory_none.cpp',
bungeman@google.comf2e7dbb2013-07-16 14:59:24 +000048 '../src/ports/SkPurgeableMemoryBlock_none.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000049 '../src/ports/SkTime_Unix.cpp',
50 '../src/ports/SkTime_win.cpp',
bungeman@google.comf2e7dbb2013-07-16 14:59:24 +000051 #'../src/ports/SkTLS_none.cpp',
52 '../src/ports/SkTLS_pthread.cpp',
53 '../src/ports/SkTLS_win.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000054 '../src/ports/SkXMLParser_empty.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000055 ],
56 'conditions': [
djsollen@google.com2679ff82013-07-22 14:12:56 +000057 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos", "nacl", "android"]', {
58 'sources': [
59 '../src/ports/SkFontHost_FreeType.cpp',
60 '../src/ports/SkFontHost_FreeType_common.cpp',
borenet@google.com7158e6a2012-11-01 17:43:44 +000061 ],
djsollen@google.com2679ff82013-07-22 14:12:56 +000062 'dependencies': [
63 'freetype.gyp:freetype',
64 ],
65 }],
66 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
borenet@google.com7158e6a2012-11-01 17:43:44 +000067 'link_settings': {
68 'libraries': [
reed@google.com8333d2a2013-03-04 14:45:29 +000069 '-lfontconfig',
borenet@google.com7158e6a2012-11-01 17:43:44 +000070 '-ldl',
71 ],
72 },
73 'sources': [
reed@google.com381bb432013-05-13 19:43:59 +000074 '../src/fonts/SkFontMgr_fontconfig.cpp',
reed@google.com8333d2a2013-03-04 14:45:29 +000075 '../src/ports/SkFontHost_fontconfig.cpp',
76 '../src/ports/SkFontConfigInterface_direct.cpp',
borenet@google.com7158e6a2012-11-01 17:43:44 +000077 ],
78 }],
79 [ 'skia_os == "nacl"', {
caryclark@google.comafcb55c2011-12-14 17:12:04 +000080 'sources': [
borenet@google.com7158e6a2012-11-01 17:43:44 +000081 '../src/ports/SkFontHost_linux.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000082 ],
borenet@google.com7158e6a2012-11-01 17:43:44 +000083 'sources!': [
84 '../src/ports/SkDebug_stdio.cpp',
85 ],
86 }, {
87 'sources!': [
88 '../src/ports/SkDebug_nacl.cpp',
89 ],
caryclark@google.comafcb55c2011-12-14 17:12:04 +000090 }],
91 [ 'skia_os == "mac"', {
92 'include_dirs': [
93 '../include/utils/mac',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000094 ],
95 'sources': [
mike@reedtribe.orgb103ed42013-03-03 03:50:09 +000096 '../src/ports/SkFontHost_mac.cpp',
scroggo@google.comd9ef3a22013-03-15 18:08:09 +000097 '../src/ports/SkPurgeableMemoryBlock_mac.cpp',
scroggo@google.comd9ef3a22013-03-15 18:08:09 +000098 '../src/utils/mac/SkStream_mac.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000099 ],
reed@google.com17aa07d2012-02-23 14:51:10 +0000100 'sources!': [
scroggo@google.comd9ef3a22013-03-15 18:08:09 +0000101 '../src/ports/SkPurgeableMemoryBlock_none.cpp',
reed@google.com17aa07d2012-02-23 14:51:10 +0000102 '../src/ports/SkFontHost_tables.cpp',
103 ],
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000104 }],
105 [ 'skia_os == "ios"', {
106 'include_dirs': [
107 '../include/utils/ios',
caryclark@google.com35f5ac92012-09-18 15:41:18 +0000108 '../include/utils/mac',
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000109 ],
110 'sources': [
mike@reedtribe.orgb103ed42013-03-03 03:50:09 +0000111 '../src/ports/SkFontHost_mac.cpp',
scroggo@google.comd9ef3a22013-03-15 18:08:09 +0000112 '../src/ports/SkPurgeableMemoryBlock_mac.cpp',
scroggo@google.comd9ef3a22013-03-15 18:08:09 +0000113 '../src/utils/mac/SkStream_mac.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000114 ],
caryclark@google.com867cbd82012-09-20 15:45:41 +0000115 'sources!': [
scroggo@google.comd9ef3a22013-03-15 18:08:09 +0000116 '../src/ports/SkPurgeableMemoryBlock_none.cpp',
caryclark@google.com867cbd82012-09-20 15:45:41 +0000117 '../src/ports/SkFontHost_tables.cpp',
118 ],
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000119 }],
120 [ 'skia_os == "win"', {
121 'include_dirs': [
122 'config/win',
bungeman@google.come8f05922012-08-16 16:13:40 +0000123 '../src/utils/win',
124 ],
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000125 'sources!': [ # these are used everywhere but windows
126 '../src/ports/SkDebug_stdio.cpp',
bungeman@google.com6cab1a42013-05-29 13:43:31 +0000127 '../src/ports/SkOSFile_posix.cpp',
bungeman@google.comf2e7dbb2013-07-16 14:59:24 +0000128 '../src/ports/SkTime_Unix.cpp',
129 '../src/ports/SkTLS_pthread.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000130 ],
bungeman@google.combfc6cc42013-08-21 15:20:43 +0000131 'conditions': [
132 # when we build for win, we only want one of these default files
133 [ 'skia_directwrite', {
134 'sources!': [
135 '../src/ports/SkFontMgr_default_gdi.cpp',
136 ],
137 }, { # else gdi
138 'sources!': [
139 '../src/ports/SkFontMgr_default_dw.cpp',
140 ],
141 }],
142 ],
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000143 }, { # else !win
144 'sources!': [
145 '../src/ports/SkDebug_win.cpp',
146 '../src/ports/SkFontHost_win.cpp',
bungeman@google.com6ca0a5d2012-08-16 16:23:09 +0000147 '../src/ports/SkFontHost_win_dw.cpp',
bungeman@google.combfc6cc42013-08-21 15:20:43 +0000148 '../src/ports/SkFontMgr_default_gdi.cpp',
149 '../src/ports/SkFontMgr_default_dw.cpp',
bungeman@google.com6cab1a42013-05-29 13:43:31 +0000150 '../src/ports/SkOSFile_win.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000151 '../src/ports/SkTime_win.cpp',
bungeman@google.comf2e7dbb2013-07-16 14:59:24 +0000152 '../src/ports/SkTLS_win.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000153 ],
154 }],
155 [ 'skia_os == "android"', {
156 'sources!': [
157 '../src/ports/SkDebug_stdio.cpp',
halcanary@google.combc55eec2013-12-10 18:33:07 +0000158 '../src/ports/SkDiscardableMemory_none.cpp',
scroggo@google.comd9ef3a22013-03-15 18:08:09 +0000159 '../src/ports/SkPurgeableMemoryBlock_none.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000160 ],
161 'sources': [
162 '../src/ports/SkDebug_android.cpp',
halcanary@google.combc55eec2013-12-10 18:33:07 +0000163 '../src/ports/SkDiscardableMemory_ashmem.cpp',
djsollen@google.combfae9d32013-05-21 16:53:50 +0000164 '../src/ports/SkFontConfigInterface_android.cpp',
165 '../src/ports/SkFontConfigParser_android.cpp',
djsollen@google.combfae9d32013-05-21 16:53:50 +0000166 '../src/ports/SkFontHost_fontconfig.cpp',
scroggo@google.comd9ef3a22013-03-15 18:08:09 +0000167 '../src/ports/SkPurgeableMemoryBlock_android.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000168 ],
djsollen@google.com62b24b12011-12-15 16:16:22 +0000169 'dependencies': [
borenet@google.comaf730912012-08-09 15:54:28 +0000170 'android_deps.gyp:expat',
djsollen@google.com62b24b12011-12-15 16:16:22 +0000171 ],
rmistry@google.comd6176b02012-08-23 18:14:13 +0000172 }],
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000173 ],
174 'direct_dependent_settings': {
175 'include_dirs': [
176 '../include/ports',
177 ],
178 },
179 },
180 ],
181}