blob: c62657de7b960580f755de31d0e3815911c6db0d [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',
bsalomon@google.com3bc72002013-01-25 17:49:03 +000051 '../include/utils/SkRandom.h',
humper@google.com7af56be2013-01-14 18:49:19 +000052 '../include/utils/SkRTConf.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000053 '../include/utils/SkProxyCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000054 '../include/utils/SkUnitMappers.h',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000055 '../include/utils/SkWGL.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000056
bungeman@google.comaf5bbf22012-02-07 20:47:38 +000057 '../src/utils/SkBase64.cpp',
58 '../src/utils/SkBase64.h',
epoger@google.com31114c62012-12-12 17:22:23 +000059 '../src/utils/SkBitmapChecksummer.cpp',
60 '../src/utils/SkBitmapChecksummer.h',
61 '../src/utils/SkBitmapTransformer.cpp',
62 '../src/utils/SkBitmapTransformer.h',
vandebo@chromium.orgec1a7fa2012-03-21 23:11:46 +000063 '../src/utils/SkBitSet.cpp',
64 '../src/utils/SkBitSet.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000065 '../src/utils/SkBoundaryPatch.cpp',
66 '../src/utils/SkCamera.cpp',
epoger@google.com7346df52012-12-07 19:06:11 +000067 '../src/utils/SkCityHash.cpp',
68 '../src/utils/SkCityHash.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000069 '../src/utils/SkCubicInterval.cpp',
70 '../src/utils/SkCullPoints.cpp',
junov@google.com4370aed2012-01-18 16:21:08 +000071 '../src/utils/SkDeferredCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000072 '../src/utils/SkDumpCanvas.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +000073 '../src/utils/SkFloatUtils.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000074 '../src/utils/SkInterpolator.cpp',
75 '../src/utils/SkLayer.cpp',
reed@google.comc8cc60c2011-06-13 14:58:44 +000076 '../src/utils/SkMatrix44.cpp',
bungeman@google.comcfcb1be2013-01-31 19:47:48 +000077 '../src/utils/SkMD5.cpp',
78 '../src/utils/SkMD5.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000079 '../src/utils/SkMeshUtils.cpp',
80 '../src/utils/SkNinePatch.cpp',
81 '../src/utils/SkNWayCanvas.cpp',
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000082 '../src/utils/SkNullCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000083 '../src/utils/SkOSFile.cpp',
84 '../src/utils/SkParse.cpp',
85 '../src/utils/SkParseColor.cpp',
86 '../src/utils/SkParsePath.cpp',
reed@google.comfe7b1ed2012-11-29 21:00:39 +000087 '../src/utils/SkPictureUtils.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000088 '../src/utils/SkProxyCanvas.cpp',
bungeman@google.comcfcb1be2013-01-31 19:47:48 +000089 '../src/utils/SkSHA1.cpp',
90 '../src/utils/SkSHA1.h',
humper@google.com7af56be2013-01-14 18:49:19 +000091 '../src/utils/SkRTConf.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +000092 '../src/utils/SkThreadUtils.h',
93 '../src/utils/SkThreadUtils_pthread.cpp',
94 '../src/utils/SkThreadUtils_pthread.h',
95 '../src/utils/SkThreadUtils_pthread_linux.cpp',
96 '../src/utils/SkThreadUtils_pthread_mach.cpp',
97 '../src/utils/SkThreadUtils_pthread_other.cpp',
98 '../src/utils/SkThreadUtils_win.cpp',
99 '../src/utils/SkThreadUtils_win.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000100 '../src/utils/SkUnitMappers.cpp',
101
bungeman@google.com9df621d2011-06-23 21:43:52 +0000102 #mac
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000103 '../include/utils/mac/SkCGUtils.h',
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000104 '../src/utils/mac/SkCreateCGImageRef.cpp',
rmistry@google.comd6176b02012-08-23 18:14:13 +0000105
bungeman@google.com9df621d2011-06-23 21:43:52 +0000106 #windows
107 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000108 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000109 '../include/utils/win/SkIStream.h',
110 '../include/utils/win/SkTScopedComPtr.h',
111 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +0000112 '../src/utils/win/SkDWriteFontFileStream.cpp',
113 '../src/utils/win/SkDWriteFontFileStream.h',
114 '../src/utils/win/SkDWriteGeometrySink.cpp',
115 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000116 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000117 '../src/utils/win/SkIStream.cpp',
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000118 '../src/utils/win/SkWGL_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000119 ],
120 'sources!': [
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000121 '../src/utils/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000122 ],
123 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000124 [ 'skia_os == "mac"', {
epoger@google.comc39f1752011-06-03 17:52:12 +0000125 'link_settings': {
126 'libraries': [
127 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
128 ],
129 },
caryclark@google.com5c83dcc2012-09-26 13:02:37 +0000130 }],
131 [ 'skia_os in ["mac", "ios"]', {
bungeman@google.comfe5afe52011-06-24 13:58:17 +0000132 'direct_dependent_settings': {
133 'include_dirs': [
134 '../include/utils/mac',
135 ],
136 },
bungeman@google.com55487522012-05-14 14:09:24 +0000137 'sources!': [
138 '../src/utils/SkThreadUtils_pthread_other.cpp',
139 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000140 },{ #else if 'skia_os != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000141 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000142 '../include/utils/mac',
143 ],
144 'sources!': [
145 '../include/utils/mac/SkCGUtils.h',
146 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +0000147 '../src/utils/SkThreadUtils_pthread_mach.cpp',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000148 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000149 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000150 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
bungeman@google.com55487522012-05-14 14:09:24 +0000151 'sources!': [
152 '../src/utils/SkThreadUtils_pthread_other.cpp',
153 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000154 },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris"]'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000155 'include_dirs!': [
156 '../include/utils/unix',
157 ],
bungeman@google.com55487522012-05-14 14:09:24 +0000158 'sources!': [
159 '../src/utils/SkThreadUtils_pthread_linux.cpp',
160 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000161 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000162 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +0000163 'direct_dependent_settings': {
164 'include_dirs': [
165 '../include/utils/win',
166 ],
167 },
bungeman@google.com55487522012-05-14 14:09:24 +0000168 'sources!': [
169 '../src/utils/SkThreadUtils_pthread.cpp',
170 '../src/utils/SkThreadUtils_pthread.h',
171 '../src/utils/SkThreadUtils_pthread_other.cpp',
172 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000173 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000174 'include_dirs!': [
175 '../include/utils/win',
176 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000177 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +0000178 'sources!': [
179 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000180 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000181 '../include/utils/win/SkIStream.h',
182 '../include/utils/win/SkTScopedComPtr.h',
183 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +0000184 '../src/utils/win/SkDWriteFontFileStream.cpp',
185 '../src/utils/win/SkDWriteFontFileStream.h',
186 '../src/utils/win/SkDWriteGeometrySink.cpp',
187 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000188 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000189 '../src/utils/win/SkIStream.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000190 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000191 }],
borenet@google.com7158e6a2012-11-01 17:43:44 +0000192 [ 'skia_os == "nacl"', {
borenet@google.coma98eb912012-09-04 21:09:40 +0000193 'sources': [
194 '../src/utils/SkThreadUtils_pthread_other.cpp',
195 ],
196 'sources!': [
197 '../src/utils/SkThreadUtils_pthread_linux.cpp',
198 ],
199 }],
djsollen@google.com276a2952012-11-19 19:34:23 +0000200 [ 'skia_os == "android"', {
201 'sources': [
202 '../src/utils/android/ashmem.c',
203 ],
204 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000205 ],
206 'direct_dependent_settings': {
207 'include_dirs': [
208 '../include/utils',
209 ],
210 },
211 },
epoger@google.com0bba6bd2012-12-07 15:12:01 +0000212 {
213 'target_name': 'cityhash',
214 'type': 'static_library',
215 'standalone_static_library': 1,
216 'include_dirs': [
217 '../include/config',
218 '../include/core',
219 '../src/utils/cityhash',
220 '../third_party/externals/cityhash/src',
221 ],
222 'sources': [
223 '../third_party/externals/cityhash/src/city.cc',
224 ],
225 'direct_dependent_settings': {
226 'include_dirs': [
227 '../third_party/externals/cityhash/src',
228 ],
229 },
humper@google.comaf2bd7b2013-01-07 19:02:46 +0000230 'conditions': [
231 [ 'skia_os == "mac"', {
232 'xcode_settings': {
233 'OTHER_CPLUSPLUSFLAGS!': [
234 '-Werror',
235 ]
236 },
237 }],
bsalomon@google.com50c79d82013-01-08 20:31:53 +0000238 [ 'skia_os == "win"', {
239 'msvs_settings': {
240 'VCCLCompilerTool': {
241 'WarnAsError': 'false',
242 },
243 },
244 }],
humper@google.comaf2bd7b2013-01-07 19:02:46 +0000245 ],
epoger@google.com0bba6bd2012-12-07 15:12:01 +0000246 },
epoger@google.comae85aea2011-05-31 13:50:51 +0000247 ],
248}
249
250# Local Variables:
251# tab-width:2
252# indent-tabs-mode:nil
253# End:
254# vim: set expandtab tabstop=2 shiftwidth=2: