blob: d02aaca99c4ade50d84f62f2b88abc1780c1f3b5 [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': [
mtkleinada972d2014-07-31 08:31:56 -0700101 'resources',
Cary Clark992c7b02014-07-31 08:58:44 -0400102 'flags.gyp:flags',
tfarina20108912014-06-21 10:54:17 -0700103 'skia_lib.gyp:skia_lib',
104 ],
105 'direct_dependent_settings': {
106 'include_dirs': [ '../tools', ],
mtklein9ac68ee2014-06-20 11:29:20 -0700107 },
108 },
109 {
110 'target_name' : 'timer',
111 'type': 'static_library',
112 'sources': [
113 '../tools/timer/Timer.cpp',
114 '../tools/timer/TimerData.cpp',
115 ],
116 'include_dirs': [
117 '../src/core',
118 '../src/gpu',
119 ],
120 'direct_dependent_settings': {
121 'include_dirs': ['../tools/timer'],
122 },
123 'dependencies': [
124 'skia_lib.gyp:skia_lib',
125 'jsoncpp.gyp:jsoncpp',
126 ],
127 'conditions': [
128 ['skia_gpu == 1', {
129 'sources': [ '../tools/timer/GpuTimer.cpp' ],
130 }],
131 [ 'skia_os in ["mac", "ios"]', {
132 'sources': [ '../tools/timer/SysTimer_mach.cpp' ],
133 }],
134 [ 'skia_os == "win"', {
135 'sources': [ '../tools/timer/SysTimer_windows.cpp' ],
136 }],
137 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android", "chromeos"]', {
138 'sources': [ '../tools/timer/SysTimer_posix.cpp' ],
139 }],
140 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
141 'link_settings': { 'libraries': [ '-lrt' ] },
142 }],
143 ],
144 },
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000145 {
146 'target_name': 'skdiff',
147 'type': 'executable',
148 'sources': [
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000149 '../tools/skdiff.cpp',
150 '../tools/skdiff.h',
151 '../tools/skdiff_html.cpp',
152 '../tools/skdiff_html.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000153 '../tools/skdiff_main.cpp',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000154 '../tools/skdiff_utils.cpp',
155 '../tools/skdiff_utils.h',
156 ],
157 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000158 'skia_lib.gyp:skia_lib',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000159 ],
160 },
161 {
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000162 'target_name': 'skpdiff',
163 'type': 'executable',
164 'sources': [
165 '../tools/skpdiff/skpdiff_main.cpp',
166 '../tools/skpdiff/SkDiffContext.cpp',
167 '../tools/skpdiff/SkImageDiffer.cpp',
168 '../tools/skpdiff/SkPMetric.cpp',
169 '../tools/skpdiff/skpdiff_util.cpp',
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000170 ],
171 'include_dirs': [
djsollen@google.comefc51b72013-11-12 18:29:17 +0000172 '../src/core/', # needed for SkTLList.h
stephana21b342d2014-08-13 10:36:06 -0700173 '../tools/', # needed for picture_utils::replace_char
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000174 ],
175 'dependencies': [
tfarina1c4d5782014-06-22 16:13:00 -0700176 'flags.gyp:flags',
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000177 'skia_lib.gyp:skia_lib',
stephana21b342d2014-08-13 10:36:06 -0700178 'tools.gyp:picture_utils',
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000179 ],
180 'cflags': [
181 '-O3',
182 ],
183 'conditions': [
184 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
185 'link_settings': {
186 'libraries': [
187 '-lrt',
188 ],
189 },
190 }],
191 ['skia_opencl', {
192 'sources': [
193 '../tools/skpdiff/SkCLImageDiffer.cpp',
194 '../tools/skpdiff/SkDifferentPixelsMetric_opencl.cpp',
195 ],
196 'conditions': [
197 [ 'skia_os == "mac"', {
198 'link_settings': {
199 'libraries': [
200 '$(SDKROOT)/System/Library/Frameworks/OpenCL.framework',
201 ]
202 }
203 }, {
204 'link_settings': {
205 'libraries': [
206 '-lOpenCL',
207 ],
208 },
209 }],
210 ],
211 }, { # !skia_opencl
212 'sources': [
213 '../tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp',
214 ],
215 }],
216 ],
217 },
218 {
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +0000219 'target_name': 'skpmaker',
220 'type': 'executable',
221 'sources': [
222 '../tools/skpmaker.cpp',
223 ],
224 'include_dirs': [
225 '../src/core',
226 ],
227 'dependencies': [
228 'flags.gyp:flags',
229 'skia_lib.gyp:skia_lib',
230 ],
231 },
232 {
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000233 'target_name': 'skimagediff',
234 'type': 'executable',
235 'sources': [
236 '../tools/skdiff.cpp',
237 '../tools/skdiff.h',
238 '../tools/skdiff_html.cpp',
239 '../tools/skdiff_html.h',
240 '../tools/skdiff_image.cpp',
241 '../tools/skdiff_utils.cpp',
242 '../tools/skdiff_utils.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000243 ],
244 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000245 'skia_lib.gyp:skia_lib',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000246 ],
247 },
248 {
249 'target_name': 'skhello',
250 'type': 'executable',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000251 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000252 'skia_lib.gyp:skia_lib',
borenet@google.combb522882013-06-17 15:39:43 +0000253 ],
254 'conditions': [
255 [ 'skia_os == "nacl"', {
256 'sources': [
257 '../platform_tools/nacl/src/nacl_hello.cpp',
258 ],
259 }, {
260 'sources': [
261 '../tools/skhello.cpp',
262 ],
263 'dependencies': [
borenet@google.combb522882013-06-17 15:39:43 +0000264 'flags.gyp:flags',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000265 'pdf.gyp:pdf',
borenet@google.combb522882013-06-17 15:39:43 +0000266 ],
267 }],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000268 ],
269 },
270 {
271 'target_name': 'skimage',
272 'type': 'executable',
273 'sources': [
274 '../tools/skimage_main.cpp',
275 ],
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000276 'include_dirs': [
277 # For SkBitmapHasher.h
278 '../src/utils/',
caryclark5fb6bd42014-06-23 11:25:00 -0700279 '../tools/',
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000280 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000281 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700282 'gm_expectations',
scroggo@google.comb41ff952013-04-11 15:53:35 +0000283 'flags.gyp:flags',
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000284 'jsoncpp.gyp:jsoncpp',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000285 'skia_lib.gyp:skia_lib',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000286 ],
287 },
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +0000288 {
289 'target_name': 'skpinfo',
290 'type': 'executable',
291 'sources': [
292 '../tools/skpinfo.cpp',
293 ],
294 'include_dirs': [
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +0000295 '../src/core/',
296 ],
297 'dependencies': [
298 'flags.gyp:flags',
299 'skia_lib.gyp:skia_lib',
300 ],
301 },
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000302 {
303 'target_name': 'gpuveto',
304 'type': 'executable',
305 'sources': [
306 '../tools/gpuveto.cpp',
307 '../tools/LazyDecodeBitmap.cpp',
308 ],
309 'include_dirs': [
310 '../src/core/',
311 '../src/images',
312 '../src/lazy',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000313 ],
314 'dependencies': [
315 'flags.gyp:flags',
316 'skia_lib.gyp:skia_lib',
317 ],
318 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000319 {
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000320 'target_name': 'lua_app',
321 'type': 'executable',
322 'sources': [
323 '../tools/lua/lua_app.cpp',
324 '../src/utils/SkLua.cpp',
325 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000326 'include_dirs': [
327 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
328 '../src/gpu/',
329 '../src/core/',
330 ],
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000331 'dependencies': [
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000332 'effects.gyp:effects',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000333 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000334 'lua.gyp:lua',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000335 'pdf.gyp:pdf',
336 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000337 'skia_lib.gyp:skia_lib',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000338 ],
339 },
340 {
reed@google.comdff7e112013-05-15 19:34:20 +0000341 'target_name': 'lua_pictures',
342 'type': 'executable',
343 'sources': [
344 '../tools/lua/lua_pictures.cpp',
345 '../src/utils/SkLuaCanvas.cpp',
reed@google.com74ce6f02013-05-22 15:13:18 +0000346 '../src/utils/SkLua.cpp',
reed@google.comdff7e112013-05-15 19:34:20 +0000347 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000348 'include_dirs': [
349 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
350 '../src/gpu/',
351 '../src/core/',
352 ],
reed@google.comdff7e112013-05-15 19:34:20 +0000353 'dependencies': [
reed@google.comdff7e112013-05-15 19:34:20 +0000354 'effects.gyp:effects',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000355 'flags.gyp:flags',
reed@google.comdff7e112013-05-15 19:34:20 +0000356 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000357 'lua.gyp:lua',
reed@google.comdff7e112013-05-15 19:34:20 +0000358 'tools.gyp:picture_renderer',
359 'tools.gyp:picture_utils',
mike@reedtribe.orgfb858242013-06-08 16:39:44 +0000360 'pdf.gyp:pdf',
reed@google.comdff7e112013-05-15 19:34:20 +0000361 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000362 'skia_lib.gyp:skia_lib',
reed@google.comdff7e112013-05-15 19:34:20 +0000363 ],
364 },
365 {
junov@chromium.org777442d2012-06-12 14:56:36 +0000366 'target_name': 'render_pictures',
367 'type': 'executable',
368 'sources': [
369 '../tools/render_pictures_main.cpp',
keyar@chromium.orga2333d92012-07-16 17:29:16 +0000370 ],
371 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000372 '../src/core',
373 '../src/images',
374 '../src/lazy',
keyar@chromium.orga2333d92012-07-16 17:29:16 +0000375 '../src/pipe/utils/',
junov@chromium.org777442d2012-06-12 14:56:36 +0000376 ],
377 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000378 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000379 'skia_lib.gyp:skia_lib',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000380 'tools.gyp:picture_renderer',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000381 'tools.gyp:picture_utils',
382 ],
383 },
384 {
reed@google.com006db0f2012-06-27 19:33:29 +0000385 'target_name': 'bench_pictures',
386 'type': 'executable',
387 'sources': [
tfarinaf168b862014-06-19 12:32:29 -0700388 '../bench/BenchLogger.cpp',
389 '../bench/BenchLogger.h',
commit-bot@chromium.org37c772a2014-05-29 17:10:24 +0000390 '../bench/ResultsWriter.cpp',
391 '../tools/PictureBenchmark.cpp',
392 '../tools/PictureResultsWriter.h',
keyar@chromium.orgcf6c44c2012-07-09 19:37:40 +0000393 '../tools/bench_pictures_main.cpp',
reed@google.com006db0f2012-06-27 19:33:29 +0000394 ],
395 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000396 '../src/core/',
reed@google.com006db0f2012-06-27 19:33:29 +0000397 '../bench',
scroggo@google.comcc690202013-03-04 19:56:21 +0000398 '../src/lazy/',
reed@google.com006db0f2012-06-27 19:33:29 +0000399 ],
400 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700401 'timer',
402 'crash_handler',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000403 'flags.gyp:flags',
commit-bot@chromium.org37c772a2014-05-29 17:10:24 +0000404 'jsoncpp.gyp:jsoncpp',
djsollen@google.com52f02972013-06-03 12:10:19 +0000405 'skia_lib.gyp:skia_lib',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000406 'tools.gyp:picture_renderer',
mtklein30e6e2a2014-06-18 11:44:15 -0700407 'tools.gyp:picture_utils',
scroggo@google.com9a412522012-09-07 15:21:18 +0000408 ],
scroggo3eb258d2014-07-17 06:58:28 -0700409 'conditions': [
410 ['skia_android_framework == 1', {
411 'libraries': [ '-lskia' ],
412 }],
413 ],
keyar@chromium.org163b5672012-08-01 17:53:29 +0000414 },
415 {
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000416 'target_name': 'bench_record',
417 'type': 'executable',
commit-bot@chromium.org16182f72014-03-28 16:08:18 +0000418 'sources': [
419 '../tools/bench_record.cpp',
420 '../tools/LazyDecodeBitmap.cpp',
421 ],
422 'include_dirs': [
423 '../src/core/',
424 '../src/images',
425 '../src/lazy',
426 ],
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000427 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700428 'timer',
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000429 'flags.gyp:flags',
430 'skia_lib.gyp:skia_lib',
431 ],
432 },
433 {
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000434 'target_name': 'bench_playback',
435 'type': 'executable',
436 'sources': [
437 '../tools/bench_playback.cpp',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000438 ],
439 'include_dirs': [
440 '../src/core/',
441 '../src/images',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000442 ],
443 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700444 'timer',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000445 'flags.gyp:flags',
446 'skia_lib.gyp:skia_lib',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000447 ],
448 },
449 {
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000450 'target_name': 'dump_record',
451 'type': 'executable',
452 'sources': [
453 '../tools/dump_record.cpp',
commit-bot@chromium.org85fd1932014-05-15 16:10:37 +0000454 '../tools/DumpRecord.cpp',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000455 '../tools/LazyDecodeBitmap.cpp',
456 ],
457 'include_dirs': [
458 '../src/core/',
459 '../src/images',
460 '../src/lazy',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000461 ],
462 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700463 'timer',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000464 'flags.gyp:flags',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000465 'skia_lib.gyp:skia_lib',
466 ],
467 },
468 {
borenet@google.comefb1d772012-10-10 19:45:51 +0000469 'target_name': 'picture_renderer',
470 'type': 'static_library',
471 'sources': [
commit-bot@chromium.org90c0fbd2014-05-09 03:18:41 +0000472 '../tools/image_expectations.h',
473 '../tools/image_expectations.cpp',
commit-bot@chromium.org56799e22013-07-16 18:21:46 +0000474 '../tools/LazyDecodeBitmap.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000475 '../tools/PictureRenderer.h',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000476 '../tools/PictureRenderer.cpp',
scroggo@google.com161e1ba2013-03-04 16:41:06 +0000477 '../tools/PictureRenderingFlags.h',
478 '../tools/PictureRenderingFlags.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000479 '../tools/CopyTilesRenderer.h',
480 '../tools/CopyTilesRenderer.cpp',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000481 '../src/pipe/utils/SamplePipeControllers.h',
482 '../src/pipe/utils/SamplePipeControllers.cpp',
borenet@google.comefb1d772012-10-10 19:45:51 +0000483 ],
484 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000485 '../src/core',
486 '../src/images',
487 '../src/lazy',
borenet@google.comefb1d772012-10-10 19:45:51 +0000488 '../src/pipe/utils/',
489 '../src/utils/',
490 ],
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000491 'direct_dependent_settings': {
492 'include_dirs': [
commit-bot@chromium.org90c0fbd2014-05-09 03:18:41 +0000493 # needed for JSON headers used within image_expectations.h
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000494 '../third_party/externals/jsoncpp-chromium/overrides/include/',
495 '../third_party/externals/jsoncpp/include/',
496 ],
497 },
borenet@google.comefb1d772012-10-10 19:45:51 +0000498 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000499 'flags.gyp:flags',
500 'jsoncpp.gyp:jsoncpp',
djsollen@google.com52f02972013-06-03 12:10:19 +0000501 'skia_lib.gyp:skia_lib',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000502 'tools.gyp:picture_utils',
borenet@google.comefb1d772012-10-10 19:45:51 +0000503 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000504 'conditions': [
505 ['skia_gpu == 1',
506 {
507 'include_dirs' : [
508 '../src/gpu',
509 ],
robertphillips@google.com94d8f1e2013-12-18 17:25:33 +0000510 'dependencies': [
511 'gputest.gyp:skgputest',
512 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000513 },
514 ],
515 ],
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000516 },
517 {
edisonn@google.comc319abe2012-11-01 19:52:38 +0000518 'target_name': 'render_pdfs',
519 'type': 'executable',
520 'sources': [
521 '../tools/render_pdfs_main.cpp',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000522 ],
523 'include_dirs': [
halcanary0bef17a2014-08-07 07:24:47 -0700524 '../src/core',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000525 '../src/pipe/utils/',
526 '../src/utils/',
527 ],
528 'dependencies': [
halcanary0bef17a2014-08-07 07:24:47 -0700529 'flags.gyp:flags',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000530 'pdf.gyp:pdf',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000531 'skia_lib.gyp:skia_lib',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000532 'tools.gyp:picture_utils',
mtkleinafb43792014-08-19 15:55:55 -0700533 'tools.gyp:proc_stats',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000534 ],
edisonn@google.com184487c2013-03-08 18:00:16 +0000535 'conditions': [
borenet@google.com2d137b62013-03-08 23:13:33 +0000536 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com184487c2013-03-08 18:00:16 +0000537 {
538 'dependencies': [
539 'tools.gyp:win_dbghelp',
540 ],
541 },
542 ],
543 # VS static libraries don't have a linker option. We must set a global
544 # project linker option, or add it to each executable.
545 ['skia_win_debuggers_path and skia_os == "win" and '
borenet@google.com2d137b62013-03-08 23:13:33 +0000546 'skia_arch_width == 64',
edisonn@google.com184487c2013-03-08 18:00:16 +0000547 {
548 'msvs_settings': {
549 'VCLinkerTool': {
550 'AdditionalDependencies': [
551 '<(skia_win_debuggers_path)/x64/DbgHelp.lib',
552 ],
553 },
554 },
555 },
556 ],
557 ['skia_win_debuggers_path and skia_os == "win" and '
borenet@google.com2d137b62013-03-08 23:13:33 +0000558 'skia_arch_width == 32',
edisonn@google.com184487c2013-03-08 18:00:16 +0000559 {
560 'msvs_settings': {
561 'VCLinkerTool': {
562 'AdditionalDependencies': [
563 '<(skia_win_debuggers_path)/DbgHelp.lib',
564 ],
565 },
566 },
567 },
568 ],
569 ],
edisonn@google.comc319abe2012-11-01 19:52:38 +0000570 },
571 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000572 'target_name': 'picture_utils',
573 'type': 'static_library',
574 'sources': [
575 '../tools/picture_utils.cpp',
borenet@google.come21795e2012-09-14 14:34:28 +0000576 '../tools/picture_utils.h',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000577 ],
578 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000579 'skia_lib.gyp:skia_lib',
junov@chromium.org777442d2012-06-12 14:56:36 +0000580 ],
reed@google.come52d2912013-05-15 20:01:07 +0000581 'direct_dependent_settings': {
582 'include_dirs': [
tfarinabcbc1782014-06-18 14:32:48 -0700583 '../tools/',
reed@google.come52d2912013-05-15 20:01:07 +0000584 ],
585 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000586 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000587 {
588 'target_name': 'pinspect',
589 'type': 'executable',
590 'sources': [
591 '../tools/pinspect.cpp',
592 ],
593 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000594 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000595 'skia_lib.gyp:skia_lib',
commit-bot@chromium.org826ec812013-06-12 18:28:36 +0000596 'tools.gyp:picture_renderer',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000597 ],
598 },
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000599 {
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000600 'target_name': 'bbh_shootout',
601 'type': 'executable',
602 'include_dirs': [
603 '../bench',
604 '../tools/'
605 ],
606 'sources': [
607 '../tools/bbh_shootout.cpp',
608
609 # Bench code:
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000610 ],
611 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700612 'timer',
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000613 'flags.gyp:flags',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000614 'skia_lib.gyp:skia_lib',
615 'tools.gyp:picture_renderer',
616 'tools.gyp:picture_utils',
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000617 ],
618 },
619 {
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000620 'target_name': 'filter',
621 'type': 'executable',
622 'include_dirs' : [
623 '../src/core',
fmalita@google.com4df16732013-06-13 21:25:45 +0000624 '../src/utils/debugger',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000625 ],
626 'sources': [
627 '../tools/filtermain.cpp',
fmalita@google.com86681b32013-06-13 20:59:14 +0000628 '../src/utils/debugger/SkDrawCommand.h',
629 '../src/utils/debugger/SkDrawCommand.cpp',
630 '../src/utils/debugger/SkDebugCanvas.h',
631 '../src/utils/debugger/SkDebugCanvas.cpp',
632 '../src/utils/debugger/SkObjectParser.h',
633 '../src/utils/debugger/SkObjectParser.cpp',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000634 ],
635 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000636 'skia_lib.gyp:skia_lib',
djsollen@google.coma09e8832012-11-13 18:50:33 +0000637 'tools.gyp:picture_utils',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000638 ],
639 },
halcanary@google.comfed30372013-10-04 12:46:45 +0000640 {
641 'target_name': 'test_image_decoder',
642 'type': 'executable',
643 'sources': [
644 '../tools/test_image_decoder.cpp',
645 ],
646 'dependencies': [
647 'skia_lib.gyp:skia_lib',
648 ],
649 },
halcanary0d154ee2014-08-11 11:33:51 -0700650 {
mtkleinafb43792014-08-19 15:55:55 -0700651 'target_name': 'proc_stats',
halcanary0d154ee2014-08-11 11:33:51 -0700652 'type': 'static_library',
653 'sources': [
654 '../tools/ProcStats.h',
655 '../tools/ProcStats.cpp',
656 ],
657 'direct_dependent_settings': {
658 'include_dirs': [ '../tools', ],
659 },
660 },
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000661 ],
662 'conditions': [
zachr@google.com28c27c82013-06-20 17:15:05 +0000663 ['skia_shared_lib',
664 {
665 'targets': [
666 {
667 'target_name': 'sklua',
668 'product_name': 'skia',
669 'product_prefix': '',
670 'product_dir': '<(PRODUCT_DIR)/',
671 'type': 'shared_library',
672 'sources': [
673 '../src/utils/SkLuaCanvas.cpp',
674 '../src/utils/SkLua.cpp',
675 ],
676 'include_dirs': [
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000677 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
678 '../src/gpu/',
679 '../src/core/',
zachr@google.com28c27c82013-06-20 17:15:05 +0000680 '../third_party/lua/src/',
681 ],
682 'dependencies': [
683 'lua.gyp:lua',
684 'pdf.gyp:pdf',
685 'skia_lib.gyp:skia_lib',
686 ],
687 'conditions': [
688 ['skia_os != "win"',
689 {
690 'ldflags': [
691 '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags',
692 ],
693 },
694 ],
695 ],
696 },
697 ],
698 },
699 ],
borenet@google.com2d137b62013-03-08 23:13:33 +0000700 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000701 {
702 'targets': [
703 {
704 'target_name': 'win_dbghelp',
705 'type': 'static_library',
706 'defines': [
707 'SK_CDB_PATH="<(skia_win_debuggers_path)"',
708 ],
709 'sources': [
710 '../tools/win_dbghelp.h',
711 '../tools/win_dbghelp.cpp',
712 ],
713 },
714 ],
715 },
716 ],
bungeman@google.com07a69f82013-04-02 14:12:38 +0000717 ['skia_os == "win"',
718 {
719 'targets': [
720 {
721 'target_name': 'win_lcid',
722 'type': 'executable',
723 'sources': [
724 '../tools/win_lcid.cpp',
725 ],
726 },
727 ],
728 },
729 ],
Cary Clark992c7b02014-07-31 08:58:44 -0400730 ['skia_os == "mac"',
731 {
732 'targets': [
733 {
734 'target_name': 'create_test_font',
735 'type': 'executable',
736 'sources': [
737 '../tools/create_test_font.cpp',
738 ],
739 'include_dirs': [
740 '../src/core',
741 ],
742 'dependencies': [
743 'flags.gyp:flags',
744 'skia_lib.gyp:skia_lib',
745 'resources',
746 ],
747 },
748 ],
749 },
750 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000751 ],
752}