blob: 39a784734b27755a0af27bbdc4cd64edcae61cb8 [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',
edisonn@google.com8ba9a832013-01-18 18:06:22 +000020 'filter',
commit-bot@chromium.org5ccdf012014-01-02 18:51:38 +000021 'lua_app',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +000022 'lua_pictures',
edisonn@google.com8ba9a832013-01-18 18:06:22 +000023 'pinspect',
24 'render_pdfs',
25 'render_pictures',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000026 'skdiff',
commit-bot@chromium.org5ccdf012014-01-02 18:51:38 +000027 'skhello',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +000028 'skpdiff',
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +000029 'skpinfo',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +000030 'skpmaker',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000031 'skimage',
halcanary@google.comfed30372013-10-04 12:46:45 +000032 'test_image_decoder',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000033 ],
zachr@google.com28c27c82013-06-20 17:15:05 +000034 'conditions': [
35 ['skia_shared_lib',
36 {
37 'dependencies': [
38 'sklua', # This can only be built if skia is built as a shared library
39 ],
40 },
41 ],
42 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +000043 },
44 {
45 'target_name': 'skdiff',
46 'type': 'executable',
47 'sources': [
bungeman@google.come3c8ddf2012-12-05 20:13:12 +000048 '../tools/skdiff.cpp',
49 '../tools/skdiff.h',
50 '../tools/skdiff_html.cpp',
51 '../tools/skdiff_html.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000052 '../tools/skdiff_main.cpp',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +000053 '../tools/skdiff_utils.cpp',
54 '../tools/skdiff_utils.h',
55 ],
56 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +000057 'skia_lib.gyp:skia_lib',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +000058 ],
59 },
60 {
zachr@google.com5b3e2b92013-07-22 18:46:45 +000061 'target_name': 'skpdiff',
62 'type': 'executable',
63 'sources': [
64 '../tools/skpdiff/skpdiff_main.cpp',
65 '../tools/skpdiff/SkDiffContext.cpp',
66 '../tools/skpdiff/SkImageDiffer.cpp',
67 '../tools/skpdiff/SkPMetric.cpp',
68 '../tools/skpdiff/skpdiff_util.cpp',
69 '../tools/flags/SkCommandLineFlags.cpp',
70 ],
71 'include_dirs': [
djsollen@google.comefc51b72013-11-12 18:29:17 +000072 '../tools/flags',
73 '../src/core/', # needed for SkTLList.h
zachr@google.com5b3e2b92013-07-22 18:46:45 +000074 ],
75 'dependencies': [
76 'skia_lib.gyp:skia_lib',
77 ],
78 'cflags': [
79 '-O3',
80 ],
81 'conditions': [
82 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
83 'link_settings': {
84 'libraries': [
85 '-lrt',
86 ],
87 },
88 }],
89 ['skia_opencl', {
90 'sources': [
91 '../tools/skpdiff/SkCLImageDiffer.cpp',
92 '../tools/skpdiff/SkDifferentPixelsMetric_opencl.cpp',
93 ],
94 'conditions': [
95 [ 'skia_os == "mac"', {
96 'link_settings': {
97 'libraries': [
98 '$(SDKROOT)/System/Library/Frameworks/OpenCL.framework',
99 ]
100 }
101 }, {
102 'link_settings': {
103 'libraries': [
104 '-lOpenCL',
105 ],
106 },
107 }],
108 ],
109 }, { # !skia_opencl
110 'sources': [
111 '../tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp',
112 ],
113 }],
114 ],
115 },
116 {
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +0000117 'target_name': 'skpmaker',
118 'type': 'executable',
119 'sources': [
120 '../tools/skpmaker.cpp',
121 ],
122 'include_dirs': [
123 '../src/core',
124 ],
125 'dependencies': [
126 'flags.gyp:flags',
127 'skia_lib.gyp:skia_lib',
128 ],
129 },
130 {
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000131 'target_name': 'skimagediff',
132 'type': 'executable',
133 'sources': [
134 '../tools/skdiff.cpp',
135 '../tools/skdiff.h',
136 '../tools/skdiff_html.cpp',
137 '../tools/skdiff_html.h',
138 '../tools/skdiff_image.cpp',
139 '../tools/skdiff_utils.cpp',
140 '../tools/skdiff_utils.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000141 ],
142 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000143 'skia_lib.gyp:skia_lib',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000144 ],
145 },
146 {
147 'target_name': 'skhello',
148 'type': 'executable',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000149 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000150 'skia_lib.gyp:skia_lib',
borenet@google.combb522882013-06-17 15:39:43 +0000151 ],
152 'conditions': [
153 [ 'skia_os == "nacl"', {
154 'sources': [
155 '../platform_tools/nacl/src/nacl_hello.cpp',
156 ],
157 }, {
158 'sources': [
159 '../tools/skhello.cpp',
160 ],
161 'dependencies': [
borenet@google.combb522882013-06-17 15:39:43 +0000162 'flags.gyp:flags',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000163 'pdf.gyp:pdf',
borenet@google.combb522882013-06-17 15:39:43 +0000164 ],
165 }],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000166 ],
167 },
168 {
169 'target_name': 'skimage',
170 'type': 'executable',
171 'sources': [
172 '../tools/skimage_main.cpp',
173 ],
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000174 'include_dirs': [
175 # For SkBitmapHasher.h
176 '../src/utils/',
177 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000178 'dependencies': [
scroggo@google.comb41ff952013-04-11 15:53:35 +0000179 'flags.gyp:flags',
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000180 'gm.gyp:gm_expectations',
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000181 'jsoncpp.gyp:jsoncpp',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000182 'skia_lib.gyp:skia_lib',
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000183 'utils.gyp:utils',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000184 ],
185 },
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +0000186 {
187 'target_name': 'skpinfo',
188 'type': 'executable',
189 'sources': [
190 '../tools/skpinfo.cpp',
191 ],
192 'include_dirs': [
193 '../tools/flags',
194 '../src/core/',
195 ],
196 'dependencies': [
197 'flags.gyp:flags',
198 'skia_lib.gyp:skia_lib',
199 ],
200 },
zachr@google.com28c27c82013-06-20 17:15:05 +0000201
junov@chromium.org777442d2012-06-12 14:56:36 +0000202 {
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000203 'target_name': 'lua_app',
204 'type': 'executable',
205 'sources': [
206 '../tools/lua/lua_app.cpp',
207 '../src/utils/SkLua.cpp',
208 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000209 'include_dirs': [
210 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
211 '../src/gpu/',
212 '../src/core/',
213 ],
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000214 'dependencies': [
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000215 'effects.gyp:effects',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000216 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000217 'lua.gyp:lua',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000218 'pdf.gyp:pdf',
219 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000220 'skia_lib.gyp:skia_lib',
221 'utils.gyp:utils',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000222 ],
223 },
224 {
reed@google.comdff7e112013-05-15 19:34:20 +0000225 'target_name': 'lua_pictures',
226 'type': 'executable',
227 'sources': [
228 '../tools/lua/lua_pictures.cpp',
229 '../src/utils/SkLuaCanvas.cpp',
reed@google.com74ce6f02013-05-22 15:13:18 +0000230 '../src/utils/SkLua.cpp',
reed@google.comdff7e112013-05-15 19:34:20 +0000231 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000232 'include_dirs': [
233 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
234 '../src/gpu/',
235 '../src/core/',
236 ],
reed@google.comdff7e112013-05-15 19:34:20 +0000237 'dependencies': [
reed@google.comdff7e112013-05-15 19:34:20 +0000238 'effects.gyp:effects',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000239 'flags.gyp:flags',
reed@google.comdff7e112013-05-15 19:34:20 +0000240 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000241 'lua.gyp:lua',
reed@google.comdff7e112013-05-15 19:34:20 +0000242 'tools.gyp:picture_renderer',
243 'tools.gyp:picture_utils',
mike@reedtribe.orgfb858242013-06-08 16:39:44 +0000244 'pdf.gyp:pdf',
reed@google.comdff7e112013-05-15 19:34:20 +0000245 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000246 'skia_lib.gyp:skia_lib',
247 'utils.gyp:utils',
reed@google.comdff7e112013-05-15 19:34:20 +0000248 ],
249 },
250 {
junov@chromium.org777442d2012-06-12 14:56:36 +0000251 'target_name': 'render_pictures',
252 'type': 'executable',
253 'sources': [
254 '../tools/render_pictures_main.cpp',
keyar@chromium.orga2333d92012-07-16 17:29:16 +0000255 ],
256 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000257 '../src/core',
258 '../src/images',
259 '../src/lazy',
keyar@chromium.orga2333d92012-07-16 17:29:16 +0000260 '../src/pipe/utils/',
junov@chromium.org777442d2012-06-12 14:56:36 +0000261 ],
262 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000263 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000264 'skia_lib.gyp:skia_lib',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000265 'tools.gyp:picture_renderer',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000266 'tools.gyp:picture_utils',
267 ],
268 },
269 {
reed@google.com006db0f2012-06-27 19:33:29 +0000270 'target_name': 'bench_pictures',
271 'type': 'executable',
272 'sources': [
scroggo@google.com9a412522012-09-07 15:21:18 +0000273 '../bench/SkBenchLogger.h',
274 '../bench/SkBenchLogger.cpp',
275 '../bench/TimerData.h',
276 '../bench/TimerData.cpp',
keyar@chromium.orgcf6c44c2012-07-09 19:37:40 +0000277 '../tools/bench_pictures_main.cpp',
scroggo@google.com9a412522012-09-07 15:21:18 +0000278 '../tools/PictureBenchmark.cpp',
reed@google.com006db0f2012-06-27 19:33:29 +0000279 ],
280 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000281 '../src/core/',
reed@google.com006db0f2012-06-27 19:33:29 +0000282 '../bench',
scroggo@google.comcc690202013-03-04 19:56:21 +0000283 '../src/lazy/',
reed@google.com006db0f2012-06-27 19:33:29 +0000284 ],
285 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000286 'bench.gyp:bench_timer',
287 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000288 'skia_lib.gyp:skia_lib',
reed@google.com006db0f2012-06-27 19:33:29 +0000289 'tools.gyp:picture_utils',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000290 'tools.gyp:picture_renderer',
scroggo@google.com9a412522012-09-07 15:21:18 +0000291 ],
keyar@chromium.org163b5672012-08-01 17:53:29 +0000292 },
293 {
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000294 'target_name': 'bench_record',
295 'type': 'executable',
commit-bot@chromium.org16182f72014-03-28 16:08:18 +0000296 'sources': [
297 '../tools/bench_record.cpp',
298 '../tools/LazyDecodeBitmap.cpp',
299 ],
300 'include_dirs': [
301 '../src/core/',
302 '../src/images',
303 '../src/lazy',
304 ],
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000305 'dependencies': [
306 'flags.gyp:flags',
307 'skia_lib.gyp:skia_lib',
commit-bot@chromium.orge3ff5582014-04-01 16:24:06 +0000308 'record.gyp:*',
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000309 ],
310 },
311 {
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000312 'target_name': 'bench_playback',
313 'type': 'executable',
314 'sources': [
315 '../tools/bench_playback.cpp',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000316 ],
317 'include_dirs': [
318 '../src/core/',
319 '../src/images',
commit-bot@chromium.orgb17a24f2014-04-14 20:33:05 +0000320 '../src/record',
commit-bot@chromium.orgba73d282014-04-11 15:53:39 +0000321 ],
322 'dependencies': [
323 'flags.gyp:flags',
324 'skia_lib.gyp:skia_lib',
325 'record.gyp:*',
326 ],
327 },
328 {
borenet@google.comefb1d772012-10-10 19:45:51 +0000329 'target_name': 'picture_renderer',
330 'type': 'static_library',
331 'sources': [
commit-bot@chromium.org56799e22013-07-16 18:21:46 +0000332 '../tools/LazyDecodeBitmap.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000333 '../tools/PictureRenderer.h',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000334 '../tools/PictureRenderer.cpp',
scroggo@google.com161e1ba2013-03-04 16:41:06 +0000335 '../tools/PictureRenderingFlags.h',
336 '../tools/PictureRenderingFlags.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000337 '../tools/CopyTilesRenderer.h',
338 '../tools/CopyTilesRenderer.cpp',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000339 '../src/pipe/utils/SamplePipeControllers.h',
340 '../src/pipe/utils/SamplePipeControllers.cpp',
borenet@google.comefb1d772012-10-10 19:45:51 +0000341 ],
342 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000343 '../src/core',
344 '../src/images',
345 '../src/lazy',
borenet@google.comefb1d772012-10-10 19:45:51 +0000346 '../src/pipe/utils/',
347 '../src/utils/',
348 ],
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000349 'direct_dependent_settings': {
350 'include_dirs': [
351 # needed for JSON headers used within PictureRenderer.h
352 '../third_party/externals/jsoncpp-chromium/overrides/include/',
353 '../third_party/externals/jsoncpp/include/',
354 ],
355 },
borenet@google.comefb1d772012-10-10 19:45:51 +0000356 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000357 'flags.gyp:flags',
358 'jsoncpp.gyp:jsoncpp',
djsollen@google.com52f02972013-06-03 12:10:19 +0000359 'skia_lib.gyp:skia_lib',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000360 'tools.gyp:picture_utils',
borenet@google.comefb1d772012-10-10 19:45:51 +0000361 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000362 'conditions': [
363 ['skia_gpu == 1',
364 {
365 'include_dirs' : [
366 '../src/gpu',
367 ],
robertphillips@google.com94d8f1e2013-12-18 17:25:33 +0000368 'dependencies': [
369 'gputest.gyp:skgputest',
370 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000371 },
372 ],
373 ],
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000374 },
375 {
edisonn@google.comc319abe2012-11-01 19:52:38 +0000376 'target_name': 'render_pdfs',
377 'type': 'executable',
378 'sources': [
379 '../tools/render_pdfs_main.cpp',
380 '../tools/PdfRenderer.cpp',
381 '../tools/PdfRenderer.h',
382 ],
383 'include_dirs': [
384 '../src/pipe/utils/',
385 '../src/utils/',
386 ],
387 'dependencies': [
edisonn@google.comc319abe2012-11-01 19:52:38 +0000388 'pdf.gyp:pdf',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000389 'skia_lib.gyp:skia_lib',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000390 'tools.gyp:picture_utils',
391 ],
edisonn@google.com184487c2013-03-08 18:00:16 +0000392 'conditions': [
borenet@google.com2d137b62013-03-08 23:13:33 +0000393 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com184487c2013-03-08 18:00:16 +0000394 {
395 'dependencies': [
396 'tools.gyp:win_dbghelp',
397 ],
398 },
399 ],
400 # VS static libraries don't have a linker option. We must set a global
401 # project linker option, or add it to each executable.
402 ['skia_win_debuggers_path and skia_os == "win" and '
borenet@google.com2d137b62013-03-08 23:13:33 +0000403 'skia_arch_width == 64',
edisonn@google.com184487c2013-03-08 18:00:16 +0000404 {
405 'msvs_settings': {
406 'VCLinkerTool': {
407 'AdditionalDependencies': [
408 '<(skia_win_debuggers_path)/x64/DbgHelp.lib',
409 ],
410 },
411 },
412 },
413 ],
414 ['skia_win_debuggers_path and skia_os == "win" and '
borenet@google.com2d137b62013-03-08 23:13:33 +0000415 'skia_arch_width == 32',
edisonn@google.com184487c2013-03-08 18:00:16 +0000416 {
417 'msvs_settings': {
418 'VCLinkerTool': {
419 'AdditionalDependencies': [
420 '<(skia_win_debuggers_path)/DbgHelp.lib',
421 ],
422 },
423 },
424 },
425 ],
426 ],
edisonn@google.comc319abe2012-11-01 19:52:38 +0000427 },
428 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000429 'target_name': 'picture_utils',
430 'type': 'static_library',
431 'sources': [
432 '../tools/picture_utils.cpp',
borenet@google.come21795e2012-09-14 14:34:28 +0000433 '../tools/picture_utils.h',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000434 ],
435 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000436 'skia_lib.gyp:skia_lib',
junov@chromium.org777442d2012-06-12 14:56:36 +0000437 ],
reed@google.come52d2912013-05-15 20:01:07 +0000438 'direct_dependent_settings': {
439 'include_dirs': [
reed@google.com9bf99c32013-05-15 20:07:22 +0000440 '../tools/',
reed@google.come52d2912013-05-15 20:01:07 +0000441 ],
442 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000443 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000444 {
445 'target_name': 'pinspect',
446 'type': 'executable',
447 'sources': [
448 '../tools/pinspect.cpp',
449 ],
450 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000451 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000452 'skia_lib.gyp:skia_lib',
commit-bot@chromium.org826ec812013-06-12 18:28:36 +0000453 'tools.gyp:picture_renderer',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000454 ],
455 },
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000456 {
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000457 'target_name': 'bbh_shootout',
458 'type': 'executable',
459 'include_dirs': [
460 '../bench',
461 '../tools/'
462 ],
463 'sources': [
464 '../tools/bbh_shootout.cpp',
465
466 # Bench code:
467 '../bench/TimerData.h',
468 '../bench/TimerData.cpp',
469 ],
470 'dependencies': [
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000471 'bench.gyp:bench_timer',
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000472 'flags.gyp:flags',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000473 'skia_lib.gyp:skia_lib',
474 'tools.gyp:picture_renderer',
475 'tools.gyp:picture_utils',
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000476 ],
477 },
478 {
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000479 'target_name': 'filter',
480 'type': 'executable',
481 'include_dirs' : [
482 '../src/core',
fmalita@google.com4df16732013-06-13 21:25:45 +0000483 '../src/utils/debugger',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000484 ],
485 'sources': [
486 '../tools/filtermain.cpp',
robertphillips@google.comd3d377f2012-12-07 20:56:13 +0000487 '../tools/path_utils.h',
robertphillips@google.com3b0a9fe2013-01-31 15:56:22 +0000488 '../tools/path_utils.cpp',
fmalita@google.com86681b32013-06-13 20:59:14 +0000489 '../src/utils/debugger/SkDrawCommand.h',
490 '../src/utils/debugger/SkDrawCommand.cpp',
491 '../src/utils/debugger/SkDebugCanvas.h',
492 '../src/utils/debugger/SkDebugCanvas.cpp',
493 '../src/utils/debugger/SkObjectParser.h',
494 '../src/utils/debugger/SkObjectParser.cpp',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000495 ],
496 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000497 'skia_lib.gyp:skia_lib',
djsollen@google.coma09e8832012-11-13 18:50:33 +0000498 'tools.gyp:picture_utils',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000499 ],
500 },
halcanary@google.comfed30372013-10-04 12:46:45 +0000501 {
502 'target_name': 'test_image_decoder',
503 'type': 'executable',
504 'sources': [
505 '../tools/test_image_decoder.cpp',
506 ],
507 'dependencies': [
508 'skia_lib.gyp:skia_lib',
509 ],
510 },
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000511 ],
512 'conditions': [
zachr@google.com28c27c82013-06-20 17:15:05 +0000513 ['skia_shared_lib',
514 {
515 'targets': [
516 {
517 'target_name': 'sklua',
518 'product_name': 'skia',
519 'product_prefix': '',
520 'product_dir': '<(PRODUCT_DIR)/',
521 'type': 'shared_library',
522 'sources': [
523 '../src/utils/SkLuaCanvas.cpp',
524 '../src/utils/SkLua.cpp',
525 ],
526 'include_dirs': [
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000527 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
528 '../src/gpu/',
529 '../src/core/',
zachr@google.com28c27c82013-06-20 17:15:05 +0000530 '../third_party/lua/src/',
531 ],
532 'dependencies': [
533 'lua.gyp:lua',
534 'pdf.gyp:pdf',
535 'skia_lib.gyp:skia_lib',
536 ],
537 'conditions': [
538 ['skia_os != "win"',
539 {
540 'ldflags': [
541 '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags',
542 ],
543 },
544 ],
545 ],
546 },
547 ],
548 },
549 ],
borenet@google.com2d137b62013-03-08 23:13:33 +0000550 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000551 {
552 'targets': [
553 {
554 'target_name': 'win_dbghelp',
555 'type': 'static_library',
556 'defines': [
557 'SK_CDB_PATH="<(skia_win_debuggers_path)"',
558 ],
559 'sources': [
560 '../tools/win_dbghelp.h',
561 '../tools/win_dbghelp.cpp',
562 ],
563 },
564 ],
565 },
566 ],
bungeman@google.com07a69f82013-04-02 14:12:38 +0000567 ['skia_os == "win"',
568 {
569 'targets': [
570 {
571 'target_name': 'win_lcid',
572 'type': 'executable',
573 'sources': [
574 '../tools/win_lcid.cpp',
575 ],
576 },
577 ],
578 },
579 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000580 ],
581}