blob: dae1cf58c799a2f31c85c38a9520cae5206727f3 [file] [log] [blame]
epoger@google.comccdbd2c2011-06-02 14:38:23 +00001# GYP file to build various tools.
2#
3# To build on Linux:
4# ./gyp_skia tools.gyp && make tools
5#
epoger@google.comccdbd2c2011-06-02 14:38:23 +00006{
7 'includes': [
8 'apptype_console.gypi',
epoger@google.comccdbd2c2011-06-02 14:38:23 +00009 ],
10 'targets': [
11 {
12 # Build all executable targets defined below.
13 'target_name': 'tools',
14 'type': 'none',
15 'dependencies': [
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +000016 'bbh_shootout',
edisonn@google.com8ba9a832013-01-18 18:06:22 +000017 'bench_pictures',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +000018 'dump_record',
edisonn@google.com8ba9a832013-01-18 18:06:22 +000019 'filter',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +000020 'gpuveto',
commit-bot@chromium.org5ccdf012014-01-02 18:51:38 +000021 'lua_app',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +000022 'lua_pictures',
edisonn@google.com8ba9a832013-01-18 18:06:22 +000023 'pinspect',
24 'render_pdfs',
25 'render_pictures',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000026 'skdiff',
commit-bot@chromium.org5ccdf012014-01-02 18:51:38 +000027 'skhello',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +000028 'skpdiff',
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +000029 'skpinfo',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +000030 'skpmaker',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000031 'skimage',
halcanary@google.comfed30372013-10-04 12:46:45 +000032 'test_image_decoder',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000033 ],
zachr@google.com28c27c82013-06-20 17:15:05 +000034 'conditions': [
35 ['skia_shared_lib',
36 {
37 'dependencies': [
38 'sklua', # This can only be built if skia is built as a shared library
39 ],
40 },
41 ],
42 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +000043 },
mtklein9ac68ee2014-06-20 11:29:20 -070044 { # This would go in gm.gyp, but it's also used by skimage below.
45 'target_name': 'gm_expectations',
46 'type': 'static_library',
47 'include_dirs' : [ '../src/utils/' ],
48 'sources': [
49 '../gm/gm_expectations.cpp',
mtklein9ac68ee2014-06-20 11:29:20 -070050 ],
51 'dependencies': [
52 'jsoncpp.gyp:jsoncpp',
tfarina20108912014-06-21 10:54:17 -070053 'sk_tool_utils',
mtklein9ac68ee2014-06-20 11:29:20 -070054 'skia_lib.gyp:skia_lib',
55 ],
56 'direct_dependent_settings': {
57 'include_dirs': [ '../gm/' ],
58 },
59 },
60 {
61 'target_name': 'crash_handler',
62 'type': 'static_library',
63 'sources': [ '../tools/CrashHandler.cpp' ],
64 'dependencies': [ 'skia_lib.gyp:skia_lib' ],
65 'direct_dependent_settings': {
66 'include_dirs': [ '../tools' ],
67 },
68 'all_dependent_settings': {
69 'msvs_settings': {
70 'VCLinkerTool': {
71 'AdditionalDependencies': [ 'Dbghelp.lib' ],
72 }
73 },
74 }
75 },
76 {
77 'target_name': 'resources',
78 'type': 'static_library',
79 'sources': [ '../tools/Resources.cpp' ],
80 'dependencies': [
81 'flags.gyp:flags',
82 'skia_lib.gyp:skia_lib',
83 ],
84 'direct_dependent_settings': {
tfarina20108912014-06-21 10:54:17 -070085 'include_dirs': [ '../tools', ],
86 },
87 },
88 {
89 'target_name': 'sk_tool_utils',
90 'type': 'static_library',
caryclark5fb6bd42014-06-23 11:25:00 -070091 'sources': [
92 '../tools/sk_tool_utils.cpp',
93 '../tools/sk_tool_utils_font.cpp',
94 ],
Cary Clark992c7b02014-07-31 08:58:44 -040095 'include_dirs': [
96 '../src/fonts',
97 ],
tfarina20108912014-06-21 10:54:17 -070098 'dependencies': [
mtkleinada972d2014-07-31 08:31:56 -070099 'resources',
Cary Clark992c7b02014-07-31 08:58:44 -0400100 'flags.gyp:flags',
tfarina20108912014-06-21 10:54:17 -0700101 'skia_lib.gyp:skia_lib',
102 ],
103 'direct_dependent_settings': {
104 'include_dirs': [ '../tools', ],
mtklein9ac68ee2014-06-20 11:29:20 -0700105 },
106 },
107 {
108 'target_name' : 'timer',
109 'type': 'static_library',
110 'sources': [
111 '../tools/timer/Timer.cpp',
112 '../tools/timer/TimerData.cpp',
113 ],
114 'include_dirs': [
115 '../src/core',
116 '../src/gpu',
117 ],
118 'direct_dependent_settings': {
119 'include_dirs': ['../tools/timer'],
120 },
121 'dependencies': [
122 'skia_lib.gyp:skia_lib',
123 'jsoncpp.gyp:jsoncpp',
124 ],
125 'conditions': [
126 ['skia_gpu == 1', {
127 'sources': [ '../tools/timer/GpuTimer.cpp' ],
128 }],
129 [ 'skia_os in ["mac", "ios"]', {
130 'sources': [ '../tools/timer/SysTimer_mach.cpp' ],
131 }],
132 [ 'skia_os == "win"', {
133 'sources': [ '../tools/timer/SysTimer_windows.cpp' ],
134 }],
135 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android", "chromeos"]', {
136 'sources': [ '../tools/timer/SysTimer_posix.cpp' ],
137 }],
138 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
139 'link_settings': { 'libraries': [ '-lrt' ] },
140 }],
141 ],
142 },
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000143 {
144 'target_name': 'skdiff',
145 'type': 'executable',
146 'sources': [
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000147 '../tools/skdiff.cpp',
148 '../tools/skdiff.h',
149 '../tools/skdiff_html.cpp',
150 '../tools/skdiff_html.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000151 '../tools/skdiff_main.cpp',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000152 '../tools/skdiff_utils.cpp',
153 '../tools/skdiff_utils.h',
154 ],
155 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000156 'skia_lib.gyp:skia_lib',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000157 ],
158 },
159 {
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000160 'target_name': 'skpdiff',
161 'type': 'executable',
162 'sources': [
163 '../tools/skpdiff/skpdiff_main.cpp',
164 '../tools/skpdiff/SkDiffContext.cpp',
165 '../tools/skpdiff/SkImageDiffer.cpp',
166 '../tools/skpdiff/SkPMetric.cpp',
167 '../tools/skpdiff/skpdiff_util.cpp',
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000168 ],
169 'include_dirs': [
djsollen@google.comefc51b72013-11-12 18:29:17 +0000170 '../src/core/', # needed for SkTLList.h
stephana21b342d2014-08-13 10:36:06 -0700171 '../tools/', # needed for picture_utils::replace_char
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000172 ],
173 'dependencies': [
tfarina1c4d5782014-06-22 16:13:00 -0700174 'flags.gyp:flags',
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000175 'skia_lib.gyp:skia_lib',
stephana21b342d2014-08-13 10:36:06 -0700176 'tools.gyp:picture_utils',
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000177 ],
178 'cflags': [
179 '-O3',
180 ],
181 'conditions': [
182 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
183 'link_settings': {
184 'libraries': [
185 '-lrt',
186 ],
187 },
188 }],
189 ['skia_opencl', {
190 'sources': [
191 '../tools/skpdiff/SkCLImageDiffer.cpp',
192 '../tools/skpdiff/SkDifferentPixelsMetric_opencl.cpp',
193 ],
194 'conditions': [
195 [ 'skia_os == "mac"', {
196 'link_settings': {
197 'libraries': [
198 '$(SDKROOT)/System/Library/Frameworks/OpenCL.framework',
199 ]
200 }
201 }, {
202 'link_settings': {
203 'libraries': [
204 '-lOpenCL',
205 ],
206 },
207 }],
208 ],
209 }, { # !skia_opencl
210 'sources': [
211 '../tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp',
212 ],
213 }],
214 ],
215 },
216 {
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +0000217 'target_name': 'skpmaker',
218 'type': 'executable',
219 'sources': [
220 '../tools/skpmaker.cpp',
221 ],
222 'include_dirs': [
223 '../src/core',
224 ],
225 'dependencies': [
226 'flags.gyp:flags',
227 'skia_lib.gyp:skia_lib',
228 ],
229 },
230 {
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000231 'target_name': 'skimagediff',
232 'type': 'executable',
233 'sources': [
234 '../tools/skdiff.cpp',
235 '../tools/skdiff.h',
236 '../tools/skdiff_html.cpp',
237 '../tools/skdiff_html.h',
238 '../tools/skdiff_image.cpp',
239 '../tools/skdiff_utils.cpp',
240 '../tools/skdiff_utils.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000241 ],
242 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000243 'skia_lib.gyp:skia_lib',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000244 ],
245 },
246 {
247 'target_name': 'skhello',
248 'type': 'executable',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000249 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000250 'skia_lib.gyp:skia_lib',
borenet@google.combb522882013-06-17 15:39:43 +0000251 ],
252 'conditions': [
253 [ 'skia_os == "nacl"', {
254 'sources': [
255 '../platform_tools/nacl/src/nacl_hello.cpp',
256 ],
257 }, {
258 'sources': [
259 '../tools/skhello.cpp',
260 ],
261 'dependencies': [
borenet@google.combb522882013-06-17 15:39:43 +0000262 'flags.gyp:flags',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000263 'pdf.gyp:pdf',
borenet@google.combb522882013-06-17 15:39:43 +0000264 ],
265 }],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000266 ],
267 },
268 {
269 'target_name': 'skimage',
270 'type': 'executable',
271 'sources': [
272 '../tools/skimage_main.cpp',
273 ],
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000274 'include_dirs': [
275 # For SkBitmapHasher.h
276 '../src/utils/',
caryclark5fb6bd42014-06-23 11:25:00 -0700277 '../tools/',
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000278 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000279 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700280 'gm_expectations',
scroggo@google.comb41ff952013-04-11 15:53:35 +0000281 'flags.gyp:flags',
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000282 'jsoncpp.gyp:jsoncpp',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000283 'skia_lib.gyp:skia_lib',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000284 ],
285 },
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +0000286 {
287 'target_name': 'skpinfo',
288 'type': 'executable',
289 'sources': [
290 '../tools/skpinfo.cpp',
291 ],
292 'include_dirs': [
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +0000293 '../src/core/',
294 ],
295 'dependencies': [
296 'flags.gyp:flags',
297 'skia_lib.gyp:skia_lib',
298 ],
299 },
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000300 {
301 'target_name': 'gpuveto',
302 'type': 'executable',
303 'sources': [
304 '../tools/gpuveto.cpp',
305 '../tools/LazyDecodeBitmap.cpp',
306 ],
307 'include_dirs': [
308 '../src/core/',
309 '../src/images',
310 '../src/lazy',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000311 ],
312 'dependencies': [
313 'flags.gyp:flags',
314 'skia_lib.gyp:skia_lib',
315 ],
316 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000317 {
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000318 'target_name': 'lua_app',
319 'type': 'executable',
320 'sources': [
321 '../tools/lua/lua_app.cpp',
322 '../src/utils/SkLua.cpp',
323 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000324 'include_dirs': [
325 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
326 '../src/gpu/',
327 '../src/core/',
328 ],
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000329 'dependencies': [
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000330 'effects.gyp:effects',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000331 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000332 'lua.gyp:lua',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000333 'pdf.gyp:pdf',
334 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000335 'skia_lib.gyp:skia_lib',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000336 ],
337 },
338 {
reed@google.comdff7e112013-05-15 19:34:20 +0000339 'target_name': 'lua_pictures',
340 'type': 'executable',
341 'sources': [
342 '../tools/lua/lua_pictures.cpp',
343 '../src/utils/SkLuaCanvas.cpp',
reed@google.com74ce6f02013-05-22 15:13:18 +0000344 '../src/utils/SkLua.cpp',
reed@google.comdff7e112013-05-15 19:34:20 +0000345 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000346 'include_dirs': [
347 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
348 '../src/gpu/',
349 '../src/core/',
350 ],
reed@google.comdff7e112013-05-15 19:34:20 +0000351 'dependencies': [
reed@google.comdff7e112013-05-15 19:34:20 +0000352 'effects.gyp:effects',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000353 'flags.gyp:flags',
reed@google.comdff7e112013-05-15 19:34:20 +0000354 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000355 'lua.gyp:lua',
reed@google.comdff7e112013-05-15 19:34:20 +0000356 'tools.gyp:picture_renderer',
357 'tools.gyp:picture_utils',
mike@reedtribe.orgfb858242013-06-08 16:39:44 +0000358 'pdf.gyp:pdf',
reed@google.comdff7e112013-05-15 19:34:20 +0000359 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000360 'skia_lib.gyp:skia_lib',
reed@google.comdff7e112013-05-15 19:34:20 +0000361 ],
362 },
363 {
junov@chromium.org777442d2012-06-12 14:56:36 +0000364 'target_name': 'render_pictures',
365 'type': 'executable',
366 'sources': [
367 '../tools/render_pictures_main.cpp',
keyar@chromium.orga2333d92012-07-16 17:29:16 +0000368 ],
369 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000370 '../src/core',
371 '../src/images',
372 '../src/lazy',
keyar@chromium.orga2333d92012-07-16 17:29:16 +0000373 '../src/pipe/utils/',
junov@chromium.org777442d2012-06-12 14:56:36 +0000374 ],
375 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000376 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000377 'skia_lib.gyp:skia_lib',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000378 'tools.gyp:picture_renderer',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000379 'tools.gyp:picture_utils',
380 ],
381 },
382 {
reed@google.com006db0f2012-06-27 19:33:29 +0000383 'target_name': 'bench_pictures',
384 'type': 'executable',
385 'sources': [
tfarinaf168b862014-06-19 12:32:29 -0700386 '../bench/BenchLogger.cpp',
387 '../bench/BenchLogger.h',
commit-bot@chromium.org37c772a2014-05-29 17:10:24 +0000388 '../tools/PictureBenchmark.cpp',
389 '../tools/PictureResultsWriter.h',
keyar@chromium.orgcf6c44c2012-07-09 19:37:40 +0000390 '../tools/bench_pictures_main.cpp',
reed@google.com006db0f2012-06-27 19:33:29 +0000391 ],
392 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000393 '../src/core/',
reed@google.com006db0f2012-06-27 19:33:29 +0000394 '../bench',
scroggo@google.comcc690202013-03-04 19:56:21 +0000395 '../src/lazy/',
reed@google.com006db0f2012-06-27 19:33:29 +0000396 ],
397 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700398 'timer',
399 'crash_handler',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000400 'flags.gyp:flags',
commit-bot@chromium.org37c772a2014-05-29 17:10:24 +0000401 'jsoncpp.gyp:jsoncpp',
djsollen@google.com52f02972013-06-03 12:10:19 +0000402 'skia_lib.gyp:skia_lib',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000403 'tools.gyp:picture_renderer',
mtklein30e6e2a2014-06-18 11:44:15 -0700404 'tools.gyp:picture_utils',
scroggo@google.com9a412522012-09-07 15:21:18 +0000405 ],
scroggo3eb258d2014-07-17 06:58:28 -0700406 'conditions': [
407 ['skia_android_framework == 1', {
408 'libraries': [ '-lskia' ],
409 }],
410 ],
keyar@chromium.org163b5672012-08-01 17:53:29 +0000411 },
412 {
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000413 'target_name': 'dump_record',
414 'type': 'executable',
415 'sources': [
416 '../tools/dump_record.cpp',
commit-bot@chromium.org85fd1932014-05-15 16:10:37 +0000417 '../tools/DumpRecord.cpp',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000418 '../tools/LazyDecodeBitmap.cpp',
419 ],
420 'include_dirs': [
421 '../src/core/',
422 '../src/images',
423 '../src/lazy',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000424 ],
425 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700426 'timer',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000427 'flags.gyp:flags',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000428 'skia_lib.gyp:skia_lib',
429 ],
430 },
431 {
borenet@google.comefb1d772012-10-10 19:45:51 +0000432 'target_name': 'picture_renderer',
433 'type': 'static_library',
434 'sources': [
commit-bot@chromium.org90c0fbd2014-05-09 03:18:41 +0000435 '../tools/image_expectations.h',
436 '../tools/image_expectations.cpp',
commit-bot@chromium.org56799e22013-07-16 18:21:46 +0000437 '../tools/LazyDecodeBitmap.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000438 '../tools/PictureRenderer.h',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000439 '../tools/PictureRenderer.cpp',
scroggo@google.com161e1ba2013-03-04 16:41:06 +0000440 '../tools/PictureRenderingFlags.h',
441 '../tools/PictureRenderingFlags.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000442 '../tools/CopyTilesRenderer.h',
443 '../tools/CopyTilesRenderer.cpp',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000444 '../src/pipe/utils/SamplePipeControllers.h',
445 '../src/pipe/utils/SamplePipeControllers.cpp',
borenet@google.comefb1d772012-10-10 19:45:51 +0000446 ],
447 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000448 '../src/core',
449 '../src/images',
450 '../src/lazy',
borenet@google.comefb1d772012-10-10 19:45:51 +0000451 '../src/pipe/utils/',
452 '../src/utils/',
453 ],
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000454 'direct_dependent_settings': {
455 'include_dirs': [
commit-bot@chromium.org90c0fbd2014-05-09 03:18:41 +0000456 # needed for JSON headers used within image_expectations.h
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000457 '../third_party/externals/jsoncpp-chromium/overrides/include/',
458 '../third_party/externals/jsoncpp/include/',
459 ],
460 },
borenet@google.comefb1d772012-10-10 19:45:51 +0000461 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000462 'flags.gyp:flags',
463 'jsoncpp.gyp:jsoncpp',
djsollen@google.com52f02972013-06-03 12:10:19 +0000464 'skia_lib.gyp:skia_lib',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000465 'tools.gyp:picture_utils',
borenet@google.comefb1d772012-10-10 19:45:51 +0000466 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000467 'conditions': [
468 ['skia_gpu == 1',
469 {
470 'include_dirs' : [
471 '../src/gpu',
472 ],
robertphillips@google.com94d8f1e2013-12-18 17:25:33 +0000473 'dependencies': [
474 'gputest.gyp:skgputest',
475 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000476 },
477 ],
478 ],
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000479 },
480 {
edisonn@google.comc319abe2012-11-01 19:52:38 +0000481 'target_name': 'render_pdfs',
482 'type': 'executable',
483 'sources': [
484 '../tools/render_pdfs_main.cpp',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000485 ],
486 'include_dirs': [
halcanary0bef17a2014-08-07 07:24:47 -0700487 '../src/core',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000488 '../src/pipe/utils/',
489 '../src/utils/',
490 ],
491 'dependencies': [
halcanary0bef17a2014-08-07 07:24:47 -0700492 'flags.gyp:flags',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000493 'pdf.gyp:pdf',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000494 'skia_lib.gyp:skia_lib',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000495 'tools.gyp:picture_utils',
mtkleinafb43792014-08-19 15:55:55 -0700496 'tools.gyp:proc_stats',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000497 ],
edisonn@google.com184487c2013-03-08 18:00:16 +0000498 'conditions': [
borenet@google.com2d137b62013-03-08 23:13:33 +0000499 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com184487c2013-03-08 18:00:16 +0000500 {
501 'dependencies': [
502 'tools.gyp:win_dbghelp',
503 ],
504 },
505 ],
506 # VS static libraries don't have a linker option. We must set a global
507 # project linker option, or add it to each executable.
508 ['skia_win_debuggers_path and skia_os == "win" and '
borenet@google.com2d137b62013-03-08 23:13:33 +0000509 'skia_arch_width == 64',
edisonn@google.com184487c2013-03-08 18:00:16 +0000510 {
511 'msvs_settings': {
512 'VCLinkerTool': {
513 'AdditionalDependencies': [
514 '<(skia_win_debuggers_path)/x64/DbgHelp.lib',
515 ],
516 },
517 },
518 },
519 ],
520 ['skia_win_debuggers_path and skia_os == "win" and '
borenet@google.com2d137b62013-03-08 23:13:33 +0000521 'skia_arch_width == 32',
edisonn@google.com184487c2013-03-08 18:00:16 +0000522 {
523 'msvs_settings': {
524 'VCLinkerTool': {
525 'AdditionalDependencies': [
526 '<(skia_win_debuggers_path)/DbgHelp.lib',
527 ],
528 },
529 },
530 },
531 ],
532 ],
edisonn@google.comc319abe2012-11-01 19:52:38 +0000533 },
534 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000535 'target_name': 'picture_utils',
536 'type': 'static_library',
537 'sources': [
538 '../tools/picture_utils.cpp',
borenet@google.come21795e2012-09-14 14:34:28 +0000539 '../tools/picture_utils.h',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000540 ],
541 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000542 'skia_lib.gyp:skia_lib',
junov@chromium.org777442d2012-06-12 14:56:36 +0000543 ],
reed@google.come52d2912013-05-15 20:01:07 +0000544 'direct_dependent_settings': {
545 'include_dirs': [
tfarinabcbc1782014-06-18 14:32:48 -0700546 '../tools/',
reed@google.come52d2912013-05-15 20:01:07 +0000547 ],
548 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000549 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000550 {
551 'target_name': 'pinspect',
552 'type': 'executable',
553 'sources': [
554 '../tools/pinspect.cpp',
555 ],
556 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000557 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000558 'skia_lib.gyp:skia_lib',
commit-bot@chromium.org826ec812013-06-12 18:28:36 +0000559 'tools.gyp:picture_renderer',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000560 ],
561 },
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000562 {
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000563 'target_name': 'bbh_shootout',
564 'type': 'executable',
565 'include_dirs': [
566 '../bench',
567 '../tools/'
568 ],
569 'sources': [
570 '../tools/bbh_shootout.cpp',
571
572 # Bench code:
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000573 ],
574 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700575 'timer',
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000576 'flags.gyp:flags',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000577 'skia_lib.gyp:skia_lib',
578 'tools.gyp:picture_renderer',
579 'tools.gyp:picture_utils',
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000580 ],
581 },
582 {
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000583 'target_name': 'filter',
584 'type': 'executable',
585 'include_dirs' : [
586 '../src/core',
fmalita@google.com4df16732013-06-13 21:25:45 +0000587 '../src/utils/debugger',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000588 ],
589 'sources': [
590 '../tools/filtermain.cpp',
fmalita@google.com86681b32013-06-13 20:59:14 +0000591 '../src/utils/debugger/SkDrawCommand.h',
592 '../src/utils/debugger/SkDrawCommand.cpp',
593 '../src/utils/debugger/SkDebugCanvas.h',
594 '../src/utils/debugger/SkDebugCanvas.cpp',
595 '../src/utils/debugger/SkObjectParser.h',
596 '../src/utils/debugger/SkObjectParser.cpp',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000597 ],
598 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000599 'skia_lib.gyp:skia_lib',
djsollen@google.coma09e8832012-11-13 18:50:33 +0000600 'tools.gyp:picture_utils',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000601 ],
602 },
halcanary@google.comfed30372013-10-04 12:46:45 +0000603 {
604 'target_name': 'test_image_decoder',
605 'type': 'executable',
606 'sources': [
607 '../tools/test_image_decoder.cpp',
608 ],
609 'dependencies': [
610 'skia_lib.gyp:skia_lib',
611 ],
612 },
halcanary0d154ee2014-08-11 11:33:51 -0700613 {
mtkleinafb43792014-08-19 15:55:55 -0700614 'target_name': 'proc_stats',
halcanary0d154ee2014-08-11 11:33:51 -0700615 'type': 'static_library',
616 'sources': [
617 '../tools/ProcStats.h',
618 '../tools/ProcStats.cpp',
619 ],
620 'direct_dependent_settings': {
621 'include_dirs': [ '../tools', ],
622 },
623 },
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000624 ],
625 'conditions': [
zachr@google.com28c27c82013-06-20 17:15:05 +0000626 ['skia_shared_lib',
627 {
628 'targets': [
629 {
630 'target_name': 'sklua',
631 'product_name': 'skia',
632 'product_prefix': '',
633 'product_dir': '<(PRODUCT_DIR)/',
634 'type': 'shared_library',
635 'sources': [
636 '../src/utils/SkLuaCanvas.cpp',
637 '../src/utils/SkLua.cpp',
638 ],
639 'include_dirs': [
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000640 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
641 '../src/gpu/',
642 '../src/core/',
zachr@google.com28c27c82013-06-20 17:15:05 +0000643 '../third_party/lua/src/',
644 ],
645 'dependencies': [
646 'lua.gyp:lua',
647 'pdf.gyp:pdf',
648 'skia_lib.gyp:skia_lib',
649 ],
650 'conditions': [
651 ['skia_os != "win"',
652 {
653 'ldflags': [
654 '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags',
655 ],
656 },
657 ],
658 ],
659 },
660 ],
661 },
662 ],
borenet@google.com2d137b62013-03-08 23:13:33 +0000663 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000664 {
665 'targets': [
666 {
667 'target_name': 'win_dbghelp',
668 'type': 'static_library',
669 'defines': [
670 'SK_CDB_PATH="<(skia_win_debuggers_path)"',
671 ],
672 'sources': [
673 '../tools/win_dbghelp.h',
674 '../tools/win_dbghelp.cpp',
675 ],
676 },
677 ],
678 },
679 ],
bungeman@google.com07a69f82013-04-02 14:12:38 +0000680 ['skia_os == "win"',
681 {
682 'targets': [
683 {
684 'target_name': 'win_lcid',
685 'type': 'executable',
686 'sources': [
687 '../tools/win_lcid.cpp',
688 ],
689 },
690 ],
691 },
692 ],
Cary Clark992c7b02014-07-31 08:58:44 -0400693 ['skia_os == "mac"',
694 {
695 'targets': [
696 {
697 'target_name': 'create_test_font',
698 'type': 'executable',
699 'sources': [
700 '../tools/create_test_font.cpp',
701 ],
702 'include_dirs': [
703 '../src/core',
704 ],
705 'dependencies': [
706 'flags.gyp:flags',
707 'skia_lib.gyp:skia_lib',
708 'resources',
709 ],
710 },
711 ],
712 },
713 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000714 ],
715}