blob: 052130e06dd10eaf841c34be3e91ab175017463b [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.org15ac3222014-01-13 12:03:47 +000018 'bench_record',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +000019 'bench_playback',
caryclark5fb6bd42014-06-23 11:25:00 -070020 'create_test_font',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +000021 'dump_record',
edisonn@google.com8ba9a832013-01-18 18:06:22 +000022 'filter',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +000023 'gpuveto',
commit-bot@chromium.org5ccdf012014-01-02 18:51:38 +000024 'lua_app',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +000025 'lua_pictures',
edisonn@google.com8ba9a832013-01-18 18:06:22 +000026 'pinspect',
27 'render_pdfs',
28 'render_pictures',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000029 'skdiff',
commit-bot@chromium.org5ccdf012014-01-02 18:51:38 +000030 'skhello',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +000031 'skpdiff',
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +000032 'skpinfo',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +000033 'skpmaker',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000034 'skimage',
halcanary@google.comfed30372013-10-04 12:46:45 +000035 'test_image_decoder',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000036 ],
zachr@google.com28c27c82013-06-20 17:15:05 +000037 'conditions': [
38 ['skia_shared_lib',
39 {
40 'dependencies': [
41 'sklua', # This can only be built if skia is built as a shared library
42 ],
43 },
44 ],
45 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +000046 },
mtklein9ac68ee2014-06-20 11:29:20 -070047 { # This would go in gm.gyp, but it's also used by skimage below.
48 'target_name': 'gm_expectations',
49 'type': 'static_library',
50 'include_dirs' : [ '../src/utils/' ],
51 'sources': [
52 '../gm/gm_expectations.cpp',
mtklein9ac68ee2014-06-20 11:29:20 -070053 ],
54 'dependencies': [
55 'jsoncpp.gyp:jsoncpp',
tfarina20108912014-06-21 10:54:17 -070056 'sk_tool_utils',
mtklein9ac68ee2014-06-20 11:29:20 -070057 'skia_lib.gyp:skia_lib',
58 ],
59 'direct_dependent_settings': {
60 'include_dirs': [ '../gm/' ],
61 },
62 },
63 {
64 'target_name': 'crash_handler',
65 'type': 'static_library',
66 'sources': [ '../tools/CrashHandler.cpp' ],
67 'dependencies': [ 'skia_lib.gyp:skia_lib' ],
68 'direct_dependent_settings': {
69 'include_dirs': [ '../tools' ],
70 },
71 'all_dependent_settings': {
72 'msvs_settings': {
73 'VCLinkerTool': {
74 'AdditionalDependencies': [ 'Dbghelp.lib' ],
75 }
76 },
77 }
78 },
79 {
80 'target_name': 'resources',
81 'type': 'static_library',
82 'sources': [ '../tools/Resources.cpp' ],
83 'dependencies': [
84 'flags.gyp:flags',
85 'skia_lib.gyp:skia_lib',
86 ],
87 'direct_dependent_settings': {
tfarina20108912014-06-21 10:54:17 -070088 'include_dirs': [ '../tools', ],
89 },
90 },
91 {
92 'target_name': 'sk_tool_utils',
93 'type': 'static_library',
caryclark5fb6bd42014-06-23 11:25:00 -070094 'sources': [
95 '../tools/sk_tool_utils.cpp',
96 '../tools/sk_tool_utils_font.cpp',
97 ],
tfarina20108912014-06-21 10:54:17 -070098 'dependencies': [
99 'skia_lib.gyp:skia_lib',
100 ],
101 'direct_dependent_settings': {
102 'include_dirs': [ '../tools', ],
mtklein9ac68ee2014-06-20 11:29:20 -0700103 },
104 },
105 {
106 'target_name' : 'timer',
107 'type': 'static_library',
108 'sources': [
109 '../tools/timer/Timer.cpp',
110 '../tools/timer/TimerData.cpp',
111 ],
112 'include_dirs': [
113 '../src/core',
114 '../src/gpu',
115 ],
116 'direct_dependent_settings': {
117 'include_dirs': ['../tools/timer'],
118 },
119 'dependencies': [
120 'skia_lib.gyp:skia_lib',
121 'jsoncpp.gyp:jsoncpp',
122 ],
123 'conditions': [
124 ['skia_gpu == 1', {
125 'sources': [ '../tools/timer/GpuTimer.cpp' ],
126 }],
127 [ 'skia_os in ["mac", "ios"]', {
128 'sources': [ '../tools/timer/SysTimer_mach.cpp' ],
129 }],
130 [ 'skia_os == "win"', {
131 'sources': [ '../tools/timer/SysTimer_windows.cpp' ],
132 }],
133 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android", "chromeos"]', {
134 'sources': [ '../tools/timer/SysTimer_posix.cpp' ],
135 }],
136 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
137 'link_settings': { 'libraries': [ '-lrt' ] },
138 }],
139 ],
140 },
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000141 {
142 'target_name': 'skdiff',
143 'type': 'executable',
144 'sources': [
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000145 '../tools/skdiff.cpp',
146 '../tools/skdiff.h',
147 '../tools/skdiff_html.cpp',
148 '../tools/skdiff_html.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000149 '../tools/skdiff_main.cpp',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000150 '../tools/skdiff_utils.cpp',
151 '../tools/skdiff_utils.h',
152 ],
153 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000154 'skia_lib.gyp:skia_lib',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000155 ],
156 },
157 {
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000158 'target_name': 'skpdiff',
159 'type': 'executable',
160 'sources': [
161 '../tools/skpdiff/skpdiff_main.cpp',
162 '../tools/skpdiff/SkDiffContext.cpp',
163 '../tools/skpdiff/SkImageDiffer.cpp',
164 '../tools/skpdiff/SkPMetric.cpp',
165 '../tools/skpdiff/skpdiff_util.cpp',
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000166 ],
167 'include_dirs': [
djsollen@google.comefc51b72013-11-12 18:29:17 +0000168 '../src/core/', # needed for SkTLList.h
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000169 ],
170 'dependencies': [
tfarina1c4d5782014-06-22 16:13:00 -0700171 'flags.gyp:flags',
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000172 'skia_lib.gyp:skia_lib',
173 ],
174 'cflags': [
175 '-O3',
176 ],
177 'conditions': [
178 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
179 'link_settings': {
180 'libraries': [
181 '-lrt',
182 ],
183 },
184 }],
185 ['skia_opencl', {
186 'sources': [
187 '../tools/skpdiff/SkCLImageDiffer.cpp',
188 '../tools/skpdiff/SkDifferentPixelsMetric_opencl.cpp',
189 ],
190 'conditions': [
191 [ 'skia_os == "mac"', {
192 'link_settings': {
193 'libraries': [
194 '$(SDKROOT)/System/Library/Frameworks/OpenCL.framework',
195 ]
196 }
197 }, {
198 'link_settings': {
199 'libraries': [
200 '-lOpenCL',
201 ],
202 },
203 }],
204 ],
205 }, { # !skia_opencl
206 'sources': [
207 '../tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp',
208 ],
209 }],
210 ],
211 },
212 {
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +0000213 'target_name': 'skpmaker',
214 'type': 'executable',
215 'sources': [
216 '../tools/skpmaker.cpp',
217 ],
218 'include_dirs': [
219 '../src/core',
220 ],
221 'dependencies': [
222 'flags.gyp:flags',
223 'skia_lib.gyp:skia_lib',
224 ],
225 },
226 {
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000227 'target_name': 'skimagediff',
228 'type': 'executable',
229 'sources': [
230 '../tools/skdiff.cpp',
231 '../tools/skdiff.h',
232 '../tools/skdiff_html.cpp',
233 '../tools/skdiff_html.h',
234 '../tools/skdiff_image.cpp',
235 '../tools/skdiff_utils.cpp',
236 '../tools/skdiff_utils.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000237 ],
238 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000239 'skia_lib.gyp:skia_lib',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000240 ],
241 },
242 {
243 'target_name': 'skhello',
244 'type': 'executable',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000245 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000246 'skia_lib.gyp:skia_lib',
borenet@google.combb522882013-06-17 15:39:43 +0000247 ],
248 'conditions': [
249 [ 'skia_os == "nacl"', {
250 'sources': [
251 '../platform_tools/nacl/src/nacl_hello.cpp',
252 ],
253 }, {
254 'sources': [
255 '../tools/skhello.cpp',
256 ],
257 'dependencies': [
borenet@google.combb522882013-06-17 15:39:43 +0000258 'flags.gyp:flags',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000259 'pdf.gyp:pdf',
borenet@google.combb522882013-06-17 15:39:43 +0000260 ],
261 }],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000262 ],
263 },
264 {
265 'target_name': 'skimage',
266 'type': 'executable',
267 'sources': [
268 '../tools/skimage_main.cpp',
269 ],
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000270 'include_dirs': [
271 # For SkBitmapHasher.h
272 '../src/utils/',
caryclark5fb6bd42014-06-23 11:25:00 -0700273 '../tools/',
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000274 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000275 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700276 'gm_expectations',
scroggo@google.comb41ff952013-04-11 15:53:35 +0000277 'flags.gyp:flags',
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000278 'jsoncpp.gyp:jsoncpp',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000279 'skia_lib.gyp:skia_lib',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000280 ],
281 },
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +0000282 {
283 'target_name': 'skpinfo',
284 'type': 'executable',
285 'sources': [
286 '../tools/skpinfo.cpp',
287 ],
288 'include_dirs': [
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +0000289 '../src/core/',
290 ],
291 'dependencies': [
292 'flags.gyp:flags',
293 'skia_lib.gyp:skia_lib',
294 ],
295 },
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000296 {
297 'target_name': 'gpuveto',
298 'type': 'executable',
299 'sources': [
300 '../tools/gpuveto.cpp',
301 '../tools/LazyDecodeBitmap.cpp',
302 ],
303 'include_dirs': [
304 '../src/core/',
305 '../src/images',
306 '../src/lazy',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000307 ],
308 'dependencies': [
309 'flags.gyp:flags',
310 'skia_lib.gyp:skia_lib',
311 ],
312 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000313 {
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000314 'target_name': 'lua_app',
315 'type': 'executable',
316 'sources': [
317 '../tools/lua/lua_app.cpp',
318 '../src/utils/SkLua.cpp',
319 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000320 'include_dirs': [
321 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
322 '../src/gpu/',
323 '../src/core/',
324 ],
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000325 'dependencies': [
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000326 'effects.gyp:effects',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000327 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000328 'lua.gyp:lua',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000329 'pdf.gyp:pdf',
330 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000331 'skia_lib.gyp:skia_lib',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000332 ],
333 },
334 {
reed@google.comdff7e112013-05-15 19:34:20 +0000335 'target_name': 'lua_pictures',
336 'type': 'executable',
337 'sources': [
338 '../tools/lua/lua_pictures.cpp',
339 '../src/utils/SkLuaCanvas.cpp',
reed@google.com74ce6f02013-05-22 15:13:18 +0000340 '../src/utils/SkLua.cpp',
reed@google.comdff7e112013-05-15 19:34:20 +0000341 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000342 'include_dirs': [
343 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
344 '../src/gpu/',
345 '../src/core/',
346 ],
reed@google.comdff7e112013-05-15 19:34:20 +0000347 'dependencies': [
reed@google.comdff7e112013-05-15 19:34:20 +0000348 'effects.gyp:effects',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000349 'flags.gyp:flags',
reed@google.comdff7e112013-05-15 19:34:20 +0000350 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000351 'lua.gyp:lua',
reed@google.comdff7e112013-05-15 19:34:20 +0000352 'tools.gyp:picture_renderer',
353 'tools.gyp:picture_utils',
mike@reedtribe.orgfb858242013-06-08 16:39:44 +0000354 'pdf.gyp:pdf',
reed@google.comdff7e112013-05-15 19:34:20 +0000355 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000356 'skia_lib.gyp:skia_lib',
reed@google.comdff7e112013-05-15 19:34:20 +0000357 ],
358 },
359 {
junov@chromium.org777442d2012-06-12 14:56:36 +0000360 'target_name': 'render_pictures',
361 'type': 'executable',
362 'sources': [
363 '../tools/render_pictures_main.cpp',
keyar@chromium.orga2333d92012-07-16 17:29:16 +0000364 ],
365 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000366 '../src/core',
367 '../src/images',
368 '../src/lazy',
keyar@chromium.orga2333d92012-07-16 17:29:16 +0000369 '../src/pipe/utils/',
junov@chromium.org777442d2012-06-12 14:56:36 +0000370 ],
371 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000372 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000373 'skia_lib.gyp:skia_lib',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000374 'tools.gyp:picture_renderer',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000375 'tools.gyp:picture_utils',
376 ],
377 },
378 {
reed@google.com006db0f2012-06-27 19:33:29 +0000379 'target_name': 'bench_pictures',
380 'type': 'executable',
381 'sources': [
tfarinaf168b862014-06-19 12:32:29 -0700382 '../bench/BenchLogger.cpp',
383 '../bench/BenchLogger.h',
commit-bot@chromium.org37c772a2014-05-29 17:10:24 +0000384 '../bench/ResultsWriter.cpp',
385 '../tools/PictureBenchmark.cpp',
386 '../tools/PictureResultsWriter.h',
keyar@chromium.orgcf6c44c2012-07-09 19:37:40 +0000387 '../tools/bench_pictures_main.cpp',
reed@google.com006db0f2012-06-27 19:33:29 +0000388 ],
389 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000390 '../src/core/',
reed@google.com006db0f2012-06-27 19:33:29 +0000391 '../bench',
scroggo@google.comcc690202013-03-04 19:56:21 +0000392 '../src/lazy/',
reed@google.com006db0f2012-06-27 19:33:29 +0000393 ],
394 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700395 'timer',
396 'crash_handler',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000397 'flags.gyp:flags',
commit-bot@chromium.org37c772a2014-05-29 17:10:24 +0000398 'jsoncpp.gyp:jsoncpp',
djsollen@google.com52f02972013-06-03 12:10:19 +0000399 'skia_lib.gyp:skia_lib',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000400 'tools.gyp:picture_renderer',
mtklein30e6e2a2014-06-18 11:44:15 -0700401 'tools.gyp:picture_utils',
scroggo@google.com9a412522012-09-07 15:21:18 +0000402 ],
scroggo3eb258d2014-07-17 06:58:28 -0700403 'conditions': [
404 ['skia_android_framework == 1', {
405 'libraries': [ '-lskia' ],
406 }],
407 ],
keyar@chromium.org163b5672012-08-01 17:53:29 +0000408 },
409 {
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000410 'target_name': 'bench_record',
411 'type': 'executable',
commit-bot@chromium.org16182f72014-03-28 16:08:18 +0000412 'sources': [
413 '../tools/bench_record.cpp',
414 '../tools/LazyDecodeBitmap.cpp',
415 ],
416 'include_dirs': [
417 '../src/core/',
418 '../src/images',
419 '../src/lazy',
420 ],
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000421 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700422 'timer',
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000423 'flags.gyp:flags',
424 'skia_lib.gyp:skia_lib',
425 ],
426 },
427 {
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000428 'target_name': 'bench_playback',
429 'type': 'executable',
430 'sources': [
431 '../tools/bench_playback.cpp',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000432 ],
433 'include_dirs': [
434 '../src/core/',
435 '../src/images',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000436 ],
437 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700438 'timer',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000439 'flags.gyp:flags',
440 'skia_lib.gyp:skia_lib',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000441 ],
442 },
443 {
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000444 'target_name': 'dump_record',
445 'type': 'executable',
446 'sources': [
447 '../tools/dump_record.cpp',
commit-bot@chromium.org85fd1932014-05-15 16:10:37 +0000448 '../tools/DumpRecord.cpp',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000449 '../tools/LazyDecodeBitmap.cpp',
450 ],
451 'include_dirs': [
452 '../src/core/',
453 '../src/images',
454 '../src/lazy',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000455 ],
456 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700457 'timer',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000458 'flags.gyp:flags',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000459 'skia_lib.gyp:skia_lib',
460 ],
461 },
462 {
borenet@google.comefb1d772012-10-10 19:45:51 +0000463 'target_name': 'picture_renderer',
464 'type': 'static_library',
465 'sources': [
commit-bot@chromium.org90c0fbd2014-05-09 03:18:41 +0000466 '../tools/image_expectations.h',
467 '../tools/image_expectations.cpp',
commit-bot@chromium.org56799e22013-07-16 18:21:46 +0000468 '../tools/LazyDecodeBitmap.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000469 '../tools/PictureRenderer.h',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000470 '../tools/PictureRenderer.cpp',
scroggo@google.com161e1ba2013-03-04 16:41:06 +0000471 '../tools/PictureRenderingFlags.h',
472 '../tools/PictureRenderingFlags.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000473 '../tools/CopyTilesRenderer.h',
474 '../tools/CopyTilesRenderer.cpp',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000475 '../src/pipe/utils/SamplePipeControllers.h',
476 '../src/pipe/utils/SamplePipeControllers.cpp',
borenet@google.comefb1d772012-10-10 19:45:51 +0000477 ],
478 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000479 '../src/core',
480 '../src/images',
481 '../src/lazy',
borenet@google.comefb1d772012-10-10 19:45:51 +0000482 '../src/pipe/utils/',
483 '../src/utils/',
484 ],
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000485 'direct_dependent_settings': {
486 'include_dirs': [
commit-bot@chromium.org90c0fbd2014-05-09 03:18:41 +0000487 # needed for JSON headers used within image_expectations.h
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000488 '../third_party/externals/jsoncpp-chromium/overrides/include/',
489 '../third_party/externals/jsoncpp/include/',
490 ],
491 },
borenet@google.comefb1d772012-10-10 19:45:51 +0000492 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000493 'flags.gyp:flags',
494 'jsoncpp.gyp:jsoncpp',
djsollen@google.com52f02972013-06-03 12:10:19 +0000495 'skia_lib.gyp:skia_lib',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000496 'tools.gyp:picture_utils',
borenet@google.comefb1d772012-10-10 19:45:51 +0000497 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000498 'conditions': [
499 ['skia_gpu == 1',
500 {
501 'include_dirs' : [
502 '../src/gpu',
503 ],
robertphillips@google.com94d8f1e2013-12-18 17:25:33 +0000504 'dependencies': [
505 'gputest.gyp:skgputest',
506 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000507 },
508 ],
509 ],
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000510 },
511 {
edisonn@google.comc319abe2012-11-01 19:52:38 +0000512 'target_name': 'render_pdfs',
513 'type': 'executable',
514 'sources': [
515 '../tools/render_pdfs_main.cpp',
516 '../tools/PdfRenderer.cpp',
517 '../tools/PdfRenderer.h',
518 ],
519 'include_dirs': [
520 '../src/pipe/utils/',
521 '../src/utils/',
522 ],
523 'dependencies': [
edisonn@google.comc319abe2012-11-01 19:52:38 +0000524 'pdf.gyp:pdf',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000525 'skia_lib.gyp:skia_lib',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000526 'tools.gyp:picture_utils',
527 ],
edisonn@google.com184487c2013-03-08 18:00:16 +0000528 'conditions': [
borenet@google.com2d137b62013-03-08 23:13:33 +0000529 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com184487c2013-03-08 18:00:16 +0000530 {
531 'dependencies': [
532 'tools.gyp:win_dbghelp',
533 ],
534 },
535 ],
536 # VS static libraries don't have a linker option. We must set a global
537 # project linker option, or add it to each executable.
538 ['skia_win_debuggers_path and skia_os == "win" and '
borenet@google.com2d137b62013-03-08 23:13:33 +0000539 'skia_arch_width == 64',
edisonn@google.com184487c2013-03-08 18:00:16 +0000540 {
541 'msvs_settings': {
542 'VCLinkerTool': {
543 'AdditionalDependencies': [
544 '<(skia_win_debuggers_path)/x64/DbgHelp.lib',
545 ],
546 },
547 },
548 },
549 ],
550 ['skia_win_debuggers_path and skia_os == "win" and '
borenet@google.com2d137b62013-03-08 23:13:33 +0000551 'skia_arch_width == 32',
edisonn@google.com184487c2013-03-08 18:00:16 +0000552 {
553 'msvs_settings': {
554 'VCLinkerTool': {
555 'AdditionalDependencies': [
556 '<(skia_win_debuggers_path)/DbgHelp.lib',
557 ],
558 },
559 },
560 },
561 ],
562 ],
edisonn@google.comc319abe2012-11-01 19:52:38 +0000563 },
564 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000565 'target_name': 'picture_utils',
566 'type': 'static_library',
567 'sources': [
568 '../tools/picture_utils.cpp',
borenet@google.come21795e2012-09-14 14:34:28 +0000569 '../tools/picture_utils.h',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000570 ],
571 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000572 'skia_lib.gyp:skia_lib',
junov@chromium.org777442d2012-06-12 14:56:36 +0000573 ],
reed@google.come52d2912013-05-15 20:01:07 +0000574 'direct_dependent_settings': {
575 'include_dirs': [
tfarinabcbc1782014-06-18 14:32:48 -0700576 '../tools/',
reed@google.come52d2912013-05-15 20:01:07 +0000577 ],
578 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000579 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000580 {
581 'target_name': 'pinspect',
582 'type': 'executable',
583 'sources': [
584 '../tools/pinspect.cpp',
585 ],
586 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000587 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000588 'skia_lib.gyp:skia_lib',
commit-bot@chromium.org826ec812013-06-12 18:28:36 +0000589 'tools.gyp:picture_renderer',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000590 ],
591 },
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000592 {
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000593 'target_name': 'bbh_shootout',
594 'type': 'executable',
595 'include_dirs': [
596 '../bench',
597 '../tools/'
598 ],
599 'sources': [
600 '../tools/bbh_shootout.cpp',
601
602 # Bench code:
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000603 ],
604 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700605 'timer',
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000606 'flags.gyp:flags',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000607 'skia_lib.gyp:skia_lib',
608 'tools.gyp:picture_renderer',
609 'tools.gyp:picture_utils',
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000610 ],
611 },
612 {
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000613 'target_name': 'filter',
614 'type': 'executable',
615 'include_dirs' : [
616 '../src/core',
fmalita@google.com4df16732013-06-13 21:25:45 +0000617 '../src/utils/debugger',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000618 ],
619 'sources': [
620 '../tools/filtermain.cpp',
fmalita@google.com86681b32013-06-13 20:59:14 +0000621 '../src/utils/debugger/SkDrawCommand.h',
622 '../src/utils/debugger/SkDrawCommand.cpp',
623 '../src/utils/debugger/SkDebugCanvas.h',
624 '../src/utils/debugger/SkDebugCanvas.cpp',
625 '../src/utils/debugger/SkObjectParser.h',
626 '../src/utils/debugger/SkObjectParser.cpp',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000627 ],
628 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000629 'skia_lib.gyp:skia_lib',
djsollen@google.coma09e8832012-11-13 18:50:33 +0000630 'tools.gyp:picture_utils',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000631 ],
632 },
halcanary@google.comfed30372013-10-04 12:46:45 +0000633 {
caryclark5fb6bd42014-06-23 11:25:00 -0700634 'target_name': 'create_test_font',
635 'type': 'executable',
636 'sources': [
637 '../tools/create_test_font.cpp',
638 ],
639 'include_dirs': [
640 '../src/core',
641 ],
642 'dependencies': [
643 'flags.gyp:flags',
644 'skia_lib.gyp:skia_lib',
645 ],
646 },
647 {
halcanary@google.comfed30372013-10-04 12:46:45 +0000648 'target_name': 'test_image_decoder',
649 'type': 'executable',
650 'sources': [
651 '../tools/test_image_decoder.cpp',
652 ],
653 'dependencies': [
654 'skia_lib.gyp:skia_lib',
655 ],
656 },
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000657 ],
658 'conditions': [
zachr@google.com28c27c82013-06-20 17:15:05 +0000659 ['skia_shared_lib',
660 {
661 'targets': [
662 {
663 'target_name': 'sklua',
664 'product_name': 'skia',
665 'product_prefix': '',
666 'product_dir': '<(PRODUCT_DIR)/',
667 'type': 'shared_library',
668 'sources': [
669 '../src/utils/SkLuaCanvas.cpp',
670 '../src/utils/SkLua.cpp',
671 ],
672 'include_dirs': [
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000673 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
674 '../src/gpu/',
675 '../src/core/',
zachr@google.com28c27c82013-06-20 17:15:05 +0000676 '../third_party/lua/src/',
677 ],
678 'dependencies': [
679 'lua.gyp:lua',
680 'pdf.gyp:pdf',
681 'skia_lib.gyp:skia_lib',
682 ],
683 'conditions': [
684 ['skia_os != "win"',
685 {
686 'ldflags': [
687 '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags',
688 ],
689 },
690 ],
691 ],
692 },
693 ],
694 },
695 ],
borenet@google.com2d137b62013-03-08 23:13:33 +0000696 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000697 {
698 'targets': [
699 {
700 'target_name': 'win_dbghelp',
701 'type': 'static_library',
702 'defines': [
703 'SK_CDB_PATH="<(skia_win_debuggers_path)"',
704 ],
705 'sources': [
706 '../tools/win_dbghelp.h',
707 '../tools/win_dbghelp.cpp',
708 ],
709 },
710 ],
711 },
712 ],
bungeman@google.com07a69f82013-04-02 14:12:38 +0000713 ['skia_os == "win"',
714 {
715 'targets': [
716 {
717 'target_name': 'win_lcid',
718 'type': 'executable',
719 'sources': [
720 '../tools/win_lcid.cpp',
721 ],
722 },
723 ],
724 },
725 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000726 ],
727}