blob: cb54fee9f5690ee7baf683361ed5e8966337ec4b [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',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +000020 'dump_record',
edisonn@google.com8ba9a832013-01-18 18:06:22 +000021 'filter',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +000022 'gpuveto',
commit-bot@chromium.org5ccdf012014-01-02 18:51:38 +000023 'lua_app',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +000024 'lua_pictures',
edisonn@google.com8ba9a832013-01-18 18:06:22 +000025 'pinspect',
26 'render_pdfs',
27 'render_pictures',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000028 'skdiff',
commit-bot@chromium.org5ccdf012014-01-02 18:51:38 +000029 'skhello',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +000030 'skpdiff',
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +000031 'skpinfo',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +000032 'skpmaker',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000033 'skimage',
halcanary@google.comfed30372013-10-04 12:46:45 +000034 'test_image_decoder',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000035 ],
zachr@google.com28c27c82013-06-20 17:15:05 +000036 'conditions': [
37 ['skia_shared_lib',
38 {
39 'dependencies': [
40 'sklua', # This can only be built if skia is built as a shared library
41 ],
42 },
43 ],
44 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +000045 },
mtklein9ac68ee2014-06-20 11:29:20 -070046 { # This would go in gm.gyp, but it's also used by skimage below.
47 'target_name': 'gm_expectations',
48 'type': 'static_library',
49 'include_dirs' : [ '../src/utils/' ],
50 'sources': [
51 '../gm/gm_expectations.cpp',
mtklein9ac68ee2014-06-20 11:29:20 -070052 ],
53 'dependencies': [
54 'jsoncpp.gyp:jsoncpp',
tfarina20108912014-06-21 10:54:17 -070055 'sk_tool_utils',
mtklein9ac68ee2014-06-20 11:29:20 -070056 'skia_lib.gyp:skia_lib',
57 ],
58 'direct_dependent_settings': {
59 'include_dirs': [ '../gm/' ],
60 },
61 },
62 {
63 'target_name': 'crash_handler',
64 'type': 'static_library',
65 'sources': [ '../tools/CrashHandler.cpp' ],
66 'dependencies': [ 'skia_lib.gyp:skia_lib' ],
67 'direct_dependent_settings': {
68 'include_dirs': [ '../tools' ],
69 },
70 'all_dependent_settings': {
71 'msvs_settings': {
72 'VCLinkerTool': {
73 'AdditionalDependencies': [ 'Dbghelp.lib' ],
74 }
75 },
76 }
77 },
78 {
79 'target_name': 'resources',
80 'type': 'static_library',
81 'sources': [ '../tools/Resources.cpp' ],
82 'dependencies': [
83 'flags.gyp:flags',
84 'skia_lib.gyp:skia_lib',
85 ],
86 'direct_dependent_settings': {
tfarina20108912014-06-21 10:54:17 -070087 'include_dirs': [ '../tools', ],
88 },
89 },
90 {
91 'target_name': 'sk_tool_utils',
92 'type': 'static_library',
caryclark5fb6bd42014-06-23 11:25:00 -070093 'sources': [
94 '../tools/sk_tool_utils.cpp',
95 '../tools/sk_tool_utils_font.cpp',
96 ],
Cary Clark992c7b02014-07-31 08:58:44 -040097 'include_dirs': [
98 '../src/fonts',
99 ],
tfarina20108912014-06-21 10:54:17 -0700100 'dependencies': [
Cary Clark992c7b02014-07-31 08:58:44 -0400101 'flags.gyp:flags',
tfarina20108912014-06-21 10:54:17 -0700102 'skia_lib.gyp:skia_lib',
103 ],
104 'direct_dependent_settings': {
105 'include_dirs': [ '../tools', ],
mtklein9ac68ee2014-06-20 11:29:20 -0700106 },
107 },
108 {
109 'target_name' : 'timer',
110 'type': 'static_library',
111 'sources': [
112 '../tools/timer/Timer.cpp',
113 '../tools/timer/TimerData.cpp',
114 ],
115 'include_dirs': [
116 '../src/core',
117 '../src/gpu',
118 ],
119 'direct_dependent_settings': {
120 'include_dirs': ['../tools/timer'],
121 },
122 'dependencies': [
123 'skia_lib.gyp:skia_lib',
124 'jsoncpp.gyp:jsoncpp',
125 ],
126 'conditions': [
127 ['skia_gpu == 1', {
128 'sources': [ '../tools/timer/GpuTimer.cpp' ],
129 }],
130 [ 'skia_os in ["mac", "ios"]', {
131 'sources': [ '../tools/timer/SysTimer_mach.cpp' ],
132 }],
133 [ 'skia_os == "win"', {
134 'sources': [ '../tools/timer/SysTimer_windows.cpp' ],
135 }],
136 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android", "chromeos"]', {
137 'sources': [ '../tools/timer/SysTimer_posix.cpp' ],
138 }],
139 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
140 'link_settings': { 'libraries': [ '-lrt' ] },
141 }],
142 ],
143 },
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000144 {
145 'target_name': 'skdiff',
146 'type': 'executable',
147 'sources': [
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000148 '../tools/skdiff.cpp',
149 '../tools/skdiff.h',
150 '../tools/skdiff_html.cpp',
151 '../tools/skdiff_html.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000152 '../tools/skdiff_main.cpp',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000153 '../tools/skdiff_utils.cpp',
154 '../tools/skdiff_utils.h',
155 ],
156 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000157 'skia_lib.gyp:skia_lib',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000158 ],
159 },
160 {
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000161 'target_name': 'skpdiff',
162 'type': 'executable',
163 'sources': [
164 '../tools/skpdiff/skpdiff_main.cpp',
165 '../tools/skpdiff/SkDiffContext.cpp',
166 '../tools/skpdiff/SkImageDiffer.cpp',
167 '../tools/skpdiff/SkPMetric.cpp',
168 '../tools/skpdiff/skpdiff_util.cpp',
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000169 ],
170 'include_dirs': [
djsollen@google.comefc51b72013-11-12 18:29:17 +0000171 '../src/core/', # needed for SkTLList.h
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',
176 ],
177 'cflags': [
178 '-O3',
179 ],
180 'conditions': [
181 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
182 'link_settings': {
183 'libraries': [
184 '-lrt',
185 ],
186 },
187 }],
188 ['skia_opencl', {
189 'sources': [
190 '../tools/skpdiff/SkCLImageDiffer.cpp',
191 '../tools/skpdiff/SkDifferentPixelsMetric_opencl.cpp',
192 ],
193 'conditions': [
194 [ 'skia_os == "mac"', {
195 'link_settings': {
196 'libraries': [
197 '$(SDKROOT)/System/Library/Frameworks/OpenCL.framework',
198 ]
199 }
200 }, {
201 'link_settings': {
202 'libraries': [
203 '-lOpenCL',
204 ],
205 },
206 }],
207 ],
208 }, { # !skia_opencl
209 'sources': [
210 '../tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp',
211 ],
212 }],
213 ],
214 },
215 {
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +0000216 'target_name': 'skpmaker',
217 'type': 'executable',
218 'sources': [
219 '../tools/skpmaker.cpp',
220 ],
221 'include_dirs': [
222 '../src/core',
223 ],
224 'dependencies': [
225 'flags.gyp:flags',
226 'skia_lib.gyp:skia_lib',
227 ],
228 },
229 {
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000230 'target_name': 'skimagediff',
231 'type': 'executable',
232 'sources': [
233 '../tools/skdiff.cpp',
234 '../tools/skdiff.h',
235 '../tools/skdiff_html.cpp',
236 '../tools/skdiff_html.h',
237 '../tools/skdiff_image.cpp',
238 '../tools/skdiff_utils.cpp',
239 '../tools/skdiff_utils.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000240 ],
241 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000242 'skia_lib.gyp:skia_lib',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000243 ],
244 },
245 {
246 'target_name': 'skhello',
247 'type': 'executable',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000248 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000249 'skia_lib.gyp:skia_lib',
borenet@google.combb522882013-06-17 15:39:43 +0000250 ],
251 'conditions': [
252 [ 'skia_os == "nacl"', {
253 'sources': [
254 '../platform_tools/nacl/src/nacl_hello.cpp',
255 ],
256 }, {
257 'sources': [
258 '../tools/skhello.cpp',
259 ],
260 'dependencies': [
borenet@google.combb522882013-06-17 15:39:43 +0000261 'flags.gyp:flags',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000262 'pdf.gyp:pdf',
borenet@google.combb522882013-06-17 15:39:43 +0000263 ],
264 }],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000265 ],
266 },
267 {
268 'target_name': 'skimage',
269 'type': 'executable',
270 'sources': [
271 '../tools/skimage_main.cpp',
272 ],
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000273 'include_dirs': [
274 # For SkBitmapHasher.h
275 '../src/utils/',
caryclark5fb6bd42014-06-23 11:25:00 -0700276 '../tools/',
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000277 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000278 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700279 'gm_expectations',
scroggo@google.comb41ff952013-04-11 15:53:35 +0000280 'flags.gyp:flags',
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000281 'jsoncpp.gyp:jsoncpp',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000282 'skia_lib.gyp:skia_lib',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000283 ],
284 },
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +0000285 {
286 'target_name': 'skpinfo',
287 'type': 'executable',
288 'sources': [
289 '../tools/skpinfo.cpp',
290 ],
291 'include_dirs': [
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +0000292 '../src/core/',
293 ],
294 'dependencies': [
295 'flags.gyp:flags',
296 'skia_lib.gyp:skia_lib',
297 ],
298 },
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000299 {
300 'target_name': 'gpuveto',
301 'type': 'executable',
302 'sources': [
303 '../tools/gpuveto.cpp',
304 '../tools/LazyDecodeBitmap.cpp',
305 ],
306 'include_dirs': [
307 '../src/core/',
308 '../src/images',
309 '../src/lazy',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000310 ],
311 'dependencies': [
312 'flags.gyp:flags',
313 'skia_lib.gyp:skia_lib',
314 ],
315 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000316 {
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000317 'target_name': 'lua_app',
318 'type': 'executable',
319 'sources': [
320 '../tools/lua/lua_app.cpp',
321 '../src/utils/SkLua.cpp',
322 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000323 'include_dirs': [
324 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
325 '../src/gpu/',
326 '../src/core/',
327 ],
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000328 'dependencies': [
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000329 'effects.gyp:effects',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000330 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000331 'lua.gyp:lua',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000332 'pdf.gyp:pdf',
333 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000334 'skia_lib.gyp:skia_lib',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000335 ],
336 },
337 {
reed@google.comdff7e112013-05-15 19:34:20 +0000338 'target_name': 'lua_pictures',
339 'type': 'executable',
340 'sources': [
341 '../tools/lua/lua_pictures.cpp',
342 '../src/utils/SkLuaCanvas.cpp',
reed@google.com74ce6f02013-05-22 15:13:18 +0000343 '../src/utils/SkLua.cpp',
reed@google.comdff7e112013-05-15 19:34:20 +0000344 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000345 'include_dirs': [
346 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
347 '../src/gpu/',
348 '../src/core/',
349 ],
reed@google.comdff7e112013-05-15 19:34:20 +0000350 'dependencies': [
reed@google.comdff7e112013-05-15 19:34:20 +0000351 'effects.gyp:effects',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000352 'flags.gyp:flags',
reed@google.comdff7e112013-05-15 19:34:20 +0000353 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000354 'lua.gyp:lua',
reed@google.comdff7e112013-05-15 19:34:20 +0000355 'tools.gyp:picture_renderer',
356 'tools.gyp:picture_utils',
mike@reedtribe.orgfb858242013-06-08 16:39:44 +0000357 'pdf.gyp:pdf',
reed@google.comdff7e112013-05-15 19:34:20 +0000358 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000359 'skia_lib.gyp:skia_lib',
reed@google.comdff7e112013-05-15 19:34:20 +0000360 ],
361 },
362 {
junov@chromium.org777442d2012-06-12 14:56:36 +0000363 'target_name': 'render_pictures',
364 'type': 'executable',
365 'sources': [
366 '../tools/render_pictures_main.cpp',
keyar@chromium.orga2333d92012-07-16 17:29:16 +0000367 ],
368 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000369 '../src/core',
370 '../src/images',
371 '../src/lazy',
keyar@chromium.orga2333d92012-07-16 17:29:16 +0000372 '../src/pipe/utils/',
junov@chromium.org777442d2012-06-12 14:56:36 +0000373 ],
374 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000375 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000376 'skia_lib.gyp:skia_lib',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000377 'tools.gyp:picture_renderer',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000378 'tools.gyp:picture_utils',
379 ],
380 },
381 {
reed@google.com006db0f2012-06-27 19:33:29 +0000382 'target_name': 'bench_pictures',
383 'type': 'executable',
384 'sources': [
tfarinaf168b862014-06-19 12:32:29 -0700385 '../bench/BenchLogger.cpp',
386 '../bench/BenchLogger.h',
commit-bot@chromium.org37c772a2014-05-29 17:10:24 +0000387 '../bench/ResultsWriter.cpp',
388 '../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.org15ac3222014-01-13 12:03:47 +0000413 'target_name': 'bench_record',
414 'type': 'executable',
commit-bot@chromium.org16182f72014-03-28 16:08:18 +0000415 'sources': [
416 '../tools/bench_record.cpp',
417 '../tools/LazyDecodeBitmap.cpp',
418 ],
419 'include_dirs': [
420 '../src/core/',
421 '../src/images',
422 '../src/lazy',
423 ],
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000424 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700425 'timer',
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000426 'flags.gyp:flags',
427 'skia_lib.gyp:skia_lib',
428 ],
429 },
430 {
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000431 'target_name': 'bench_playback',
432 'type': 'executable',
433 'sources': [
434 '../tools/bench_playback.cpp',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000435 ],
436 'include_dirs': [
437 '../src/core/',
438 '../src/images',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000439 ],
440 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700441 'timer',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000442 'flags.gyp:flags',
443 'skia_lib.gyp:skia_lib',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000444 ],
445 },
446 {
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000447 'target_name': 'dump_record',
448 'type': 'executable',
449 'sources': [
450 '../tools/dump_record.cpp',
commit-bot@chromium.org85fd1932014-05-15 16:10:37 +0000451 '../tools/DumpRecord.cpp',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000452 '../tools/LazyDecodeBitmap.cpp',
453 ],
454 'include_dirs': [
455 '../src/core/',
456 '../src/images',
457 '../src/lazy',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000458 ],
459 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700460 'timer',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000461 'flags.gyp:flags',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000462 'skia_lib.gyp:skia_lib',
463 ],
464 },
465 {
borenet@google.comefb1d772012-10-10 19:45:51 +0000466 'target_name': 'picture_renderer',
467 'type': 'static_library',
468 'sources': [
commit-bot@chromium.org90c0fbd2014-05-09 03:18:41 +0000469 '../tools/image_expectations.h',
470 '../tools/image_expectations.cpp',
commit-bot@chromium.org56799e22013-07-16 18:21:46 +0000471 '../tools/LazyDecodeBitmap.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000472 '../tools/PictureRenderer.h',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000473 '../tools/PictureRenderer.cpp',
scroggo@google.com161e1ba2013-03-04 16:41:06 +0000474 '../tools/PictureRenderingFlags.h',
475 '../tools/PictureRenderingFlags.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000476 '../tools/CopyTilesRenderer.h',
477 '../tools/CopyTilesRenderer.cpp',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000478 '../src/pipe/utils/SamplePipeControllers.h',
479 '../src/pipe/utils/SamplePipeControllers.cpp',
borenet@google.comefb1d772012-10-10 19:45:51 +0000480 ],
481 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000482 '../src/core',
483 '../src/images',
484 '../src/lazy',
borenet@google.comefb1d772012-10-10 19:45:51 +0000485 '../src/pipe/utils/',
486 '../src/utils/',
487 ],
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000488 'direct_dependent_settings': {
489 'include_dirs': [
commit-bot@chromium.org90c0fbd2014-05-09 03:18:41 +0000490 # needed for JSON headers used within image_expectations.h
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000491 '../third_party/externals/jsoncpp-chromium/overrides/include/',
492 '../third_party/externals/jsoncpp/include/',
493 ],
494 },
borenet@google.comefb1d772012-10-10 19:45:51 +0000495 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000496 'flags.gyp:flags',
497 'jsoncpp.gyp:jsoncpp',
djsollen@google.com52f02972013-06-03 12:10:19 +0000498 'skia_lib.gyp:skia_lib',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000499 'tools.gyp:picture_utils',
borenet@google.comefb1d772012-10-10 19:45:51 +0000500 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000501 'conditions': [
502 ['skia_gpu == 1',
503 {
504 'include_dirs' : [
505 '../src/gpu',
506 ],
robertphillips@google.com94d8f1e2013-12-18 17:25:33 +0000507 'dependencies': [
508 'gputest.gyp:skgputest',
509 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000510 },
511 ],
512 ],
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000513 },
514 {
edisonn@google.comc319abe2012-11-01 19:52:38 +0000515 'target_name': 'render_pdfs',
516 'type': 'executable',
517 'sources': [
518 '../tools/render_pdfs_main.cpp',
519 '../tools/PdfRenderer.cpp',
520 '../tools/PdfRenderer.h',
521 ],
522 'include_dirs': [
523 '../src/pipe/utils/',
524 '../src/utils/',
525 ],
526 'dependencies': [
edisonn@google.comc319abe2012-11-01 19:52:38 +0000527 'pdf.gyp:pdf',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000528 'skia_lib.gyp:skia_lib',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000529 'tools.gyp:picture_utils',
530 ],
edisonn@google.com184487c2013-03-08 18:00:16 +0000531 'conditions': [
borenet@google.com2d137b62013-03-08 23:13:33 +0000532 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com184487c2013-03-08 18:00:16 +0000533 {
534 'dependencies': [
535 'tools.gyp:win_dbghelp',
536 ],
537 },
538 ],
539 # VS static libraries don't have a linker option. We must set a global
540 # project linker option, or add it to each executable.
541 ['skia_win_debuggers_path and skia_os == "win" and '
borenet@google.com2d137b62013-03-08 23:13:33 +0000542 'skia_arch_width == 64',
edisonn@google.com184487c2013-03-08 18:00:16 +0000543 {
544 'msvs_settings': {
545 'VCLinkerTool': {
546 'AdditionalDependencies': [
547 '<(skia_win_debuggers_path)/x64/DbgHelp.lib',
548 ],
549 },
550 },
551 },
552 ],
553 ['skia_win_debuggers_path and skia_os == "win" and '
borenet@google.com2d137b62013-03-08 23:13:33 +0000554 'skia_arch_width == 32',
edisonn@google.com184487c2013-03-08 18:00:16 +0000555 {
556 'msvs_settings': {
557 'VCLinkerTool': {
558 'AdditionalDependencies': [
559 '<(skia_win_debuggers_path)/DbgHelp.lib',
560 ],
561 },
562 },
563 },
564 ],
565 ],
edisonn@google.comc319abe2012-11-01 19:52:38 +0000566 },
567 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000568 'target_name': 'picture_utils',
569 'type': 'static_library',
570 'sources': [
571 '../tools/picture_utils.cpp',
borenet@google.come21795e2012-09-14 14:34:28 +0000572 '../tools/picture_utils.h',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000573 ],
574 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000575 'skia_lib.gyp:skia_lib',
junov@chromium.org777442d2012-06-12 14:56:36 +0000576 ],
reed@google.come52d2912013-05-15 20:01:07 +0000577 'direct_dependent_settings': {
578 'include_dirs': [
tfarinabcbc1782014-06-18 14:32:48 -0700579 '../tools/',
reed@google.come52d2912013-05-15 20:01:07 +0000580 ],
581 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000582 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000583 {
584 'target_name': 'pinspect',
585 'type': 'executable',
586 'sources': [
587 '../tools/pinspect.cpp',
588 ],
589 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000590 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000591 'skia_lib.gyp:skia_lib',
commit-bot@chromium.org826ec812013-06-12 18:28:36 +0000592 'tools.gyp:picture_renderer',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000593 ],
594 },
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000595 {
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000596 'target_name': 'bbh_shootout',
597 'type': 'executable',
598 'include_dirs': [
599 '../bench',
600 '../tools/'
601 ],
602 'sources': [
603 '../tools/bbh_shootout.cpp',
604
605 # Bench code:
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000606 ],
607 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700608 'timer',
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000609 'flags.gyp:flags',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000610 'skia_lib.gyp:skia_lib',
611 'tools.gyp:picture_renderer',
612 'tools.gyp:picture_utils',
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000613 ],
614 },
615 {
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000616 'target_name': 'filter',
617 'type': 'executable',
618 'include_dirs' : [
619 '../src/core',
fmalita@google.com4df16732013-06-13 21:25:45 +0000620 '../src/utils/debugger',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000621 ],
622 'sources': [
623 '../tools/filtermain.cpp',
fmalita@google.com86681b32013-06-13 20:59:14 +0000624 '../src/utils/debugger/SkDrawCommand.h',
625 '../src/utils/debugger/SkDrawCommand.cpp',
626 '../src/utils/debugger/SkDebugCanvas.h',
627 '../src/utils/debugger/SkDebugCanvas.cpp',
628 '../src/utils/debugger/SkObjectParser.h',
629 '../src/utils/debugger/SkObjectParser.cpp',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000630 ],
631 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000632 'skia_lib.gyp:skia_lib',
djsollen@google.coma09e8832012-11-13 18:50:33 +0000633 'tools.gyp:picture_utils',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000634 ],
635 },
halcanary@google.comfed30372013-10-04 12:46:45 +0000636 {
637 'target_name': 'test_image_decoder',
638 'type': 'executable',
639 'sources': [
640 '../tools/test_image_decoder.cpp',
641 ],
642 'dependencies': [
643 'skia_lib.gyp:skia_lib',
644 ],
645 },
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000646 ],
647 'conditions': [
zachr@google.com28c27c82013-06-20 17:15:05 +0000648 ['skia_shared_lib',
649 {
650 'targets': [
651 {
652 'target_name': 'sklua',
653 'product_name': 'skia',
654 'product_prefix': '',
655 'product_dir': '<(PRODUCT_DIR)/',
656 'type': 'shared_library',
657 'sources': [
658 '../src/utils/SkLuaCanvas.cpp',
659 '../src/utils/SkLua.cpp',
660 ],
661 'include_dirs': [
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000662 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
663 '../src/gpu/',
664 '../src/core/',
zachr@google.com28c27c82013-06-20 17:15:05 +0000665 '../third_party/lua/src/',
666 ],
667 'dependencies': [
668 'lua.gyp:lua',
669 'pdf.gyp:pdf',
670 'skia_lib.gyp:skia_lib',
671 ],
672 'conditions': [
673 ['skia_os != "win"',
674 {
675 'ldflags': [
676 '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags',
677 ],
678 },
679 ],
680 ],
681 },
682 ],
683 },
684 ],
borenet@google.com2d137b62013-03-08 23:13:33 +0000685 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000686 {
687 'targets': [
688 {
689 'target_name': 'win_dbghelp',
690 'type': 'static_library',
691 'defines': [
692 'SK_CDB_PATH="<(skia_win_debuggers_path)"',
693 ],
694 'sources': [
695 '../tools/win_dbghelp.h',
696 '../tools/win_dbghelp.cpp',
697 ],
698 },
699 ],
700 },
701 ],
bungeman@google.com07a69f82013-04-02 14:12:38 +0000702 ['skia_os == "win"',
703 {
704 'targets': [
705 {
706 'target_name': 'win_lcid',
707 'type': 'executable',
708 'sources': [
709 '../tools/win_lcid.cpp',
710 ],
711 },
712 ],
713 },
714 ],
Cary Clark992c7b02014-07-31 08:58:44 -0400715 ['skia_os == "mac"',
716 {
717 'targets': [
718 {
719 'target_name': 'create_test_font',
720 'type': 'executable',
721 'sources': [
722 '../tools/create_test_font.cpp',
723 ],
724 'include_dirs': [
725 '../src/core',
726 ],
727 'dependencies': [
728 'flags.gyp:flags',
729 'skia_lib.gyp:skia_lib',
730 'resources',
731 ],
732 },
733 ],
734 },
735 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000736 ],
737}