blob: 9009ad95714c012c0e9c33cbc5642209eae7edcc [file] [log] [blame]
scroggo@google.comf1754ec2013-06-28 21:32:00 +00001# Gyp for utils.
epoger@google.comae85aea2011-05-31 13:50:51 +00002{
epoger@google.comae85aea2011-05-31 13:50:51 +00003 'targets': [
4 {
5 'target_name': 'utils',
borenet@google.comefb1d772012-10-10 19:45:51 +00006 'product_name': 'skia_utils',
epoger@google.comae85aea2011-05-31 13:50:51 +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 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000012 'include_dirs': [
junov@chromium.org77eec242012-07-18 17:54:45 +000013 '../include/effects',
bungeman@google.com8c6a4f22013-04-23 18:06:23 +000014 '../include/images',
commit-bot@chromium.org064779a2013-07-01 17:50:29 +000015 '../include/pathops',
junov@chromium.org77eec242012-07-18 17:54:45 +000016 '../include/pipe',
epoger@google.comae85aea2011-05-31 13:50:51 +000017 '../include/utils',
epoger@google.com0a030cd2011-06-02 19:52:14 +000018 '../include/utils/mac',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +000019 '../include/utils/unix',
bungeman@google.com9df621d2011-06-23 21:43:52 +000020 '../include/utils/win',
bungeman@google.com5a64e582012-03-29 14:51:56 +000021 '../include/xml',
junov@chromium.orgbaa02202013-01-24 14:38:23 +000022 '../src/core',
bungeman@google.come8f05922012-08-16 16:13:40 +000023 '../src/utils',
epoger@google.comae85aea2011-05-31 13:50:51 +000024 ],
25 'sources': [
scroggo@google.com4177ef42012-10-31 15:52:16 +000026 # Classes for a threadpool.
27 '../include/utils/SkCondVar.h',
28 '../include/utils/SkCountdown.h',
29 '../include/utils/SkRunnable.h',
30 '../include/utils/SkThreadPool.h',
31 '../src/utils/SkCondVar.cpp',
32 '../src/utils/SkCountdown.cpp',
scroggo@google.com4177ef42012-10-31 15:52:16 +000033
epoger@google.comae85aea2011-05-31 13:50:51 +000034 '../include/utils/SkBoundaryPatch.h',
scroggo@google.com83fd2c72013-09-26 21:35:39 +000035 '../include/utils/SkFrontBufferedStream.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000036 '../include/utils/SkCamera.h',
djsollen@google.com5587ac02013-08-29 20:20:40 +000037 '../include/utils/SkCanvasStateUtils.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000038 '../include/utils/SkCubicInterval.h',
39 '../include/utils/SkCullPoints.h',
humper@google.com5d0a7692013-02-14 18:57:59 +000040 '../include/utils/SkDebugUtils.h',
junov@google.com4370aed2012-01-18 16:21:08 +000041 '../include/utils/SkDeferredCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000042 '../include/utils/SkDumpCanvas.h',
commit-bot@chromium.org6169f2b2014-01-31 00:04:25 +000043 '../include/utils/SkEventTracer.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000044 '../include/utils/SkInterpolator.h',
45 '../include/utils/SkLayer.h',
reed@google.comc8cc60c2011-06-13 14:58:44 +000046 '../include/utils/SkMatrix44.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000047 '../include/utils/SkMeshUtils.h',
48 '../include/utils/SkNinePatch.h',
robertphillips@google.com0f03f432014-03-16 21:59:11 +000049 '../include/utils/SkNoSaveLayerCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000050 '../include/utils/SkNWayCanvas.h',
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000051 '../include/utils/SkNullCanvas.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000052 '../include/utils/SkParse.h',
53 '../include/utils/SkParsePaint.h',
54 '../include/utils/SkParsePath.h',
djsollen@google.comfdabcb52012-12-05 06:15:42 +000055 '../include/utils/SkPictureUtils.h',
bsalomon@google.com3bc72002013-01-25 17:49:03 +000056 '../include/utils/SkRandom.h',
humper@google.com7af56be2013-01-14 18:49:19 +000057 '../include/utils/SkRTConf.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000058 '../include/utils/SkProxyCanvas.h',
bsalomon@google.combd7c6412011-12-01 16:34:28 +000059 '../include/utils/SkWGL.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000060
bungeman@google.comaf5bbf22012-02-07 20:47:38 +000061 '../src/utils/SkBase64.cpp',
62 '../src/utils/SkBase64.h',
epoger@google.com908f5832013-04-12 02:23:55 +000063 '../src/utils/SkBitmapHasher.cpp',
64 '../src/utils/SkBitmapHasher.h',
vandebo@chromium.orgec1a7fa2012-03-21 23:11:46 +000065 '../src/utils/SkBitSet.cpp',
66 '../src/utils/SkBitSet.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000067 '../src/utils/SkBoundaryPatch.cpp',
scroggo@google.com83fd2c72013-09-26 21:35:39 +000068 '../src/utils/SkFrontBufferedStream.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000069 '../src/utils/SkCamera.cpp',
djsollen@google.com339e79f2013-09-04 17:16:00 +000070 '../src/utils/SkCanvasStack.h',
71 '../src/utils/SkCanvasStack.cpp',
djsollen@google.com5587ac02013-08-29 20:20:40 +000072 '../src/utils/SkCanvasStateUtils.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000073 '../src/utils/SkCubicInterval.cpp',
74 '../src/utils/SkCullPoints.cpp',
junov@google.com4370aed2012-01-18 16:21:08 +000075 '../src/utils/SkDeferredCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000076 '../src/utils/SkDumpCanvas.cpp',
commit-bot@chromium.org6169f2b2014-01-31 00:04:25 +000077 '../src/utils/SkEventTracer.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +000078 '../src/utils/SkFloatUtils.h',
robertphillips@google.com56bf6e42014-01-13 13:33:26 +000079 '../src/utils/SkGatherPixelRefsAndRects.cpp',
bsalomon@google.comfde5e262014-01-17 20:33:09 +000080 '../src/utils/SkGatherPixelRefsAndRects.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000081 '../src/utils/SkInterpolator.cpp',
82 '../src/utils/SkLayer.cpp',
bungeman@google.comd3fbd342014-04-15 15:52:07 +000083 '../src/utils/SkMatrix22.cpp',
84 '../src/utils/SkMatrix22.h',
reed@google.comc8cc60c2011-06-13 14:58:44 +000085 '../src/utils/SkMatrix44.cpp',
bungeman@google.comcfcb1be2013-01-31 19:47:48 +000086 '../src/utils/SkMD5.cpp',
87 '../src/utils/SkMD5.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000088 '../src/utils/SkMeshUtils.cpp',
89 '../src/utils/SkNinePatch.cpp',
90 '../src/utils/SkNWayCanvas.cpp',
bsalomon@google.com19bbd3d2012-06-11 15:39:15 +000091 '../src/utils/SkNullCanvas.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000092 '../src/utils/SkOSFile.cpp',
93 '../src/utils/SkParse.cpp',
94 '../src/utils/SkParseColor.cpp',
95 '../src/utils/SkParsePath.cpp',
reed@google.comfe7b1ed2012-11-29 21:00:39 +000096 '../src/utils/SkPictureUtils.cpp',
commit-bot@chromium.org064779a2013-07-01 17:50:29 +000097 '../src/utils/SkPathUtils.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +000098 '../src/utils/SkProxyCanvas.cpp',
bungeman@google.comcfcb1be2013-01-31 19:47:48 +000099 '../src/utils/SkSHA1.cpp',
100 '../src/utils/SkSHA1.h',
humper@google.com7af56be2013-01-14 18:49:19 +0000101 '../src/utils/SkRTConf.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +0000102 '../src/utils/SkThreadUtils.h',
103 '../src/utils/SkThreadUtils_pthread.cpp',
104 '../src/utils/SkThreadUtils_pthread.h',
105 '../src/utils/SkThreadUtils_pthread_linux.cpp',
106 '../src/utils/SkThreadUtils_pthread_mach.cpp',
107 '../src/utils/SkThreadUtils_pthread_other.cpp',
108 '../src/utils/SkThreadUtils_win.cpp',
109 '../src/utils/SkThreadUtils_win.h',
bungeman@google.comf5cc5b12013-07-12 18:22:49 +0000110 '../src/utils/SkTFitsIn.h',
111 '../src/utils/SkTLogic.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000112
bungeman@google.com9df621d2011-06-23 21:43:52 +0000113 #mac
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000114 '../include/utils/mac/SkCGUtils.h',
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000115 '../src/utils/mac/SkCreateCGImageRef.cpp',
rmistry@google.comd6176b02012-08-23 18:14:13 +0000116
bungeman@google.com9df621d2011-06-23 21:43:52 +0000117 #windows
118 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000119 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000120 '../include/utils/win/SkIStream.h',
121 '../include/utils/win/SkTScopedComPtr.h',
122 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.com72cf4fc2014-03-21 22:48:32 +0000123 '../src/utils/win/SkDWrite.h',
124 '../src/utils/win/SkDWrite.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +0000125 '../src/utils/win/SkDWriteFontFileStream.cpp',
126 '../src/utils/win/SkDWriteFontFileStream.h',
127 '../src/utils/win/SkDWriteGeometrySink.cpp',
128 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000129 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000130 '../src/utils/win/SkIStream.cpp',
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000131 '../src/utils/win/SkWGL_win.cpp',
skia.committer@gmail.com26da7f02013-06-01 07:01:39 +0000132
reed@google.com7edec142013-05-31 20:17:57 +0000133 #testing
134 '../src/fonts/SkGScalerContext.cpp',
135 '../src/fonts/SkGScalerContext.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000136 ],
137 'sources!': [
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000138 '../src/utils/SDL/SkOSWindow_SDL.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000139 ],
140 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000141 [ 'skia_os == "mac"', {
epoger@google.comc39f1752011-06-03 17:52:12 +0000142 'link_settings': {
143 'libraries': [
144 '$(SDKROOT)/System/Library/Frameworks/AGL.framework',
145 ],
146 },
caryclark@google.com5c83dcc2012-09-26 13:02:37 +0000147 }],
148 [ 'skia_os in ["mac", "ios"]', {
bungeman@google.comfe5afe52011-06-24 13:58:17 +0000149 'direct_dependent_settings': {
150 'include_dirs': [
151 '../include/utils/mac',
152 ],
153 },
bungeman@google.com55487522012-05-14 14:09:24 +0000154 'sources!': [
155 '../src/utils/SkThreadUtils_pthread_other.cpp',
156 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000157 },{ #else if 'skia_os != "mac"'
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000158 'include_dirs!': [
bungeman@google.com9df621d2011-06-23 21:43:52 +0000159 '../include/utils/mac',
160 ],
161 'sources!': [
162 '../include/utils/mac/SkCGUtils.h',
163 '../src/utils/mac/SkCreateCGImageRef.cpp',
bungeman@google.com55487522012-05-14 14:09:24 +0000164 '../src/utils/SkThreadUtils_pthread_mach.cpp',
senorblanco@chromium.org907afca2011-06-01 20:55:45 +0000165 ],
bungeman@google.com63aab2f2011-06-01 16:15:43 +0000166 }],
borenet@google.com05d550e2013-06-11 15:52:19 +0000167 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
bungeman@google.com55487522012-05-14 14:09:24 +0000168 'sources!': [
169 '../src/utils/SkThreadUtils_pthread_other.cpp',
170 ],
borenet@google.com05d550e2013-06-11 15:52:19 +0000171 },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000172 'include_dirs!': [
173 '../include/utils/unix',
174 ],
bungeman@google.com55487522012-05-14 14:09:24 +0000175 'sources!': [
176 '../src/utils/SkThreadUtils_pthread_linux.cpp',
177 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000178 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000179 [ 'skia_os == "win"', {
bungeman@google.com9df621d2011-06-23 21:43:52 +0000180 'direct_dependent_settings': {
181 'include_dirs': [
182 '../include/utils/win',
183 ],
184 },
bungeman@google.com55487522012-05-14 14:09:24 +0000185 'sources!': [
186 '../src/utils/SkThreadUtils_pthread.cpp',
187 '../src/utils/SkThreadUtils_pthread.h',
188 '../src/utils/SkThreadUtils_pthread_other.cpp',
189 ],
epoger@google.com8846cb22011-07-01 20:20:07 +0000190 },{ #else if 'skia_os != "win"'
bungeman@google.com9df621d2011-06-23 21:43:52 +0000191 'include_dirs!': [
192 '../include/utils/win',
193 ],
bsalomon@google.combd7c6412011-12-01 16:34:28 +0000194 'sources/': [ ['exclude', '_win.(h|cpp)$'],],
bungeman@google.com9df621d2011-06-23 21:43:52 +0000195 'sources!': [
196 '../include/utils/win/SkAutoCoInitialize.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000197 '../include/utils/win/SkHRESULT.h',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000198 '../include/utils/win/SkIStream.h',
199 '../include/utils/win/SkTScopedComPtr.h',
200 '../src/utils/win/SkAutoCoInitialize.cpp',
bungeman@google.com72cf4fc2014-03-21 22:48:32 +0000201 '../src/utils/win/SkDWrite.h',
202 '../src/utils/win/SkDWrite.cpp',
bungeman@google.come8f05922012-08-16 16:13:40 +0000203 '../src/utils/win/SkDWriteFontFileStream.cpp',
204 '../src/utils/win/SkDWriteFontFileStream.h',
205 '../src/utils/win/SkDWriteGeometrySink.cpp',
206 '../src/utils/win/SkDWriteGeometrySink.h',
bungeman@google.comb29c8832011-10-10 13:19:10 +0000207 '../src/utils/win/SkHRESULT.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000208 '../src/utils/win/SkIStream.cpp',
bungeman@google.com9df621d2011-06-23 21:43:52 +0000209 ],
bungeman@google.com3b0a8da2011-06-02 15:38:06 +0000210 }],
borenet@google.com7158e6a2012-11-01 17:43:44 +0000211 [ 'skia_os == "nacl"', {
borenet@google.coma98eb912012-09-04 21:09:40 +0000212 'sources': [
213 '../src/utils/SkThreadUtils_pthread_other.cpp',
214 ],
215 'sources!': [
216 '../src/utils/SkThreadUtils_pthread_linux.cpp',
217 ],
218 }],
djsollen@google.com276a2952012-11-19 19:34:23 +0000219 [ 'skia_os == "android"', {
220 'sources': [
djsollen@google.comefbe8e92013-02-07 18:58:35 +0000221 '../src/utils/android/ashmem.cpp',
djsollen@google.com276a2952012-11-19 19:34:23 +0000222 ],
223 }],
commit-bot@chromium.org23a91212013-11-12 17:44:28 +0000224 ['skia_run_pdfviewer_in_gm', {
225 'defines': [
226 'SK_BUILD_NATIVE_PDF_RENDERER',
227 ],
228 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000229 ],
230 'direct_dependent_settings': {
231 'include_dirs': [
232 '../include/utils',
commit-bot@chromium.orgef57b7e2014-02-28 20:31:31 +0000233 '../src/utils',
epoger@google.comae85aea2011-05-31 13:50:51 +0000234 ],
235 },
236 },
epoger@google.comae85aea2011-05-31 13:50:51 +0000237 ],
238}