blob: cd184153d585769235f230dace9a95883956d945 [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 },
46 {
47 'target_name': 'skdiff',
48 'type': 'executable',
49 'sources': [
bungeman@google.come3c8ddf2012-12-05 20:13:12 +000050 '../tools/skdiff.cpp',
51 '../tools/skdiff.h',
52 '../tools/skdiff_html.cpp',
53 '../tools/skdiff_html.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000054 '../tools/skdiff_main.cpp',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +000055 '../tools/skdiff_utils.cpp',
56 '../tools/skdiff_utils.h',
57 ],
58 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +000059 'skia_lib.gyp:skia_lib',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +000060 ],
61 },
62 {
zachr@google.com5b3e2b92013-07-22 18:46:45 +000063 'target_name': 'skpdiff',
64 'type': 'executable',
65 'sources': [
66 '../tools/skpdiff/skpdiff_main.cpp',
67 '../tools/skpdiff/SkDiffContext.cpp',
68 '../tools/skpdiff/SkImageDiffer.cpp',
69 '../tools/skpdiff/SkPMetric.cpp',
70 '../tools/skpdiff/skpdiff_util.cpp',
71 '../tools/flags/SkCommandLineFlags.cpp',
72 ],
73 'include_dirs': [
djsollen@google.comefc51b72013-11-12 18:29:17 +000074 '../tools/flags',
75 '../src/core/', # needed for SkTLList.h
zachr@google.com5b3e2b92013-07-22 18:46:45 +000076 ],
77 'dependencies': [
78 'skia_lib.gyp:skia_lib',
79 ],
80 'cflags': [
81 '-O3',
82 ],
83 'conditions': [
84 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
85 'link_settings': {
86 'libraries': [
87 '-lrt',
88 ],
89 },
90 }],
91 ['skia_opencl', {
92 'sources': [
93 '../tools/skpdiff/SkCLImageDiffer.cpp',
94 '../tools/skpdiff/SkDifferentPixelsMetric_opencl.cpp',
95 ],
96 'conditions': [
97 [ 'skia_os == "mac"', {
98 'link_settings': {
99 'libraries': [
100 '$(SDKROOT)/System/Library/Frameworks/OpenCL.framework',
101 ]
102 }
103 }, {
104 'link_settings': {
105 'libraries': [
106 '-lOpenCL',
107 ],
108 },
109 }],
110 ],
111 }, { # !skia_opencl
112 'sources': [
113 '../tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp',
114 ],
115 }],
116 ],
117 },
118 {
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +0000119 'target_name': 'skpmaker',
120 'type': 'executable',
121 'sources': [
122 '../tools/skpmaker.cpp',
123 ],
124 'include_dirs': [
125 '../src/core',
126 ],
127 'dependencies': [
128 'flags.gyp:flags',
129 'skia_lib.gyp:skia_lib',
130 ],
131 },
132 {
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000133 'target_name': 'skimagediff',
134 'type': 'executable',
135 'sources': [
136 '../tools/skdiff.cpp',
137 '../tools/skdiff.h',
138 '../tools/skdiff_html.cpp',
139 '../tools/skdiff_html.h',
140 '../tools/skdiff_image.cpp',
141 '../tools/skdiff_utils.cpp',
142 '../tools/skdiff_utils.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000143 ],
144 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000145 'skia_lib.gyp:skia_lib',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000146 ],
147 },
148 {
149 'target_name': 'skhello',
150 'type': 'executable',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000151 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000152 'skia_lib.gyp:skia_lib',
borenet@google.combb522882013-06-17 15:39:43 +0000153 ],
154 'conditions': [
155 [ 'skia_os == "nacl"', {
156 'sources': [
157 '../platform_tools/nacl/src/nacl_hello.cpp',
158 ],
159 }, {
160 'sources': [
161 '../tools/skhello.cpp',
162 ],
163 'dependencies': [
borenet@google.combb522882013-06-17 15:39:43 +0000164 'flags.gyp:flags',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000165 'pdf.gyp:pdf',
borenet@google.combb522882013-06-17 15:39:43 +0000166 ],
167 }],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000168 ],
169 },
170 {
171 'target_name': 'skimage',
172 'type': 'executable',
173 'sources': [
174 '../tools/skimage_main.cpp',
175 ],
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000176 'include_dirs': [
177 # For SkBitmapHasher.h
178 '../src/utils/',
179 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000180 'dependencies': [
scroggo@google.comb41ff952013-04-11 15:53:35 +0000181 'flags.gyp:flags',
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000182 'gm.gyp:gm_expectations',
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000183 'jsoncpp.gyp:jsoncpp',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000184 'skia_lib.gyp:skia_lib',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000185 ],
186 },
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +0000187 {
188 'target_name': 'skpinfo',
189 'type': 'executable',
190 'sources': [
191 '../tools/skpinfo.cpp',
192 ],
193 'include_dirs': [
194 '../tools/flags',
195 '../src/core/',
196 ],
197 'dependencies': [
198 'flags.gyp:flags',
199 'skia_lib.gyp:skia_lib',
200 ],
201 },
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000202 {
203 'target_name': 'gpuveto',
204 'type': 'executable',
205 'sources': [
206 '../tools/gpuveto.cpp',
207 '../tools/LazyDecodeBitmap.cpp',
208 ],
209 'include_dirs': [
210 '../src/core/',
211 '../src/images',
212 '../src/lazy',
213 '../tools/flags',
214 ],
215 'dependencies': [
216 'flags.gyp:flags',
217 'skia_lib.gyp:skia_lib',
218 ],
219 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000220 {
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000221 'target_name': 'lua_app',
222 'type': 'executable',
223 'sources': [
224 '../tools/lua/lua_app.cpp',
225 '../src/utils/SkLua.cpp',
226 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000227 'include_dirs': [
228 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
229 '../src/gpu/',
230 '../src/core/',
231 ],
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000232 'dependencies': [
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000233 'effects.gyp:effects',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000234 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000235 'lua.gyp:lua',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000236 'pdf.gyp:pdf',
237 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000238 'skia_lib.gyp:skia_lib',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000239 ],
240 },
241 {
reed@google.comdff7e112013-05-15 19:34:20 +0000242 'target_name': 'lua_pictures',
243 'type': 'executable',
244 'sources': [
245 '../tools/lua/lua_pictures.cpp',
246 '../src/utils/SkLuaCanvas.cpp',
reed@google.com74ce6f02013-05-22 15:13:18 +0000247 '../src/utils/SkLua.cpp',
reed@google.comdff7e112013-05-15 19:34:20 +0000248 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000249 'include_dirs': [
250 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
251 '../src/gpu/',
252 '../src/core/',
253 ],
reed@google.comdff7e112013-05-15 19:34:20 +0000254 'dependencies': [
reed@google.comdff7e112013-05-15 19:34:20 +0000255 'effects.gyp:effects',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000256 'flags.gyp:flags',
reed@google.comdff7e112013-05-15 19:34:20 +0000257 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000258 'lua.gyp:lua',
reed@google.comdff7e112013-05-15 19:34:20 +0000259 'tools.gyp:picture_renderer',
260 'tools.gyp:picture_utils',
mike@reedtribe.orgfb858242013-06-08 16:39:44 +0000261 'pdf.gyp:pdf',
reed@google.comdff7e112013-05-15 19:34:20 +0000262 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000263 'skia_lib.gyp:skia_lib',
reed@google.comdff7e112013-05-15 19:34:20 +0000264 ],
265 },
266 {
junov@chromium.org777442d2012-06-12 14:56:36 +0000267 'target_name': 'render_pictures',
268 'type': 'executable',
269 'sources': [
270 '../tools/render_pictures_main.cpp',
keyar@chromium.orga2333d92012-07-16 17:29:16 +0000271 ],
272 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000273 '../src/core',
274 '../src/images',
275 '../src/lazy',
keyar@chromium.orga2333d92012-07-16 17:29:16 +0000276 '../src/pipe/utils/',
junov@chromium.org777442d2012-06-12 14:56:36 +0000277 ],
278 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000279 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000280 'skia_lib.gyp:skia_lib',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000281 'tools.gyp:picture_renderer',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000282 'tools.gyp:picture_utils',
283 ],
284 },
285 {
reed@google.com006db0f2012-06-27 19:33:29 +0000286 'target_name': 'bench_pictures',
287 'type': 'executable',
288 'sources': [
commit-bot@chromium.org37c772a2014-05-29 17:10:24 +0000289 '../bench/ResultsWriter.cpp',
290 '../tools/PictureBenchmark.cpp',
291 '../tools/PictureResultsWriter.h',
scroggo@google.com9a412522012-09-07 15:21:18 +0000292 '../bench/SkBenchLogger.h',
293 '../bench/SkBenchLogger.cpp',
keyar@chromium.orgcf6c44c2012-07-09 19:37:40 +0000294 '../tools/bench_pictures_main.cpp',
reed@google.com006db0f2012-06-27 19:33:29 +0000295 ],
296 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000297 '../src/core/',
reed@google.com006db0f2012-06-27 19:33:29 +0000298 '../bench',
scroggo@google.comcc690202013-03-04 19:56:21 +0000299 '../src/lazy/',
reed@google.com006db0f2012-06-27 19:33:29 +0000300 ],
301 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000302 'bench.gyp:bench_timer',
303 'flags.gyp:flags',
commit-bot@chromium.org37c772a2014-05-29 17:10:24 +0000304 'jsoncpp.gyp:jsoncpp',
djsollen@google.com52f02972013-06-03 12:10:19 +0000305 'skia_lib.gyp:skia_lib',
reed@google.com006db0f2012-06-27 19:33:29 +0000306 'tools.gyp:picture_utils',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000307 'tools.gyp:picture_renderer',
commit-bot@chromium.org37c772a2014-05-29 17:10:24 +0000308 'tools.gyp:timer_data',
scroggo@google.com9a412522012-09-07 15:21:18 +0000309 ],
keyar@chromium.org163b5672012-08-01 17:53:29 +0000310 },
311 {
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000312 'target_name': 'bench_record',
313 'type': 'executable',
commit-bot@chromium.org16182f72014-03-28 16:08:18 +0000314 'sources': [
315 '../tools/bench_record.cpp',
316 '../tools/LazyDecodeBitmap.cpp',
317 ],
318 'include_dirs': [
319 '../src/core/',
320 '../src/images',
321 '../src/lazy',
322 ],
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000323 'dependencies': [
commit-bot@chromium.org8400b232014-04-28 15:30:02 +0000324 'bench.gyp:bench_timer',
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000325 'flags.gyp:flags',
326 'skia_lib.gyp:skia_lib',
commit-bot@chromium.orge3ff5582014-04-01 16:24:06 +0000327 'record.gyp:*',
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000328 ],
329 },
330 {
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000331 'target_name': 'bench_playback',
332 'type': 'executable',
333 'sources': [
334 '../tools/bench_playback.cpp',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000335 ],
336 'include_dirs': [
337 '../src/core/',
338 '../src/images',
commit-bot@chromium.orgb17a24f2014-04-14 20:33:05 +0000339 '../src/record',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000340 ],
341 'dependencies': [
commit-bot@chromium.org8400b232014-04-28 15:30:02 +0000342 'bench.gyp:bench_timer',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000343 'flags.gyp:flags',
344 'skia_lib.gyp:skia_lib',
345 'record.gyp:*',
346 ],
347 },
348 {
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000349 'target_name': 'dump_record',
350 'type': 'executable',
351 'sources': [
352 '../tools/dump_record.cpp',
commit-bot@chromium.org85fd1932014-05-15 16:10:37 +0000353 '../tools/DumpRecord.cpp',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000354 '../tools/LazyDecodeBitmap.cpp',
355 ],
356 'include_dirs': [
357 '../src/core/',
358 '../src/images',
359 '../src/lazy',
360 '../src/record',
361 ],
362 'dependencies': [
commit-bot@chromium.org27f6b0d2014-05-09 14:59:29 +0000363 'bench.gyp:bench_timer',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000364 'flags.gyp:flags',
365 'record.gyp:*',
366 'skia_lib.gyp:skia_lib',
367 ],
368 },
369 {
borenet@google.comefb1d772012-10-10 19:45:51 +0000370 'target_name': 'picture_renderer',
371 'type': 'static_library',
372 'sources': [
commit-bot@chromium.org90c0fbd2014-05-09 03:18:41 +0000373 '../tools/image_expectations.h',
374 '../tools/image_expectations.cpp',
commit-bot@chromium.org56799e22013-07-16 18:21:46 +0000375 '../tools/LazyDecodeBitmap.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000376 '../tools/PictureRenderer.h',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000377 '../tools/PictureRenderer.cpp',
scroggo@google.com161e1ba2013-03-04 16:41:06 +0000378 '../tools/PictureRenderingFlags.h',
379 '../tools/PictureRenderingFlags.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000380 '../tools/CopyTilesRenderer.h',
381 '../tools/CopyTilesRenderer.cpp',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000382 '../src/pipe/utils/SamplePipeControllers.h',
383 '../src/pipe/utils/SamplePipeControllers.cpp',
borenet@google.comefb1d772012-10-10 19:45:51 +0000384 ],
385 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000386 '../src/core',
387 '../src/images',
388 '../src/lazy',
borenet@google.comefb1d772012-10-10 19:45:51 +0000389 '../src/pipe/utils/',
390 '../src/utils/',
391 ],
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000392 'direct_dependent_settings': {
393 'include_dirs': [
commit-bot@chromium.org90c0fbd2014-05-09 03:18:41 +0000394 # needed for JSON headers used within image_expectations.h
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000395 '../third_party/externals/jsoncpp-chromium/overrides/include/',
396 '../third_party/externals/jsoncpp/include/',
397 ],
398 },
borenet@google.comefb1d772012-10-10 19:45:51 +0000399 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000400 'flags.gyp:flags',
401 'jsoncpp.gyp:jsoncpp',
djsollen@google.com52f02972013-06-03 12:10:19 +0000402 'skia_lib.gyp:skia_lib',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000403 'tools.gyp:picture_utils',
borenet@google.comefb1d772012-10-10 19:45:51 +0000404 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000405 'conditions': [
406 ['skia_gpu == 1',
407 {
408 'include_dirs' : [
409 '../src/gpu',
410 ],
robertphillips@google.com94d8f1e2013-12-18 17:25:33 +0000411 'dependencies': [
412 'gputest.gyp:skgputest',
413 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000414 },
415 ],
416 ],
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000417 },
418 {
edisonn@google.comc319abe2012-11-01 19:52:38 +0000419 'target_name': 'render_pdfs',
420 'type': 'executable',
421 'sources': [
422 '../tools/render_pdfs_main.cpp',
423 '../tools/PdfRenderer.cpp',
424 '../tools/PdfRenderer.h',
425 ],
426 'include_dirs': [
427 '../src/pipe/utils/',
428 '../src/utils/',
429 ],
430 'dependencies': [
edisonn@google.comc319abe2012-11-01 19:52:38 +0000431 'pdf.gyp:pdf',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000432 'skia_lib.gyp:skia_lib',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000433 'tools.gyp:picture_utils',
434 ],
edisonn@google.com184487c2013-03-08 18:00:16 +0000435 'conditions': [
borenet@google.com2d137b62013-03-08 23:13:33 +0000436 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com184487c2013-03-08 18:00:16 +0000437 {
438 'dependencies': [
439 'tools.gyp:win_dbghelp',
440 ],
441 },
442 ],
443 # VS static libraries don't have a linker option. We must set a global
444 # project linker option, or add it to each executable.
445 ['skia_win_debuggers_path and skia_os == "win" and '
borenet@google.com2d137b62013-03-08 23:13:33 +0000446 'skia_arch_width == 64',
edisonn@google.com184487c2013-03-08 18:00:16 +0000447 {
448 'msvs_settings': {
449 'VCLinkerTool': {
450 'AdditionalDependencies': [
451 '<(skia_win_debuggers_path)/x64/DbgHelp.lib',
452 ],
453 },
454 },
455 },
456 ],
457 ['skia_win_debuggers_path and skia_os == "win" and '
borenet@google.com2d137b62013-03-08 23:13:33 +0000458 'skia_arch_width == 32',
edisonn@google.com184487c2013-03-08 18:00:16 +0000459 {
460 'msvs_settings': {
461 'VCLinkerTool': {
462 'AdditionalDependencies': [
463 '<(skia_win_debuggers_path)/DbgHelp.lib',
464 ],
465 },
466 },
467 },
468 ],
469 ],
edisonn@google.comc319abe2012-11-01 19:52:38 +0000470 },
471 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000472 'target_name': 'picture_utils',
473 'type': 'static_library',
474 'sources': [
475 '../tools/picture_utils.cpp',
borenet@google.come21795e2012-09-14 14:34:28 +0000476 '../tools/picture_utils.h',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000477 ],
478 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000479 'skia_lib.gyp:skia_lib',
junov@chromium.org777442d2012-06-12 14:56:36 +0000480 ],
reed@google.come52d2912013-05-15 20:01:07 +0000481 'direct_dependent_settings': {
482 'include_dirs': [
reed@google.com9bf99c32013-05-15 20:07:22 +0000483 '../tools/',
reed@google.come52d2912013-05-15 20:01:07 +0000484 ],
485 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000486 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000487 {
488 'target_name': 'pinspect',
489 'type': 'executable',
490 'sources': [
491 '../tools/pinspect.cpp',
492 ],
493 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000494 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000495 'skia_lib.gyp:skia_lib',
commit-bot@chromium.org826ec812013-06-12 18:28:36 +0000496 'tools.gyp:picture_renderer',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000497 ],
498 },
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000499 {
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000500 'target_name': 'bbh_shootout',
501 'type': 'executable',
502 'include_dirs': [
503 '../bench',
504 '../tools/'
505 ],
506 'sources': [
507 '../tools/bbh_shootout.cpp',
508
509 # Bench code:
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000510 ],
511 'dependencies': [
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000512 'bench.gyp:bench_timer',
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000513 'flags.gyp:flags',
commit-bot@chromium.org37c772a2014-05-29 17:10:24 +0000514 'tools.gyp:timer_data',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000515 'skia_lib.gyp:skia_lib',
516 'tools.gyp:picture_renderer',
517 'tools.gyp:picture_utils',
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000518 ],
519 },
520 {
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000521 'target_name': 'filter',
522 'type': 'executable',
523 'include_dirs' : [
524 '../src/core',
fmalita@google.com4df16732013-06-13 21:25:45 +0000525 '../src/utils/debugger',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000526 ],
527 'sources': [
528 '../tools/filtermain.cpp',
robertphillips@google.comd3d377f2012-12-07 20:56:13 +0000529 '../tools/path_utils.h',
robertphillips@google.com3b0a9fe2013-01-31 15:56:22 +0000530 '../tools/path_utils.cpp',
fmalita@google.com86681b32013-06-13 20:59:14 +0000531 '../src/utils/debugger/SkDrawCommand.h',
532 '../src/utils/debugger/SkDrawCommand.cpp',
533 '../src/utils/debugger/SkDebugCanvas.h',
534 '../src/utils/debugger/SkDebugCanvas.cpp',
535 '../src/utils/debugger/SkObjectParser.h',
536 '../src/utils/debugger/SkObjectParser.cpp',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000537 ],
538 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000539 'skia_lib.gyp:skia_lib',
djsollen@google.coma09e8832012-11-13 18:50:33 +0000540 'tools.gyp:picture_utils',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000541 ],
542 },
halcanary@google.comfed30372013-10-04 12:46:45 +0000543 {
544 'target_name': 'test_image_decoder',
545 'type': 'executable',
546 'sources': [
547 '../tools/test_image_decoder.cpp',
548 ],
549 'dependencies': [
550 'skia_lib.gyp:skia_lib',
551 ],
552 },
commit-bot@chromium.org37c772a2014-05-29 17:10:24 +0000553 {
554 'target_name': 'timer_data',
555 'type': 'static_library',
556 'sources': [
557 '../bench/TimerData.cpp',
558 ],
559 'dependencies': [
560 'skia_lib.gyp:skia_lib',
561 'jsoncpp.gyp:jsoncpp'
562 ]
563 }
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000564 ],
565 'conditions': [
zachr@google.com28c27c82013-06-20 17:15:05 +0000566 ['skia_shared_lib',
567 {
568 'targets': [
569 {
570 'target_name': 'sklua',
571 'product_name': 'skia',
572 'product_prefix': '',
573 'product_dir': '<(PRODUCT_DIR)/',
574 'type': 'shared_library',
575 'sources': [
576 '../src/utils/SkLuaCanvas.cpp',
577 '../src/utils/SkLua.cpp',
578 ],
579 'include_dirs': [
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000580 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
581 '../src/gpu/',
582 '../src/core/',
zachr@google.com28c27c82013-06-20 17:15:05 +0000583 '../third_party/lua/src/',
584 ],
585 'dependencies': [
586 'lua.gyp:lua',
587 'pdf.gyp:pdf',
588 'skia_lib.gyp:skia_lib',
589 ],
590 'conditions': [
591 ['skia_os != "win"',
592 {
593 'ldflags': [
594 '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags',
595 ],
596 },
597 ],
598 ],
599 },
600 ],
601 },
602 ],
borenet@google.com2d137b62013-03-08 23:13:33 +0000603 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000604 {
605 'targets': [
606 {
607 'target_name': 'win_dbghelp',
608 'type': 'static_library',
609 'defines': [
610 'SK_CDB_PATH="<(skia_win_debuggers_path)"',
611 ],
612 'sources': [
613 '../tools/win_dbghelp.h',
614 '../tools/win_dbghelp.cpp',
615 ],
616 },
617 ],
618 },
619 ],
bungeman@google.com07a69f82013-04-02 14:12:38 +0000620 ['skia_os == "win"',
621 {
622 'targets': [
623 {
624 'target_name': 'win_lcid',
625 'type': 'executable',
626 'sources': [
627 '../tools/win_lcid.cpp',
628 ],
629 },
630 ],
631 },
632 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000633 ],
634}