blob: d4942d781a0c36d2f0e5424126b98aaf08dc0950 [file] [log] [blame]
epoger@google.comae85aea2011-05-31 13:50:51 +00001{
epoger@google.comae85aea2011-05-31 13:50:51 +00002 'targets': [
3 {
4 'target_name': 'utils',
borenet@google.comefb1d772012-10-10 19:45:51 +00005 'product_name': 'skia_utils',
epoger@google.comae85aea2011-05-31 13:50:51 +00006 'type': 'static_library',
borenet@google.comefb1d772012-10-10 19:45:51 +00007 'standalone_static_library': 1,
epoger@google.com0bba6bd2012-12-07 15:12:01 +00008 'dependencies': [
9 'cityhash',
10 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000011 'include_dirs': [
borenet@google.comefb1d772012-10-10 19:45:51 +000012 '../include/config',
13 '../include/core',
junov@chromium.org77eec242012-07-18 17:54:45 +000014 '../include/effects',
15 '../include/pipe',
epoger@google.comae85aea2011-05-31 13:50:51 +000016 '../include/utils',
epoger@google.com0a030cd2011-06-02 19:52:14 +000017 '../include/utils/mac',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000018 '../include/utils/unix',
bungeman@google.com9df621d2011-06-23 21:43:52 +000019 '../include/utils/win',
bungeman@google.com5a64e582012-03-29 14:51:56 +000020 '../include/xml',
bungeman@google.come8f05922012-08-16 16:13:40 +000021 '../src/utils',
epoger@google.comae85aea2011-05-31 13:50:51 +000022 ],
23 'sources': [
scroggo@google.com4177ef42012-10-31 15:52:16 +000024 # Classes for a threadpool.
25 '../include/utils/SkCondVar.h',
26 '../include/utils/SkCountdown.h',
27 '../include/utils/SkRunnable.h',
28 '../include/utils/SkThreadPool.h',
29 '../src/utils/SkCondVar.cpp',
30 '../src/utils/SkCountdown.cpp',
31 '../src/utils/SkThreadPool.cpp',
32
epoger@google.comae85aea2011-05-31 13:50:51 +000033 '../include/utils/SkBoundaryPatch.h',
34 '../include/utils/SkCamera.h',
35 '../include/utils/SkCubicInterval.h',
36 '../include/utils/SkCullPoints.h',
junov@google.com4370aed2012-01-18 16:21:08 +000037 '../include/utils/SkDeferredCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000038 '../include/utils/SkDumpCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000039 '../include/utils/SkInterpolator.h',
40 '../include/utils/SkLayer.h',
reed@google.comc8cc60c2011-06-13 14:58:44 +000041 '../include/utils/SkMatrix44.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000042 '../include/utils/SkMeshUtils.h',
43 '../include/utils/SkNinePatch.h',
44 '../include/utils/SkNWayCanvas.h',
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000045 '../include/utils/SkNullCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000046 '../include/utils/SkParse.h',
47 '../include/utils/SkParsePaint.h',
48 '../include/utils/SkParsePath.h',
djsollen@google.comfdabcb52012-12-05 06:15:42 +000049 '../include/utils/SkPictureUtils.h',
humper@google.com7af56be2013-01-14 18:49:19 +000050 '../include/utils/SkRTConf.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000051 '../include/utils/SkProxyCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000052 '../include/utils/SkUnitMappers.h',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000053 '../include/utils/SkWGL.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000054
bungeman@google.comaf5bbf22012-02-07 20:47:38 +000055 '../src/utils/SkBase64.cpp',
56 '../src/utils/SkBase64.h',
epoger@google.com31114c62012-12-12 17:22:23 +000057 '../src/utils/SkBitmapChecksummer.cpp',
58 '../src/utils/SkBitmapChecksummer.h',
59 '../src/utils/SkBitmapTransformer.cpp',
60 '../src/utils/SkBitmapTransformer.h',
vandebo@chromium.orgec1a7fa2012-03-21 23:11:46 +000061 '../src/utils/SkBitSet.cpp',
62 '../src/utils/SkBitSet.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000063 '../src/utils/SkBoundaryPatch.cpp',
64 '../src/utils/SkCamera.cpp',
epoger@google.com7346df52012-12-07 19:06:11 +000065 '../src/utils/SkCityHash.cpp',
66 '../src/utils/SkCityHash.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000067 '../src/utils/SkCubicInterval.cpp',
68 '../src/utils/SkCullPoints.cpp',
junov@google.com4370aed2012-01-18 16:21:08 +000069 '../src/utils/SkDeferredCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000070 '../src/utils/SkDumpCanvas.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +000071 '../src/utils/SkFloatUtils.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000072 '../src/utils/SkInterpolator.cpp',
73 '../src/utils/SkLayer.cpp',
reed@google.comc8cc60c2011-06-13 14:58:44 +000074 '../src/utils/SkMatrix44.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000075 '../src/utils/SkMeshUtils.cpp',
76 '../src/utils/SkNinePatch.cpp',
77 '../src/utils/SkNWayCanvas.cpp',
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000078 '../src/utils/SkNullCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000079 '../src/utils/SkOSFile.cpp',
80 '../src/utils/SkParse.cpp',
81 '../src/utils/SkParseColor.cpp',
82 '../src/utils/SkParsePath.cpp',
reed@google.comfe7b1ed2012-11-29 21:00:39 +000083 '../src/utils/SkPictureUtils.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000084 '../src/utils/SkProxyCanvas.cpp',
humper@google.com7af56be2013-01-14 18:49:19 +000085 '../src/utils/SkRTConf.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +000086 '../src/utils/SkThreadUtils.h',
87 '../src/utils/SkThreadUtils_pthread.cpp',
88 '../src/utils/SkThreadUtils_pthread.h',
89 '../src/utils/SkThreadUtils_pthread_linux.cpp',
90 '../src/utils/SkThreadUtils_pthread_mach.cpp',
91 '../src/utils/SkThreadUtils_pthread_other.cpp',
92 '../src/utils/SkThreadUtils_win.cpp',
93 '../src/utils/SkThreadUtils_win.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000094 '../src/utils/SkUnitMappers.cpp',
95
bungeman@google.com9df621d2011-06-23 21:43:52 +000096 #mac
bungeman@google.com63aab2f2011-06-01 16:15:43 +000097 '../include/utils/mac/SkCGUtils.h',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000098 '../src/utils/mac/SkCreateCGImageRef.cpp',
rmistry@google.comd6176b02012-08-23 18:14:13 +000099
bungeman@google.com9df621d2011-06-23 21:43:52 +0000100 #windows
101 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000102 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000103 '../include/utils/win/SkIStream.h',
104 '../include/utils/win/SkTScopedComPtr.h',
105 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +0000106 '../src/utils/win/SkDWriteFontFileStream.cpp',
107 '../src/utils/win/SkDWriteFontFileStream.h',
108 '../src/utils/win/SkDWriteGeometrySink.cpp',
109 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000110 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000111 '../src/utils/win/SkIStream.cpp',
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000112 '../src/utils/win/SkWGL_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000113 ],
114 'sources!': [
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000115 '../src/utils/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000116 ],
117 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000118 [ 'skia_os == "mac"', {
epoger@google.comc39f1752011-06-03 17:52:12 +0000119 'link_settings': {
120 'libraries': [
121 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
122 ],
123 },
caryclark@google.com5c83dcc2012-09-26 13:02:37 +0000124 }],
125 [ 'skia_os in ["mac", "ios"]', {
bungeman@google.comfe5afe52011-06-24 13:58:17 +0000126 'direct_dependent_settings': {
127 'include_dirs': [
128 '../include/utils/mac',
129 ],
130 },
bungeman@google.com55487522012-05-14 14:09:24 +0000131 'sources!': [
132 '../src/utils/SkThreadUtils_pthread_other.cpp',
133 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000134 },{ #else if 'skia_os != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000135 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000136 '../include/utils/mac',
137 ],
138 'sources!': [
139 '../include/utils/mac/SkCGUtils.h',
140 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +0000141 '../src/utils/SkThreadUtils_pthread_mach.cpp',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000142 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000143 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000144 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
bungeman@google.com55487522012-05-14 14:09:24 +0000145 'sources!': [
146 '../src/utils/SkThreadUtils_pthread_other.cpp',
147 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000148 },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris"]'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000149 'include_dirs!': [
150 '../include/utils/unix',
151 ],
bungeman@google.com55487522012-05-14 14:09:24 +0000152 'sources!': [
153 '../src/utils/SkThreadUtils_pthread_linux.cpp',
154 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000155 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000156 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +0000157 'direct_dependent_settings': {
158 'include_dirs': [
159 '../include/utils/win',
160 ],
161 },
bungeman@google.com55487522012-05-14 14:09:24 +0000162 'sources!': [
163 '../src/utils/SkThreadUtils_pthread.cpp',
164 '../src/utils/SkThreadUtils_pthread.h',
165 '../src/utils/SkThreadUtils_pthread_other.cpp',
166 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000167 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000168 'include_dirs!': [
169 '../include/utils/win',
170 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000171 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +0000172 'sources!': [
173 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000174 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000175 '../include/utils/win/SkIStream.h',
176 '../include/utils/win/SkTScopedComPtr.h',
177 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +0000178 '../src/utils/win/SkDWriteFontFileStream.cpp',
179 '../src/utils/win/SkDWriteFontFileStream.h',
180 '../src/utils/win/SkDWriteGeometrySink.cpp',
181 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000182 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000183 '../src/utils/win/SkIStream.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000184 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000185 }],
borenet@google.com7158e6a2012-11-01 17:43:44 +0000186 [ 'skia_os == "nacl"', {
borenet@google.coma98eb912012-09-04 21:09:40 +0000187 'sources': [
188 '../src/utils/SkThreadUtils_pthread_other.cpp',
189 ],
190 'sources!': [
191 '../src/utils/SkThreadUtils_pthread_linux.cpp',
192 ],
193 }],
djsollen@google.com276a2952012-11-19 19:34:23 +0000194 [ 'skia_os == "android"', {
195 'sources': [
196 '../src/utils/android/ashmem.c',
197 ],
198 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000199 ],
200 'direct_dependent_settings': {
201 'include_dirs': [
202 '../include/utils',
203 ],
204 },
205 },
epoger@google.com0bba6bd2012-12-07 15:12:01 +0000206 {
207 'target_name': 'cityhash',
208 'type': 'static_library',
209 'standalone_static_library': 1,
210 'include_dirs': [
211 '../include/config',
212 '../include/core',
213 '../src/utils/cityhash',
214 '../third_party/externals/cityhash/src',
215 ],
216 'sources': [
217 '../third_party/externals/cityhash/src/city.cc',
218 ],
219 'direct_dependent_settings': {
220 'include_dirs': [
221 '../third_party/externals/cityhash/src',
222 ],
223 },
humper@google.comaf2bd7b2013-01-07 19:02:46 +0000224 'conditions': [
225 [ 'skia_os == "mac"', {
226 'xcode_settings': {
227 'OTHER_CPLUSPLUSFLAGS!': [
228 '-Werror',
229 ]
230 },
231 }],
bsalomon@google.com50c79d82013-01-08 20:31:53 +0000232 [ 'skia_os == "win"', {
233 'msvs_settings': {
234 'VCCLCompilerTool': {
235 'WarnAsError': 'false',
236 },
237 },
238 }],
humper@google.comaf2bd7b2013-01-07 19:02:46 +0000239 ],
epoger@google.com0bba6bd2012-12-07 15:12:01 +0000240 },
epoger@google.comae85aea2011-05-31 13:50:51 +0000241 ],
242}
243
244# Local Variables:
245# tab-width:2
246# indent-tabs-mode:nil
247# End:
248# vim: set expandtab tabstop=2 shiftwidth=2: