blob: 6913cc1c67d3f4928c35f8a4633c59d35f1d30b1 [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',
93 'sources': [ '../tools/sk_tool_utils.cpp' ],
94 'dependencies': [
95 'skia_lib.gyp:skia_lib',
96 ],
97 'direct_dependent_settings': {
98 'include_dirs': [ '../tools', ],
mtklein9ac68ee2014-06-20 11:29:20 -070099 },
100 },
101 {
102 'target_name' : 'timer',
103 'type': 'static_library',
104 'sources': [
105 '../tools/timer/Timer.cpp',
106 '../tools/timer/TimerData.cpp',
107 ],
108 'include_dirs': [
109 '../src/core',
110 '../src/gpu',
111 ],
112 'direct_dependent_settings': {
113 'include_dirs': ['../tools/timer'],
114 },
115 'dependencies': [
116 'skia_lib.gyp:skia_lib',
117 'jsoncpp.gyp:jsoncpp',
118 ],
119 'conditions': [
120 ['skia_gpu == 1', {
121 'sources': [ '../tools/timer/GpuTimer.cpp' ],
122 }],
123 [ 'skia_os in ["mac", "ios"]', {
124 'sources': [ '../tools/timer/SysTimer_mach.cpp' ],
125 }],
126 [ 'skia_os == "win"', {
127 'sources': [ '../tools/timer/SysTimer_windows.cpp' ],
128 }],
129 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android", "chromeos"]', {
130 'sources': [ '../tools/timer/SysTimer_posix.cpp' ],
131 }],
132 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
133 'link_settings': { 'libraries': [ '-lrt' ] },
134 }],
135 ],
136 },
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000137 {
138 'target_name': 'skdiff',
139 'type': 'executable',
140 'sources': [
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000141 '../tools/skdiff.cpp',
142 '../tools/skdiff.h',
143 '../tools/skdiff_html.cpp',
144 '../tools/skdiff_html.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000145 '../tools/skdiff_main.cpp',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000146 '../tools/skdiff_utils.cpp',
147 '../tools/skdiff_utils.h',
148 ],
149 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000150 'skia_lib.gyp:skia_lib',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000151 ],
152 },
153 {
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000154 'target_name': 'skpdiff',
155 'type': 'executable',
156 'sources': [
157 '../tools/skpdiff/skpdiff_main.cpp',
158 '../tools/skpdiff/SkDiffContext.cpp',
159 '../tools/skpdiff/SkImageDiffer.cpp',
160 '../tools/skpdiff/SkPMetric.cpp',
161 '../tools/skpdiff/skpdiff_util.cpp',
162 '../tools/flags/SkCommandLineFlags.cpp',
163 ],
164 'include_dirs': [
djsollen@google.comefc51b72013-11-12 18:29:17 +0000165 '../tools/flags',
166 '../src/core/', # needed for SkTLList.h
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000167 ],
168 'dependencies': [
169 'skia_lib.gyp:skia_lib',
170 ],
171 'cflags': [
172 '-O3',
173 ],
174 'conditions': [
175 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
176 'link_settings': {
177 'libraries': [
178 '-lrt',
179 ],
180 },
181 }],
182 ['skia_opencl', {
183 'sources': [
184 '../tools/skpdiff/SkCLImageDiffer.cpp',
185 '../tools/skpdiff/SkDifferentPixelsMetric_opencl.cpp',
186 ],
187 'conditions': [
188 [ 'skia_os == "mac"', {
189 'link_settings': {
190 'libraries': [
191 '$(SDKROOT)/System/Library/Frameworks/OpenCL.framework',
192 ]
193 }
194 }, {
195 'link_settings': {
196 'libraries': [
197 '-lOpenCL',
198 ],
199 },
200 }],
201 ],
202 }, { # !skia_opencl
203 'sources': [
204 '../tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp',
205 ],
206 }],
207 ],
208 },
209 {
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +0000210 'target_name': 'skpmaker',
211 'type': 'executable',
212 'sources': [
213 '../tools/skpmaker.cpp',
214 ],
215 'include_dirs': [
216 '../src/core',
217 ],
218 'dependencies': [
219 'flags.gyp:flags',
220 'skia_lib.gyp:skia_lib',
221 ],
222 },
223 {
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000224 'target_name': 'skimagediff',
225 'type': 'executable',
226 'sources': [
227 '../tools/skdiff.cpp',
228 '../tools/skdiff.h',
229 '../tools/skdiff_html.cpp',
230 '../tools/skdiff_html.h',
231 '../tools/skdiff_image.cpp',
232 '../tools/skdiff_utils.cpp',
233 '../tools/skdiff_utils.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000234 ],
235 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000236 'skia_lib.gyp:skia_lib',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000237 ],
238 },
239 {
240 'target_name': 'skhello',
241 'type': 'executable',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000242 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000243 'skia_lib.gyp:skia_lib',
borenet@google.combb522882013-06-17 15:39:43 +0000244 ],
245 'conditions': [
246 [ 'skia_os == "nacl"', {
247 'sources': [
248 '../platform_tools/nacl/src/nacl_hello.cpp',
249 ],
250 }, {
251 'sources': [
252 '../tools/skhello.cpp',
253 ],
254 'dependencies': [
borenet@google.combb522882013-06-17 15:39:43 +0000255 'flags.gyp:flags',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000256 'pdf.gyp:pdf',
borenet@google.combb522882013-06-17 15:39:43 +0000257 ],
258 }],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000259 ],
260 },
261 {
262 'target_name': 'skimage',
263 'type': 'executable',
264 'sources': [
265 '../tools/skimage_main.cpp',
266 ],
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000267 'include_dirs': [
268 # For SkBitmapHasher.h
269 '../src/utils/',
270 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000271 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700272 'gm_expectations',
scroggo@google.comb41ff952013-04-11 15:53:35 +0000273 'flags.gyp:flags',
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000274 'jsoncpp.gyp:jsoncpp',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000275 'skia_lib.gyp:skia_lib',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000276 ],
277 },
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +0000278 {
279 'target_name': 'skpinfo',
280 'type': 'executable',
281 'sources': [
282 '../tools/skpinfo.cpp',
283 ],
284 'include_dirs': [
285 '../tools/flags',
286 '../src/core/',
287 ],
288 'dependencies': [
289 'flags.gyp:flags',
290 'skia_lib.gyp:skia_lib',
291 ],
292 },
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000293 {
294 'target_name': 'gpuveto',
295 'type': 'executable',
296 'sources': [
297 '../tools/gpuveto.cpp',
298 '../tools/LazyDecodeBitmap.cpp',
299 ],
300 'include_dirs': [
301 '../src/core/',
302 '../src/images',
303 '../src/lazy',
304 '../tools/flags',
305 ],
306 'dependencies': [
307 'flags.gyp:flags',
308 'skia_lib.gyp:skia_lib',
309 ],
310 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000311 {
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000312 'target_name': 'lua_app',
313 'type': 'executable',
314 'sources': [
315 '../tools/lua/lua_app.cpp',
316 '../src/utils/SkLua.cpp',
317 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000318 'include_dirs': [
319 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
320 '../src/gpu/',
321 '../src/core/',
322 ],
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000323 'dependencies': [
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000324 'effects.gyp:effects',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000325 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000326 'lua.gyp:lua',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000327 'pdf.gyp:pdf',
328 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000329 'skia_lib.gyp:skia_lib',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000330 ],
331 },
332 {
reed@google.comdff7e112013-05-15 19:34:20 +0000333 'target_name': 'lua_pictures',
334 'type': 'executable',
335 'sources': [
336 '../tools/lua/lua_pictures.cpp',
337 '../src/utils/SkLuaCanvas.cpp',
reed@google.com74ce6f02013-05-22 15:13:18 +0000338 '../src/utils/SkLua.cpp',
reed@google.comdff7e112013-05-15 19:34:20 +0000339 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000340 'include_dirs': [
341 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
342 '../src/gpu/',
343 '../src/core/',
344 ],
reed@google.comdff7e112013-05-15 19:34:20 +0000345 'dependencies': [
reed@google.comdff7e112013-05-15 19:34:20 +0000346 'effects.gyp:effects',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000347 'flags.gyp:flags',
reed@google.comdff7e112013-05-15 19:34:20 +0000348 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000349 'lua.gyp:lua',
reed@google.comdff7e112013-05-15 19:34:20 +0000350 'tools.gyp:picture_renderer',
351 'tools.gyp:picture_utils',
mike@reedtribe.orgfb858242013-06-08 16:39:44 +0000352 'pdf.gyp:pdf',
reed@google.comdff7e112013-05-15 19:34:20 +0000353 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000354 'skia_lib.gyp:skia_lib',
reed@google.comdff7e112013-05-15 19:34:20 +0000355 ],
356 },
357 {
junov@chromium.org777442d2012-06-12 14:56:36 +0000358 'target_name': 'render_pictures',
359 'type': 'executable',
360 'sources': [
361 '../tools/render_pictures_main.cpp',
keyar@chromium.orga2333d92012-07-16 17:29:16 +0000362 ],
363 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000364 '../src/core',
365 '../src/images',
366 '../src/lazy',
keyar@chromium.orga2333d92012-07-16 17:29:16 +0000367 '../src/pipe/utils/',
junov@chromium.org777442d2012-06-12 14:56:36 +0000368 ],
369 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000370 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000371 'skia_lib.gyp:skia_lib',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000372 'tools.gyp:picture_renderer',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000373 'tools.gyp:picture_utils',
374 ],
375 },
376 {
reed@google.com006db0f2012-06-27 19:33:29 +0000377 'target_name': 'bench_pictures',
378 'type': 'executable',
379 'sources': [
tfarinaf168b862014-06-19 12:32:29 -0700380 '../bench/BenchLogger.cpp',
381 '../bench/BenchLogger.h',
commit-bot@chromium.org37c772a2014-05-29 17:10:24 +0000382 '../bench/ResultsWriter.cpp',
383 '../tools/PictureBenchmark.cpp',
384 '../tools/PictureResultsWriter.h',
keyar@chromium.orgcf6c44c2012-07-09 19:37:40 +0000385 '../tools/bench_pictures_main.cpp',
reed@google.com006db0f2012-06-27 19:33:29 +0000386 ],
387 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000388 '../src/core/',
reed@google.com006db0f2012-06-27 19:33:29 +0000389 '../bench',
scroggo@google.comcc690202013-03-04 19:56:21 +0000390 '../src/lazy/',
reed@google.com006db0f2012-06-27 19:33:29 +0000391 ],
392 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700393 'timer',
394 'crash_handler',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000395 'flags.gyp:flags',
commit-bot@chromium.org37c772a2014-05-29 17:10:24 +0000396 'jsoncpp.gyp:jsoncpp',
djsollen@google.com52f02972013-06-03 12:10:19 +0000397 'skia_lib.gyp:skia_lib',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000398 'tools.gyp:picture_renderer',
mtklein30e6e2a2014-06-18 11:44:15 -0700399 'tools.gyp:picture_utils',
scroggo@google.com9a412522012-09-07 15:21:18 +0000400 ],
keyar@chromium.org163b5672012-08-01 17:53:29 +0000401 },
402 {
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000403 'target_name': 'bench_record',
404 'type': 'executable',
commit-bot@chromium.org16182f72014-03-28 16:08:18 +0000405 'sources': [
406 '../tools/bench_record.cpp',
407 '../tools/LazyDecodeBitmap.cpp',
408 ],
409 'include_dirs': [
410 '../src/core/',
411 '../src/images',
412 '../src/lazy',
413 ],
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000414 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700415 'timer',
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000416 'flags.gyp:flags',
417 'skia_lib.gyp:skia_lib',
418 ],
419 },
420 {
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000421 'target_name': 'bench_playback',
422 'type': 'executable',
423 'sources': [
424 '../tools/bench_playback.cpp',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000425 ],
426 'include_dirs': [
427 '../src/core/',
428 '../src/images',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000429 ],
430 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700431 'timer',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000432 'flags.gyp:flags',
433 'skia_lib.gyp:skia_lib',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000434 ],
435 },
436 {
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000437 'target_name': 'dump_record',
438 'type': 'executable',
439 'sources': [
440 '../tools/dump_record.cpp',
commit-bot@chromium.org85fd1932014-05-15 16:10:37 +0000441 '../tools/DumpRecord.cpp',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000442 '../tools/LazyDecodeBitmap.cpp',
443 ],
444 'include_dirs': [
445 '../src/core/',
446 '../src/images',
447 '../src/lazy',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000448 ],
449 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700450 'timer',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000451 'flags.gyp:flags',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000452 'skia_lib.gyp:skia_lib',
453 ],
454 },
455 {
borenet@google.comefb1d772012-10-10 19:45:51 +0000456 'target_name': 'picture_renderer',
457 'type': 'static_library',
458 'sources': [
commit-bot@chromium.org90c0fbd2014-05-09 03:18:41 +0000459 '../tools/image_expectations.h',
460 '../tools/image_expectations.cpp',
commit-bot@chromium.org56799e22013-07-16 18:21:46 +0000461 '../tools/LazyDecodeBitmap.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000462 '../tools/PictureRenderer.h',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000463 '../tools/PictureRenderer.cpp',
scroggo@google.com161e1ba2013-03-04 16:41:06 +0000464 '../tools/PictureRenderingFlags.h',
465 '../tools/PictureRenderingFlags.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000466 '../tools/CopyTilesRenderer.h',
467 '../tools/CopyTilesRenderer.cpp',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000468 '../src/pipe/utils/SamplePipeControllers.h',
469 '../src/pipe/utils/SamplePipeControllers.cpp',
borenet@google.comefb1d772012-10-10 19:45:51 +0000470 ],
471 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000472 '../src/core',
473 '../src/images',
474 '../src/lazy',
borenet@google.comefb1d772012-10-10 19:45:51 +0000475 '../src/pipe/utils/',
476 '../src/utils/',
477 ],
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000478 'direct_dependent_settings': {
479 'include_dirs': [
commit-bot@chromium.org90c0fbd2014-05-09 03:18:41 +0000480 # needed for JSON headers used within image_expectations.h
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000481 '../third_party/externals/jsoncpp-chromium/overrides/include/',
482 '../third_party/externals/jsoncpp/include/',
483 ],
484 },
borenet@google.comefb1d772012-10-10 19:45:51 +0000485 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000486 'flags.gyp:flags',
487 'jsoncpp.gyp:jsoncpp',
djsollen@google.com52f02972013-06-03 12:10:19 +0000488 'skia_lib.gyp:skia_lib',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000489 'tools.gyp:picture_utils',
borenet@google.comefb1d772012-10-10 19:45:51 +0000490 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000491 'conditions': [
492 ['skia_gpu == 1',
493 {
494 'include_dirs' : [
495 '../src/gpu',
496 ],
robertphillips@google.com94d8f1e2013-12-18 17:25:33 +0000497 'dependencies': [
498 'gputest.gyp:skgputest',
499 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000500 },
501 ],
502 ],
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000503 },
504 {
edisonn@google.comc319abe2012-11-01 19:52:38 +0000505 'target_name': 'render_pdfs',
506 'type': 'executable',
507 'sources': [
508 '../tools/render_pdfs_main.cpp',
509 '../tools/PdfRenderer.cpp',
510 '../tools/PdfRenderer.h',
511 ],
512 'include_dirs': [
513 '../src/pipe/utils/',
514 '../src/utils/',
515 ],
516 'dependencies': [
edisonn@google.comc319abe2012-11-01 19:52:38 +0000517 'pdf.gyp:pdf',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000518 'skia_lib.gyp:skia_lib',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000519 'tools.gyp:picture_utils',
520 ],
edisonn@google.com184487c2013-03-08 18:00:16 +0000521 'conditions': [
borenet@google.com2d137b62013-03-08 23:13:33 +0000522 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com184487c2013-03-08 18:00:16 +0000523 {
524 'dependencies': [
525 'tools.gyp:win_dbghelp',
526 ],
527 },
528 ],
529 # VS static libraries don't have a linker option. We must set a global
530 # project linker option, or add it to each executable.
531 ['skia_win_debuggers_path and skia_os == "win" and '
borenet@google.com2d137b62013-03-08 23:13:33 +0000532 'skia_arch_width == 64',
edisonn@google.com184487c2013-03-08 18:00:16 +0000533 {
534 'msvs_settings': {
535 'VCLinkerTool': {
536 'AdditionalDependencies': [
537 '<(skia_win_debuggers_path)/x64/DbgHelp.lib',
538 ],
539 },
540 },
541 },
542 ],
543 ['skia_win_debuggers_path and skia_os == "win" and '
borenet@google.com2d137b62013-03-08 23:13:33 +0000544 'skia_arch_width == 32',
edisonn@google.com184487c2013-03-08 18:00:16 +0000545 {
546 'msvs_settings': {
547 'VCLinkerTool': {
548 'AdditionalDependencies': [
549 '<(skia_win_debuggers_path)/DbgHelp.lib',
550 ],
551 },
552 },
553 },
554 ],
555 ],
edisonn@google.comc319abe2012-11-01 19:52:38 +0000556 },
557 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000558 'target_name': 'picture_utils',
559 'type': 'static_library',
560 'sources': [
561 '../tools/picture_utils.cpp',
borenet@google.come21795e2012-09-14 14:34:28 +0000562 '../tools/picture_utils.h',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000563 ],
564 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000565 'skia_lib.gyp:skia_lib',
junov@chromium.org777442d2012-06-12 14:56:36 +0000566 ],
reed@google.come52d2912013-05-15 20:01:07 +0000567 'direct_dependent_settings': {
568 'include_dirs': [
tfarinabcbc1782014-06-18 14:32:48 -0700569 '../tools/',
reed@google.come52d2912013-05-15 20:01:07 +0000570 ],
571 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000572 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000573 {
574 'target_name': 'pinspect',
575 'type': 'executable',
576 'sources': [
577 '../tools/pinspect.cpp',
578 ],
579 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000580 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000581 'skia_lib.gyp:skia_lib',
commit-bot@chromium.org826ec812013-06-12 18:28:36 +0000582 'tools.gyp:picture_renderer',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000583 ],
584 },
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000585 {
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000586 'target_name': 'bbh_shootout',
587 'type': 'executable',
588 'include_dirs': [
589 '../bench',
590 '../tools/'
591 ],
592 'sources': [
593 '../tools/bbh_shootout.cpp',
594
595 # Bench code:
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000596 ],
597 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700598 'timer',
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000599 'flags.gyp:flags',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000600 'skia_lib.gyp:skia_lib',
601 'tools.gyp:picture_renderer',
602 'tools.gyp:picture_utils',
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000603 ],
604 },
605 {
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000606 'target_name': 'filter',
607 'type': 'executable',
608 'include_dirs' : [
609 '../src/core',
fmalita@google.com4df16732013-06-13 21:25:45 +0000610 '../src/utils/debugger',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000611 ],
612 'sources': [
613 '../tools/filtermain.cpp',
fmalita@google.com86681b32013-06-13 20:59:14 +0000614 '../src/utils/debugger/SkDrawCommand.h',
615 '../src/utils/debugger/SkDrawCommand.cpp',
616 '../src/utils/debugger/SkDebugCanvas.h',
617 '../src/utils/debugger/SkDebugCanvas.cpp',
618 '../src/utils/debugger/SkObjectParser.h',
619 '../src/utils/debugger/SkObjectParser.cpp',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000620 ],
621 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000622 'skia_lib.gyp:skia_lib',
djsollen@google.coma09e8832012-11-13 18:50:33 +0000623 'tools.gyp:picture_utils',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000624 ],
625 },
halcanary@google.comfed30372013-10-04 12:46:45 +0000626 {
627 'target_name': 'test_image_decoder',
628 'type': 'executable',
629 'sources': [
630 '../tools/test_image_decoder.cpp',
631 ],
632 'dependencies': [
633 'skia_lib.gyp:skia_lib',
634 ],
635 },
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000636 ],
637 'conditions': [
zachr@google.com28c27c82013-06-20 17:15:05 +0000638 ['skia_shared_lib',
639 {
640 'targets': [
641 {
642 'target_name': 'sklua',
643 'product_name': 'skia',
644 'product_prefix': '',
645 'product_dir': '<(PRODUCT_DIR)/',
646 'type': 'shared_library',
647 'sources': [
648 '../src/utils/SkLuaCanvas.cpp',
649 '../src/utils/SkLua.cpp',
650 ],
651 'include_dirs': [
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000652 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
653 '../src/gpu/',
654 '../src/core/',
zachr@google.com28c27c82013-06-20 17:15:05 +0000655 '../third_party/lua/src/',
656 ],
657 'dependencies': [
658 'lua.gyp:lua',
659 'pdf.gyp:pdf',
660 'skia_lib.gyp:skia_lib',
661 ],
662 'conditions': [
663 ['skia_os != "win"',
664 {
665 'ldflags': [
666 '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags',
667 ],
668 },
669 ],
670 ],
671 },
672 ],
673 },
674 ],
borenet@google.com2d137b62013-03-08 23:13:33 +0000675 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000676 {
677 'targets': [
678 {
679 'target_name': 'win_dbghelp',
680 'type': 'static_library',
681 'defines': [
682 'SK_CDB_PATH="<(skia_win_debuggers_path)"',
683 ],
684 'sources': [
685 '../tools/win_dbghelp.h',
686 '../tools/win_dbghelp.cpp',
687 ],
688 },
689 ],
690 },
691 ],
bungeman@google.com07a69f82013-04-02 14:12:38 +0000692 ['skia_os == "win"',
693 {
694 'targets': [
695 {
696 'target_name': 'win_lcid',
697 'type': 'executable',
698 'sources': [
699 '../tools/win_lcid.cpp',
700 ],
701 },
702 ],
703 },
704 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000705 ],
706}