blob: 28910e4dc8ca48d498e707865b3e2a3df973d28f [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',
junov@chromium.orgbaa02202013-01-24 14:38:23 +000021 '../src/core',
bungeman@google.come8f05922012-08-16 16:13:40 +000022 '../src/utils',
epoger@google.comae85aea2011-05-31 13:50:51 +000023 ],
24 'sources': [
scroggo@google.com4177ef42012-10-31 15:52:16 +000025 # Classes for a threadpool.
26 '../include/utils/SkCondVar.h',
27 '../include/utils/SkCountdown.h',
28 '../include/utils/SkRunnable.h',
29 '../include/utils/SkThreadPool.h',
30 '../src/utils/SkCondVar.cpp',
31 '../src/utils/SkCountdown.cpp',
32 '../src/utils/SkThreadPool.cpp',
33
epoger@google.comae85aea2011-05-31 13:50:51 +000034 '../include/utils/SkBoundaryPatch.h',
35 '../include/utils/SkCamera.h',
36 '../include/utils/SkCubicInterval.h',
37 '../include/utils/SkCullPoints.h',
junov@google.com4370aed2012-01-18 16:21:08 +000038 '../include/utils/SkDeferredCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000039 '../include/utils/SkDumpCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000040 '../include/utils/SkInterpolator.h',
41 '../include/utils/SkLayer.h',
reed@google.comc8cc60c2011-06-13 14:58:44 +000042 '../include/utils/SkMatrix44.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000043 '../include/utils/SkMeshUtils.h',
44 '../include/utils/SkNinePatch.h',
45 '../include/utils/SkNWayCanvas.h',
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000046 '../include/utils/SkNullCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000047 '../include/utils/SkParse.h',
48 '../include/utils/SkParsePaint.h',
49 '../include/utils/SkParsePath.h',
djsollen@google.comfdabcb52012-12-05 06:15:42 +000050 '../include/utils/SkPictureUtils.h',
humper@google.com7af56be2013-01-14 18:49:19 +000051 '../include/utils/SkRTConf.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000052 '../include/utils/SkProxyCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000053 '../include/utils/SkUnitMappers.h',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000054 '../include/utils/SkWGL.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000055
bungeman@google.comaf5bbf22012-02-07 20:47:38 +000056 '../src/utils/SkBase64.cpp',
57 '../src/utils/SkBase64.h',
epoger@google.com31114c62012-12-12 17:22:23 +000058 '../src/utils/SkBitmapChecksummer.cpp',
59 '../src/utils/SkBitmapChecksummer.h',
60 '../src/utils/SkBitmapTransformer.cpp',
61 '../src/utils/SkBitmapTransformer.h',
vandebo@chromium.orgec1a7fa2012-03-21 23:11:46 +000062 '../src/utils/SkBitSet.cpp',
63 '../src/utils/SkBitSet.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000064 '../src/utils/SkBoundaryPatch.cpp',
65 '../src/utils/SkCamera.cpp',
epoger@google.com7346df52012-12-07 19:06:11 +000066 '../src/utils/SkCityHash.cpp',
67 '../src/utils/SkCityHash.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000068 '../src/utils/SkCubicInterval.cpp',
69 '../src/utils/SkCullPoints.cpp',
junov@google.com4370aed2012-01-18 16:21:08 +000070 '../src/utils/SkDeferredCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000071 '../src/utils/SkDumpCanvas.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +000072 '../src/utils/SkFloatUtils.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000073 '../src/utils/SkInterpolator.cpp',
74 '../src/utils/SkLayer.cpp',
reed@google.comc8cc60c2011-06-13 14:58:44 +000075 '../src/utils/SkMatrix44.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000076 '../src/utils/SkMeshUtils.cpp',
77 '../src/utils/SkNinePatch.cpp',
78 '../src/utils/SkNWayCanvas.cpp',
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000079 '../src/utils/SkNullCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000080 '../src/utils/SkOSFile.cpp',
81 '../src/utils/SkParse.cpp',
82 '../src/utils/SkParseColor.cpp',
83 '../src/utils/SkParsePath.cpp',
reed@google.comfe7b1ed2012-11-29 21:00:39 +000084 '../src/utils/SkPictureUtils.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000085 '../src/utils/SkProxyCanvas.cpp',
humper@google.com7af56be2013-01-14 18:49:19 +000086 '../src/utils/SkRTConf.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +000087 '../src/utils/SkThreadUtils.h',
88 '../src/utils/SkThreadUtils_pthread.cpp',
89 '../src/utils/SkThreadUtils_pthread.h',
90 '../src/utils/SkThreadUtils_pthread_linux.cpp',
91 '../src/utils/SkThreadUtils_pthread_mach.cpp',
92 '../src/utils/SkThreadUtils_pthread_other.cpp',
93 '../src/utils/SkThreadUtils_win.cpp',
94 '../src/utils/SkThreadUtils_win.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000095 '../src/utils/SkUnitMappers.cpp',
96
bungeman@google.com9df621d2011-06-23 21:43:52 +000097 #mac
bungeman@google.com63aab2f2011-06-01 16:15:43 +000098 '../include/utils/mac/SkCGUtils.h',
bungeman@google.com63aab2f2011-06-01 16:15:43 +000099 '../src/utils/mac/SkCreateCGImageRef.cpp',
rmistry@google.comd6176b02012-08-23 18:14:13 +0000100
bungeman@google.com9df621d2011-06-23 21:43:52 +0000101 #windows
102 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000103 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000104 '../include/utils/win/SkIStream.h',
105 '../include/utils/win/SkTScopedComPtr.h',
106 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +0000107 '../src/utils/win/SkDWriteFontFileStream.cpp',
108 '../src/utils/win/SkDWriteFontFileStream.h',
109 '../src/utils/win/SkDWriteGeometrySink.cpp',
110 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000111 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000112 '../src/utils/win/SkIStream.cpp',
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000113 '../src/utils/win/SkWGL_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000114 ],
115 'sources!': [
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000116 '../src/utils/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000117 ],
118 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000119 [ 'skia_os == "mac"', {
epoger@google.comc39f1752011-06-03 17:52:12 +0000120 'link_settings': {
121 'libraries': [
122 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
123 ],
124 },
caryclark@google.com5c83dcc2012-09-26 13:02:37 +0000125 }],
126 [ 'skia_os in ["mac", "ios"]', {
bungeman@google.comfe5afe52011-06-24 13:58:17 +0000127 'direct_dependent_settings': {
128 'include_dirs': [
129 '../include/utils/mac',
130 ],
131 },
bungeman@google.com55487522012-05-14 14:09:24 +0000132 'sources!': [
133 '../src/utils/SkThreadUtils_pthread_other.cpp',
134 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000135 },{ #else if 'skia_os != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000136 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000137 '../include/utils/mac',
138 ],
139 'sources!': [
140 '../include/utils/mac/SkCGUtils.h',
141 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +0000142 '../src/utils/SkThreadUtils_pthread_mach.cpp',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000143 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000144 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000145 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
bungeman@google.com55487522012-05-14 14:09:24 +0000146 'sources!': [
147 '../src/utils/SkThreadUtils_pthread_other.cpp',
148 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000149 },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris"]'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000150 'include_dirs!': [
151 '../include/utils/unix',
152 ],
bungeman@google.com55487522012-05-14 14:09:24 +0000153 'sources!': [
154 '../src/utils/SkThreadUtils_pthread_linux.cpp',
155 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000156 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000157 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +0000158 'direct_dependent_settings': {
159 'include_dirs': [
160 '../include/utils/win',
161 ],
162 },
bungeman@google.com55487522012-05-14 14:09:24 +0000163 'sources!': [
164 '../src/utils/SkThreadUtils_pthread.cpp',
165 '../src/utils/SkThreadUtils_pthread.h',
166 '../src/utils/SkThreadUtils_pthread_other.cpp',
167 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000168 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000169 'include_dirs!': [
170 '../include/utils/win',
171 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000172 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +0000173 'sources!': [
174 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000175 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000176 '../include/utils/win/SkIStream.h',
177 '../include/utils/win/SkTScopedComPtr.h',
178 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +0000179 '../src/utils/win/SkDWriteFontFileStream.cpp',
180 '../src/utils/win/SkDWriteFontFileStream.h',
181 '../src/utils/win/SkDWriteGeometrySink.cpp',
182 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000183 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000184 '../src/utils/win/SkIStream.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000185 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000186 }],
borenet@google.com7158e6a2012-11-01 17:43:44 +0000187 [ 'skia_os == "nacl"', {
borenet@google.coma98eb912012-09-04 21:09:40 +0000188 'sources': [
189 '../src/utils/SkThreadUtils_pthread_other.cpp',
190 ],
191 'sources!': [
192 '../src/utils/SkThreadUtils_pthread_linux.cpp',
193 ],
194 }],
djsollen@google.com276a2952012-11-19 19:34:23 +0000195 [ 'skia_os == "android"', {
196 'sources': [
197 '../src/utils/android/ashmem.c',
198 ],
199 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000200 ],
201 'direct_dependent_settings': {
202 'include_dirs': [
203 '../include/utils',
204 ],
205 },
206 },
epoger@google.com0bba6bd2012-12-07 15:12:01 +0000207 {
208 'target_name': 'cityhash',
209 'type': 'static_library',
210 'standalone_static_library': 1,
211 'include_dirs': [
212 '../include/config',
213 '../include/core',
214 '../src/utils/cityhash',
215 '../third_party/externals/cityhash/src',
216 ],
217 'sources': [
218 '../third_party/externals/cityhash/src/city.cc',
219 ],
220 'direct_dependent_settings': {
221 'include_dirs': [
222 '../third_party/externals/cityhash/src',
223 ],
224 },
humper@google.comaf2bd7b2013-01-07 19:02:46 +0000225 'conditions': [
226 [ 'skia_os == "mac"', {
227 'xcode_settings': {
228 'OTHER_CPLUSPLUSFLAGS!': [
229 '-Werror',
230 ]
231 },
232 }],
bsalomon@google.com50c79d82013-01-08 20:31:53 +0000233 [ 'skia_os == "win"', {
234 'msvs_settings': {
235 'VCCLCompilerTool': {
236 'WarnAsError': 'false',
237 },
238 },
239 }],
humper@google.comaf2bd7b2013-01-07 19:02:46 +0000240 ],
epoger@google.com0bba6bd2012-12-07 15:12:01 +0000241 },
epoger@google.comae85aea2011-05-31 13:50:51 +0000242 ],
243}
244
245# Local Variables:
246# tab-width:2
247# indent-tabs-mode:nil
248# End:
249# vim: set expandtab tabstop=2 shiftwidth=2: