blob: 66b84db66fa9c9ad07e09628c646e0df3fb356a3 [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 '../tools/PictureBenchmark.cpp',
391 '../tools/PictureResultsWriter.h',
keyar@chromium.orgcf6c44c2012-07-09 19:37:40 +0000392 '../tools/bench_pictures_main.cpp',
reed@google.com006db0f2012-06-27 19:33:29 +0000393 ],
394 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000395 '../src/core/',
reed@google.com006db0f2012-06-27 19:33:29 +0000396 '../bench',
scroggo@google.comcc690202013-03-04 19:56:21 +0000397 '../src/lazy/',
reed@google.com006db0f2012-06-27 19:33:29 +0000398 ],
399 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700400 'timer',
401 'crash_handler',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000402 'flags.gyp:flags',
commit-bot@chromium.org37c772a2014-05-29 17:10:24 +0000403 'jsoncpp.gyp:jsoncpp',
djsollen@google.com52f02972013-06-03 12:10:19 +0000404 'skia_lib.gyp:skia_lib',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000405 'tools.gyp:picture_renderer',
mtklein30e6e2a2014-06-18 11:44:15 -0700406 'tools.gyp:picture_utils',
scroggo@google.com9a412522012-09-07 15:21:18 +0000407 ],
scroggo3eb258d2014-07-17 06:58:28 -0700408 'conditions': [
409 ['skia_android_framework == 1', {
410 'libraries': [ '-lskia' ],
411 }],
412 ],
keyar@chromium.org163b5672012-08-01 17:53:29 +0000413 },
414 {
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000415 'target_name': 'bench_record',
416 'type': 'executable',
commit-bot@chromium.org16182f72014-03-28 16:08:18 +0000417 'sources': [
418 '../tools/bench_record.cpp',
419 '../tools/LazyDecodeBitmap.cpp',
420 ],
421 'include_dirs': [
422 '../src/core/',
423 '../src/images',
424 '../src/lazy',
425 ],
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000426 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700427 'timer',
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000428 'flags.gyp:flags',
429 'skia_lib.gyp:skia_lib',
430 ],
431 },
432 {
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000433 'target_name': 'bench_playback',
434 'type': 'executable',
435 'sources': [
436 '../tools/bench_playback.cpp',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000437 ],
438 'include_dirs': [
439 '../src/core/',
440 '../src/images',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000441 ],
442 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700443 'timer',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000444 'flags.gyp:flags',
445 'skia_lib.gyp:skia_lib',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000446 ],
447 },
448 {
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000449 'target_name': 'dump_record',
450 'type': 'executable',
451 'sources': [
452 '../tools/dump_record.cpp',
commit-bot@chromium.org85fd1932014-05-15 16:10:37 +0000453 '../tools/DumpRecord.cpp',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000454 '../tools/LazyDecodeBitmap.cpp',
455 ],
456 'include_dirs': [
457 '../src/core/',
458 '../src/images',
459 '../src/lazy',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000460 ],
461 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700462 'timer',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000463 'flags.gyp:flags',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000464 'skia_lib.gyp:skia_lib',
465 ],
466 },
467 {
borenet@google.comefb1d772012-10-10 19:45:51 +0000468 'target_name': 'picture_renderer',
469 'type': 'static_library',
470 'sources': [
commit-bot@chromium.org90c0fbd2014-05-09 03:18:41 +0000471 '../tools/image_expectations.h',
472 '../tools/image_expectations.cpp',
commit-bot@chromium.org56799e22013-07-16 18:21:46 +0000473 '../tools/LazyDecodeBitmap.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000474 '../tools/PictureRenderer.h',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000475 '../tools/PictureRenderer.cpp',
scroggo@google.com161e1ba2013-03-04 16:41:06 +0000476 '../tools/PictureRenderingFlags.h',
477 '../tools/PictureRenderingFlags.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000478 '../tools/CopyTilesRenderer.h',
479 '../tools/CopyTilesRenderer.cpp',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000480 '../src/pipe/utils/SamplePipeControllers.h',
481 '../src/pipe/utils/SamplePipeControllers.cpp',
borenet@google.comefb1d772012-10-10 19:45:51 +0000482 ],
483 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000484 '../src/core',
485 '../src/images',
486 '../src/lazy',
borenet@google.comefb1d772012-10-10 19:45:51 +0000487 '../src/pipe/utils/',
488 '../src/utils/',
489 ],
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000490 'direct_dependent_settings': {
491 'include_dirs': [
commit-bot@chromium.org90c0fbd2014-05-09 03:18:41 +0000492 # needed for JSON headers used within image_expectations.h
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000493 '../third_party/externals/jsoncpp-chromium/overrides/include/',
494 '../third_party/externals/jsoncpp/include/',
495 ],
496 },
borenet@google.comefb1d772012-10-10 19:45:51 +0000497 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000498 'flags.gyp:flags',
499 'jsoncpp.gyp:jsoncpp',
djsollen@google.com52f02972013-06-03 12:10:19 +0000500 'skia_lib.gyp:skia_lib',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000501 'tools.gyp:picture_utils',
borenet@google.comefb1d772012-10-10 19:45:51 +0000502 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000503 'conditions': [
504 ['skia_gpu == 1',
505 {
506 'include_dirs' : [
507 '../src/gpu',
508 ],
robertphillips@google.com94d8f1e2013-12-18 17:25:33 +0000509 'dependencies': [
510 'gputest.gyp:skgputest',
511 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000512 },
513 ],
514 ],
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000515 },
516 {
edisonn@google.comc319abe2012-11-01 19:52:38 +0000517 'target_name': 'render_pdfs',
518 'type': 'executable',
519 'sources': [
520 '../tools/render_pdfs_main.cpp',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000521 ],
522 'include_dirs': [
halcanary0bef17a2014-08-07 07:24:47 -0700523 '../src/core',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000524 '../src/pipe/utils/',
525 '../src/utils/',
526 ],
527 'dependencies': [
halcanary0bef17a2014-08-07 07:24:47 -0700528 'flags.gyp:flags',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000529 'pdf.gyp:pdf',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000530 'skia_lib.gyp:skia_lib',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000531 'tools.gyp:picture_utils',
mtkleinafb43792014-08-19 15:55:55 -0700532 'tools.gyp:proc_stats',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000533 ],
edisonn@google.com184487c2013-03-08 18:00:16 +0000534 'conditions': [
borenet@google.com2d137b62013-03-08 23:13:33 +0000535 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com184487c2013-03-08 18:00:16 +0000536 {
537 'dependencies': [
538 'tools.gyp:win_dbghelp',
539 ],
540 },
541 ],
542 # VS static libraries don't have a linker option. We must set a global
543 # project linker option, or add it to each executable.
544 ['skia_win_debuggers_path and skia_os == "win" and '
borenet@google.com2d137b62013-03-08 23:13:33 +0000545 'skia_arch_width == 64',
edisonn@google.com184487c2013-03-08 18:00:16 +0000546 {
547 'msvs_settings': {
548 'VCLinkerTool': {
549 'AdditionalDependencies': [
550 '<(skia_win_debuggers_path)/x64/DbgHelp.lib',
551 ],
552 },
553 },
554 },
555 ],
556 ['skia_win_debuggers_path and skia_os == "win" and '
borenet@google.com2d137b62013-03-08 23:13:33 +0000557 'skia_arch_width == 32',
edisonn@google.com184487c2013-03-08 18:00:16 +0000558 {
559 'msvs_settings': {
560 'VCLinkerTool': {
561 'AdditionalDependencies': [
562 '<(skia_win_debuggers_path)/DbgHelp.lib',
563 ],
564 },
565 },
566 },
567 ],
568 ],
edisonn@google.comc319abe2012-11-01 19:52:38 +0000569 },
570 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000571 'target_name': 'picture_utils',
572 'type': 'static_library',
573 'sources': [
574 '../tools/picture_utils.cpp',
borenet@google.come21795e2012-09-14 14:34:28 +0000575 '../tools/picture_utils.h',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000576 ],
577 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000578 'skia_lib.gyp:skia_lib',
junov@chromium.org777442d2012-06-12 14:56:36 +0000579 ],
reed@google.come52d2912013-05-15 20:01:07 +0000580 'direct_dependent_settings': {
581 'include_dirs': [
tfarinabcbc1782014-06-18 14:32:48 -0700582 '../tools/',
reed@google.come52d2912013-05-15 20:01:07 +0000583 ],
584 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000585 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000586 {
587 'target_name': 'pinspect',
588 'type': 'executable',
589 'sources': [
590 '../tools/pinspect.cpp',
591 ],
592 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000593 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000594 'skia_lib.gyp:skia_lib',
commit-bot@chromium.org826ec812013-06-12 18:28:36 +0000595 'tools.gyp:picture_renderer',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000596 ],
597 },
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000598 {
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000599 'target_name': 'bbh_shootout',
600 'type': 'executable',
601 'include_dirs': [
602 '../bench',
603 '../tools/'
604 ],
605 'sources': [
606 '../tools/bbh_shootout.cpp',
607
608 # Bench code:
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000609 ],
610 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700611 'timer',
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000612 'flags.gyp:flags',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000613 'skia_lib.gyp:skia_lib',
614 'tools.gyp:picture_renderer',
615 'tools.gyp:picture_utils',
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000616 ],
617 },
618 {
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000619 'target_name': 'filter',
620 'type': 'executable',
621 'include_dirs' : [
622 '../src/core',
fmalita@google.com4df16732013-06-13 21:25:45 +0000623 '../src/utils/debugger',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000624 ],
625 'sources': [
626 '../tools/filtermain.cpp',
fmalita@google.com86681b32013-06-13 20:59:14 +0000627 '../src/utils/debugger/SkDrawCommand.h',
628 '../src/utils/debugger/SkDrawCommand.cpp',
629 '../src/utils/debugger/SkDebugCanvas.h',
630 '../src/utils/debugger/SkDebugCanvas.cpp',
631 '../src/utils/debugger/SkObjectParser.h',
632 '../src/utils/debugger/SkObjectParser.cpp',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000633 ],
634 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000635 'skia_lib.gyp:skia_lib',
djsollen@google.coma09e8832012-11-13 18:50:33 +0000636 'tools.gyp:picture_utils',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000637 ],
638 },
halcanary@google.comfed30372013-10-04 12:46:45 +0000639 {
640 'target_name': 'test_image_decoder',
641 'type': 'executable',
642 'sources': [
643 '../tools/test_image_decoder.cpp',
644 ],
645 'dependencies': [
646 'skia_lib.gyp:skia_lib',
647 ],
648 },
halcanary0d154ee2014-08-11 11:33:51 -0700649 {
mtkleinafb43792014-08-19 15:55:55 -0700650 'target_name': 'proc_stats',
halcanary0d154ee2014-08-11 11:33:51 -0700651 'type': 'static_library',
652 'sources': [
653 '../tools/ProcStats.h',
654 '../tools/ProcStats.cpp',
655 ],
656 'direct_dependent_settings': {
657 'include_dirs': [ '../tools', ],
658 },
659 },
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000660 ],
661 'conditions': [
zachr@google.com28c27c82013-06-20 17:15:05 +0000662 ['skia_shared_lib',
663 {
664 'targets': [
665 {
666 'target_name': 'sklua',
667 'product_name': 'skia',
668 'product_prefix': '',
669 'product_dir': '<(PRODUCT_DIR)/',
670 'type': 'shared_library',
671 'sources': [
672 '../src/utils/SkLuaCanvas.cpp',
673 '../src/utils/SkLua.cpp',
674 ],
675 'include_dirs': [
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000676 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
677 '../src/gpu/',
678 '../src/core/',
zachr@google.com28c27c82013-06-20 17:15:05 +0000679 '../third_party/lua/src/',
680 ],
681 'dependencies': [
682 'lua.gyp:lua',
683 'pdf.gyp:pdf',
684 'skia_lib.gyp:skia_lib',
685 ],
686 'conditions': [
687 ['skia_os != "win"',
688 {
689 'ldflags': [
690 '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags',
691 ],
692 },
693 ],
694 ],
695 },
696 ],
697 },
698 ],
borenet@google.com2d137b62013-03-08 23:13:33 +0000699 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000700 {
701 'targets': [
702 {
703 'target_name': 'win_dbghelp',
704 'type': 'static_library',
705 'defines': [
706 'SK_CDB_PATH="<(skia_win_debuggers_path)"',
707 ],
708 'sources': [
709 '../tools/win_dbghelp.h',
710 '../tools/win_dbghelp.cpp',
711 ],
712 },
713 ],
714 },
715 ],
bungeman@google.com07a69f82013-04-02 14:12:38 +0000716 ['skia_os == "win"',
717 {
718 'targets': [
719 {
720 'target_name': 'win_lcid',
721 'type': 'executable',
722 'sources': [
723 '../tools/win_lcid.cpp',
724 ],
725 },
726 ],
727 },
728 ],
Cary Clark992c7b02014-07-31 08:58:44 -0400729 ['skia_os == "mac"',
730 {
731 'targets': [
732 {
733 'target_name': 'create_test_font',
734 'type': 'executable',
735 'sources': [
736 '../tools/create_test_font.cpp',
737 ],
738 'include_dirs': [
739 '../src/core',
740 ],
741 'dependencies': [
742 'flags.gyp:flags',
743 'skia_lib.gyp:skia_lib',
744 'resources',
745 ],
746 },
747 ],
748 },
749 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000750 ],
751}