blob: e16fa4bb7e71bc53a0b7edaa53719b61c46ab3c9 [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 ],
keyar@chromium.org163b5672012-08-01 17:53:29 +0000403 },
404 {
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000405 'target_name': 'bench_record',
406 'type': 'executable',
commit-bot@chromium.org16182f72014-03-28 16:08:18 +0000407 'sources': [
408 '../tools/bench_record.cpp',
409 '../tools/LazyDecodeBitmap.cpp',
410 ],
411 'include_dirs': [
412 '../src/core/',
413 '../src/images',
414 '../src/lazy',
415 ],
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000416 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700417 'timer',
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000418 'flags.gyp:flags',
419 'skia_lib.gyp:skia_lib',
420 ],
421 },
422 {
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000423 'target_name': 'bench_playback',
424 'type': 'executable',
425 'sources': [
426 '../tools/bench_playback.cpp',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000427 ],
428 'include_dirs': [
429 '../src/core/',
430 '../src/images',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000431 ],
432 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700433 'timer',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000434 'flags.gyp:flags',
435 'skia_lib.gyp:skia_lib',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000436 ],
437 },
438 {
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000439 'target_name': 'dump_record',
440 'type': 'executable',
441 'sources': [
442 '../tools/dump_record.cpp',
commit-bot@chromium.org85fd1932014-05-15 16:10:37 +0000443 '../tools/DumpRecord.cpp',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000444 '../tools/LazyDecodeBitmap.cpp',
445 ],
446 'include_dirs': [
447 '../src/core/',
448 '../src/images',
449 '../src/lazy',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000450 ],
451 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700452 'timer',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000453 'flags.gyp:flags',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000454 'skia_lib.gyp:skia_lib',
455 ],
456 },
457 {
borenet@google.comefb1d772012-10-10 19:45:51 +0000458 'target_name': 'picture_renderer',
459 'type': 'static_library',
460 'sources': [
commit-bot@chromium.org90c0fbd2014-05-09 03:18:41 +0000461 '../tools/image_expectations.h',
462 '../tools/image_expectations.cpp',
commit-bot@chromium.org56799e22013-07-16 18:21:46 +0000463 '../tools/LazyDecodeBitmap.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000464 '../tools/PictureRenderer.h',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000465 '../tools/PictureRenderer.cpp',
scroggo@google.com161e1ba2013-03-04 16:41:06 +0000466 '../tools/PictureRenderingFlags.h',
467 '../tools/PictureRenderingFlags.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000468 '../tools/CopyTilesRenderer.h',
469 '../tools/CopyTilesRenderer.cpp',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000470 '../src/pipe/utils/SamplePipeControllers.h',
471 '../src/pipe/utils/SamplePipeControllers.cpp',
borenet@google.comefb1d772012-10-10 19:45:51 +0000472 ],
473 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000474 '../src/core',
475 '../src/images',
476 '../src/lazy',
borenet@google.comefb1d772012-10-10 19:45:51 +0000477 '../src/pipe/utils/',
478 '../src/utils/',
479 ],
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000480 'direct_dependent_settings': {
481 'include_dirs': [
commit-bot@chromium.org90c0fbd2014-05-09 03:18:41 +0000482 # needed for JSON headers used within image_expectations.h
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000483 '../third_party/externals/jsoncpp-chromium/overrides/include/',
484 '../third_party/externals/jsoncpp/include/',
485 ],
486 },
borenet@google.comefb1d772012-10-10 19:45:51 +0000487 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000488 'flags.gyp:flags',
489 'jsoncpp.gyp:jsoncpp',
djsollen@google.com52f02972013-06-03 12:10:19 +0000490 'skia_lib.gyp:skia_lib',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000491 'tools.gyp:picture_utils',
borenet@google.comefb1d772012-10-10 19:45:51 +0000492 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000493 'conditions': [
494 ['skia_gpu == 1',
495 {
496 'include_dirs' : [
497 '../src/gpu',
498 ],
robertphillips@google.com94d8f1e2013-12-18 17:25:33 +0000499 'dependencies': [
500 'gputest.gyp:skgputest',
501 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000502 },
503 ],
504 ],
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000505 },
506 {
edisonn@google.comc319abe2012-11-01 19:52:38 +0000507 'target_name': 'render_pdfs',
508 'type': 'executable',
509 'sources': [
510 '../tools/render_pdfs_main.cpp',
511 '../tools/PdfRenderer.cpp',
512 '../tools/PdfRenderer.h',
513 ],
514 'include_dirs': [
515 '../src/pipe/utils/',
516 '../src/utils/',
517 ],
518 'dependencies': [
edisonn@google.comc319abe2012-11-01 19:52:38 +0000519 'pdf.gyp:pdf',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000520 'skia_lib.gyp:skia_lib',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000521 'tools.gyp:picture_utils',
522 ],
edisonn@google.com184487c2013-03-08 18:00:16 +0000523 'conditions': [
borenet@google.com2d137b62013-03-08 23:13:33 +0000524 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com184487c2013-03-08 18:00:16 +0000525 {
526 'dependencies': [
527 'tools.gyp:win_dbghelp',
528 ],
529 },
530 ],
531 # VS static libraries don't have a linker option. We must set a global
532 # project linker option, or add it to each executable.
533 ['skia_win_debuggers_path and skia_os == "win" and '
borenet@google.com2d137b62013-03-08 23:13:33 +0000534 'skia_arch_width == 64',
edisonn@google.com184487c2013-03-08 18:00:16 +0000535 {
536 'msvs_settings': {
537 'VCLinkerTool': {
538 'AdditionalDependencies': [
539 '<(skia_win_debuggers_path)/x64/DbgHelp.lib',
540 ],
541 },
542 },
543 },
544 ],
545 ['skia_win_debuggers_path and skia_os == "win" and '
borenet@google.com2d137b62013-03-08 23:13:33 +0000546 'skia_arch_width == 32',
edisonn@google.com184487c2013-03-08 18:00:16 +0000547 {
548 'msvs_settings': {
549 'VCLinkerTool': {
550 'AdditionalDependencies': [
551 '<(skia_win_debuggers_path)/DbgHelp.lib',
552 ],
553 },
554 },
555 },
556 ],
557 ],
edisonn@google.comc319abe2012-11-01 19:52:38 +0000558 },
559 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000560 'target_name': 'picture_utils',
561 'type': 'static_library',
562 'sources': [
563 '../tools/picture_utils.cpp',
borenet@google.come21795e2012-09-14 14:34:28 +0000564 '../tools/picture_utils.h',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000565 ],
566 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000567 'skia_lib.gyp:skia_lib',
junov@chromium.org777442d2012-06-12 14:56:36 +0000568 ],
reed@google.come52d2912013-05-15 20:01:07 +0000569 'direct_dependent_settings': {
570 'include_dirs': [
tfarinabcbc1782014-06-18 14:32:48 -0700571 '../tools/',
reed@google.come52d2912013-05-15 20:01:07 +0000572 ],
573 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000574 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000575 {
576 'target_name': 'pinspect',
577 'type': 'executable',
578 'sources': [
579 '../tools/pinspect.cpp',
580 ],
581 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000582 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000583 'skia_lib.gyp:skia_lib',
commit-bot@chromium.org826ec812013-06-12 18:28:36 +0000584 'tools.gyp:picture_renderer',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000585 ],
586 },
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000587 {
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000588 'target_name': 'bbh_shootout',
589 'type': 'executable',
590 'include_dirs': [
591 '../bench',
592 '../tools/'
593 ],
594 'sources': [
595 '../tools/bbh_shootout.cpp',
596
597 # Bench code:
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000598 ],
599 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700600 'timer',
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000601 'flags.gyp:flags',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000602 'skia_lib.gyp:skia_lib',
603 'tools.gyp:picture_renderer',
604 'tools.gyp:picture_utils',
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000605 ],
606 },
607 {
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000608 'target_name': 'filter',
609 'type': 'executable',
610 'include_dirs' : [
611 '../src/core',
fmalita@google.com4df16732013-06-13 21:25:45 +0000612 '../src/utils/debugger',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000613 ],
614 'sources': [
615 '../tools/filtermain.cpp',
fmalita@google.com86681b32013-06-13 20:59:14 +0000616 '../src/utils/debugger/SkDrawCommand.h',
617 '../src/utils/debugger/SkDrawCommand.cpp',
618 '../src/utils/debugger/SkDebugCanvas.h',
619 '../src/utils/debugger/SkDebugCanvas.cpp',
620 '../src/utils/debugger/SkObjectParser.h',
621 '../src/utils/debugger/SkObjectParser.cpp',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000622 ],
623 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000624 'skia_lib.gyp:skia_lib',
djsollen@google.coma09e8832012-11-13 18:50:33 +0000625 'tools.gyp:picture_utils',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000626 ],
627 },
halcanary@google.comfed30372013-10-04 12:46:45 +0000628 {
caryclark5fb6bd42014-06-23 11:25:00 -0700629 'target_name': 'create_test_font',
630 'type': 'executable',
631 'sources': [
632 '../tools/create_test_font.cpp',
633 ],
634 'include_dirs': [
635 '../src/core',
636 ],
637 'dependencies': [
638 'flags.gyp:flags',
639 'skia_lib.gyp:skia_lib',
640 ],
641 },
642 {
halcanary@google.comfed30372013-10-04 12:46:45 +0000643 'target_name': 'test_image_decoder',
644 'type': 'executable',
645 'sources': [
646 '../tools/test_image_decoder.cpp',
647 ],
648 'dependencies': [
649 'skia_lib.gyp:skia_lib',
650 ],
651 },
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000652 ],
653 'conditions': [
zachr@google.com28c27c82013-06-20 17:15:05 +0000654 ['skia_shared_lib',
655 {
656 'targets': [
657 {
658 'target_name': 'sklua',
659 'product_name': 'skia',
660 'product_prefix': '',
661 'product_dir': '<(PRODUCT_DIR)/',
662 'type': 'shared_library',
663 'sources': [
664 '../src/utils/SkLuaCanvas.cpp',
665 '../src/utils/SkLua.cpp',
666 ],
667 'include_dirs': [
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000668 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
669 '../src/gpu/',
670 '../src/core/',
zachr@google.com28c27c82013-06-20 17:15:05 +0000671 '../third_party/lua/src/',
672 ],
673 'dependencies': [
674 'lua.gyp:lua',
675 'pdf.gyp:pdf',
676 'skia_lib.gyp:skia_lib',
677 ],
678 'conditions': [
679 ['skia_os != "win"',
680 {
681 'ldflags': [
682 '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags',
683 ],
684 },
685 ],
686 ],
687 },
688 ],
689 },
690 ],
borenet@google.com2d137b62013-03-08 23:13:33 +0000691 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000692 {
693 'targets': [
694 {
695 'target_name': 'win_dbghelp',
696 'type': 'static_library',
697 'defines': [
698 'SK_CDB_PATH="<(skia_win_debuggers_path)"',
699 ],
700 'sources': [
701 '../tools/win_dbghelp.h',
702 '../tools/win_dbghelp.cpp',
703 ],
704 },
705 ],
706 },
707 ],
bungeman@google.com07a69f82013-04-02 14:12:38 +0000708 ['skia_os == "win"',
709 {
710 'targets': [
711 {
712 'target_name': 'win_lcid',
713 'type': 'executable',
714 'sources': [
715 '../tools/win_lcid.cpp',
716 ],
717 },
718 ],
719 },
720 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000721 ],
722}