blob: e689ed1fd7686b595ae4a3cee6718bb3e024d5e4 [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.org545a21a2014-05-06 19:45:18 +000018 'dump_record',
edisonn@google.com8ba9a832013-01-18 18:06:22 +000019 'filter',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +000020 'gpuveto',
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 },
mtklein9ac68ee2014-06-20 11:29:20 -070044 { # This would go in gm.gyp, but it's also used by skimage below.
45 'target_name': 'gm_expectations',
46 'type': 'static_library',
47 'include_dirs' : [ '../src/utils/' ],
48 'sources': [
49 '../gm/gm_expectations.cpp',
mtklein9ac68ee2014-06-20 11:29:20 -070050 ],
51 'dependencies': [
52 'jsoncpp.gyp:jsoncpp',
tfarina20108912014-06-21 10:54:17 -070053 'sk_tool_utils',
mtklein9ac68ee2014-06-20 11:29:20 -070054 'skia_lib.gyp:skia_lib',
55 ],
56 'direct_dependent_settings': {
57 'include_dirs': [ '../gm/' ],
58 },
59 },
60 {
61 'target_name': 'crash_handler',
62 'type': 'static_library',
63 'sources': [ '../tools/CrashHandler.cpp' ],
64 'dependencies': [ 'skia_lib.gyp:skia_lib' ],
65 'direct_dependent_settings': {
66 'include_dirs': [ '../tools' ],
67 },
68 'all_dependent_settings': {
69 'msvs_settings': {
70 'VCLinkerTool': {
71 'AdditionalDependencies': [ 'Dbghelp.lib' ],
72 }
73 },
74 }
75 },
76 {
77 'target_name': 'resources',
78 'type': 'static_library',
79 'sources': [ '../tools/Resources.cpp' ],
80 'dependencies': [
81 'flags.gyp:flags',
82 'skia_lib.gyp:skia_lib',
83 ],
84 'direct_dependent_settings': {
tfarina20108912014-06-21 10:54:17 -070085 'include_dirs': [ '../tools', ],
86 },
87 },
88 {
89 'target_name': 'sk_tool_utils',
90 'type': 'static_library',
caryclark5fb6bd42014-06-23 11:25:00 -070091 'sources': [
92 '../tools/sk_tool_utils.cpp',
93 '../tools/sk_tool_utils_font.cpp',
94 ],
Cary Clark992c7b02014-07-31 08:58:44 -040095 'include_dirs': [
96 '../src/fonts',
97 ],
tfarina20108912014-06-21 10:54:17 -070098 'dependencies': [
mtkleinada972d2014-07-31 08:31:56 -070099 'resources',
Cary Clark992c7b02014-07-31 08:58:44 -0400100 'flags.gyp:flags',
tfarina20108912014-06-21 10:54:17 -0700101 'skia_lib.gyp:skia_lib',
102 ],
103 'direct_dependent_settings': {
104 'include_dirs': [ '../tools', ],
mtklein9ac68ee2014-06-20 11:29:20 -0700105 },
106 },
107 {
108 'target_name' : 'timer',
109 'type': 'static_library',
110 'sources': [
111 '../tools/timer/Timer.cpp',
112 '../tools/timer/TimerData.cpp',
113 ],
114 'include_dirs': [
115 '../src/core',
116 '../src/gpu',
117 ],
118 'direct_dependent_settings': {
119 'include_dirs': ['../tools/timer'],
120 },
121 'dependencies': [
122 'skia_lib.gyp:skia_lib',
123 'jsoncpp.gyp:jsoncpp',
124 ],
125 'conditions': [
126 ['skia_gpu == 1', {
127 'sources': [ '../tools/timer/GpuTimer.cpp' ],
128 }],
129 [ 'skia_os in ["mac", "ios"]', {
130 'sources': [ '../tools/timer/SysTimer_mach.cpp' ],
131 }],
132 [ 'skia_os == "win"', {
133 'sources': [ '../tools/timer/SysTimer_windows.cpp' ],
134 }],
135 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android", "chromeos"]', {
136 'sources': [ '../tools/timer/SysTimer_posix.cpp' ],
137 }],
138 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
139 'link_settings': { 'libraries': [ '-lrt' ] },
140 }],
141 ],
142 },
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000143 {
144 'target_name': 'skdiff',
145 'type': 'executable',
146 'sources': [
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000147 '../tools/skdiff.cpp',
148 '../tools/skdiff.h',
149 '../tools/skdiff_html.cpp',
150 '../tools/skdiff_html.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000151 '../tools/skdiff_main.cpp',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000152 '../tools/skdiff_utils.cpp',
153 '../tools/skdiff_utils.h',
154 ],
155 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000156 'skia_lib.gyp:skia_lib',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000157 ],
158 },
159 {
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000160 'target_name': 'skpdiff',
161 'type': 'executable',
162 'sources': [
163 '../tools/skpdiff/skpdiff_main.cpp',
164 '../tools/skpdiff/SkDiffContext.cpp',
165 '../tools/skpdiff/SkImageDiffer.cpp',
166 '../tools/skpdiff/SkPMetric.cpp',
167 '../tools/skpdiff/skpdiff_util.cpp',
mtklein406654b2014-09-03 15:34:37 -0700168 '../src/utils/SkTaskGroup.cpp',
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000169 ],
170 'include_dirs': [
djsollen@google.comefc51b72013-11-12 18:29:17 +0000171 '../src/core/', # needed for SkTLList.h
stephana21b342d2014-08-13 10:36:06 -0700172 '../tools/', # needed for picture_utils::replace_char
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000173 ],
174 'dependencies': [
tfarina1c4d5782014-06-22 16:13:00 -0700175 'flags.gyp:flags',
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000176 'skia_lib.gyp:skia_lib',
stephana21b342d2014-08-13 10:36:06 -0700177 'tools.gyp:picture_utils',
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000178 ],
179 'cflags': [
180 '-O3',
181 ],
182 'conditions': [
183 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
184 'link_settings': {
185 'libraries': [
186 '-lrt',
187 ],
188 },
189 }],
190 ['skia_opencl', {
191 'sources': [
192 '../tools/skpdiff/SkCLImageDiffer.cpp',
193 '../tools/skpdiff/SkDifferentPixelsMetric_opencl.cpp',
194 ],
195 'conditions': [
196 [ 'skia_os == "mac"', {
197 'link_settings': {
198 'libraries': [
199 '$(SDKROOT)/System/Library/Frameworks/OpenCL.framework',
200 ]
201 }
202 }, {
203 'link_settings': {
204 'libraries': [
205 '-lOpenCL',
206 ],
207 },
208 }],
209 ],
210 }, { # !skia_opencl
211 'sources': [
212 '../tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp',
213 ],
214 }],
215 ],
216 },
217 {
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +0000218 'target_name': 'skpmaker',
219 'type': 'executable',
220 'sources': [
221 '../tools/skpmaker.cpp',
222 ],
223 'include_dirs': [
224 '../src/core',
225 ],
226 'dependencies': [
227 'flags.gyp:flags',
228 'skia_lib.gyp:skia_lib',
229 ],
230 },
231 {
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000232 'target_name': 'skimagediff',
233 'type': 'executable',
234 'sources': [
235 '../tools/skdiff.cpp',
236 '../tools/skdiff.h',
237 '../tools/skdiff_html.cpp',
238 '../tools/skdiff_html.h',
239 '../tools/skdiff_image.cpp',
240 '../tools/skdiff_utils.cpp',
241 '../tools/skdiff_utils.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000242 ],
243 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000244 'skia_lib.gyp:skia_lib',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000245 ],
246 },
247 {
248 'target_name': 'skhello',
249 'type': 'executable',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000250 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000251 'skia_lib.gyp:skia_lib',
borenet@google.combb522882013-06-17 15:39:43 +0000252 ],
253 'conditions': [
254 [ 'skia_os == "nacl"', {
255 'sources': [
256 '../platform_tools/nacl/src/nacl_hello.cpp',
257 ],
258 }, {
259 'sources': [
260 '../tools/skhello.cpp',
261 ],
262 'dependencies': [
borenet@google.combb522882013-06-17 15:39:43 +0000263 'flags.gyp:flags',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000264 'pdf.gyp:pdf',
borenet@google.combb522882013-06-17 15:39:43 +0000265 ],
266 }],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000267 ],
268 },
269 {
270 'target_name': 'skimage',
271 'type': 'executable',
272 'sources': [
273 '../tools/skimage_main.cpp',
274 ],
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000275 'include_dirs': [
276 # For SkBitmapHasher.h
277 '../src/utils/',
caryclark5fb6bd42014-06-23 11:25:00 -0700278 '../tools/',
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000279 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000280 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700281 'gm_expectations',
scroggo@google.comb41ff952013-04-11 15:53:35 +0000282 'flags.gyp:flags',
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000283 'jsoncpp.gyp:jsoncpp',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000284 'skia_lib.gyp:skia_lib',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000285 ],
286 },
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +0000287 {
288 'target_name': 'skpinfo',
289 'type': 'executable',
290 'sources': [
291 '../tools/skpinfo.cpp',
292 ],
293 'include_dirs': [
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +0000294 '../src/core/',
295 ],
296 'dependencies': [
297 'flags.gyp:flags',
298 'skia_lib.gyp:skia_lib',
299 ],
300 },
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000301 {
302 'target_name': 'gpuveto',
303 'type': 'executable',
304 'sources': [
305 '../tools/gpuveto.cpp',
306 '../tools/LazyDecodeBitmap.cpp',
307 ],
308 'include_dirs': [
309 '../src/core/',
310 '../src/images',
311 '../src/lazy',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000312 ],
313 'dependencies': [
314 'flags.gyp:flags',
315 'skia_lib.gyp:skia_lib',
316 ],
317 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000318 {
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000319 'target_name': 'lua_app',
320 'type': 'executable',
321 'sources': [
322 '../tools/lua/lua_app.cpp',
323 '../src/utils/SkLua.cpp',
324 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000325 'include_dirs': [
326 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
327 '../src/gpu/',
328 '../src/core/',
329 ],
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000330 'dependencies': [
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000331 'effects.gyp:effects',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000332 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000333 'lua.gyp:lua',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000334 'pdf.gyp:pdf',
335 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000336 'skia_lib.gyp:skia_lib',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000337 ],
338 },
339 {
reed@google.comdff7e112013-05-15 19:34:20 +0000340 'target_name': 'lua_pictures',
341 'type': 'executable',
342 'sources': [
343 '../tools/lua/lua_pictures.cpp',
344 '../src/utils/SkLuaCanvas.cpp',
reed@google.com74ce6f02013-05-22 15:13:18 +0000345 '../src/utils/SkLua.cpp',
reed@google.comdff7e112013-05-15 19:34:20 +0000346 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000347 'include_dirs': [
348 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
349 '../src/gpu/',
350 '../src/core/',
351 ],
reed@google.comdff7e112013-05-15 19:34:20 +0000352 'dependencies': [
reed@google.comdff7e112013-05-15 19:34:20 +0000353 'effects.gyp:effects',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000354 'flags.gyp:flags',
reed@google.comdff7e112013-05-15 19:34:20 +0000355 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000356 'lua.gyp:lua',
reed@google.comdff7e112013-05-15 19:34:20 +0000357 'tools.gyp:picture_renderer',
358 'tools.gyp:picture_utils',
mike@reedtribe.orgfb858242013-06-08 16:39:44 +0000359 'pdf.gyp:pdf',
reed@google.comdff7e112013-05-15 19:34:20 +0000360 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000361 'skia_lib.gyp:skia_lib',
reed@google.comdff7e112013-05-15 19:34:20 +0000362 ],
363 },
364 {
junov@chromium.org777442d2012-06-12 14:56:36 +0000365 'target_name': 'render_pictures',
366 'type': 'executable',
367 'sources': [
368 '../tools/render_pictures_main.cpp',
keyar@chromium.orga2333d92012-07-16 17:29:16 +0000369 ],
370 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000371 '../src/core',
372 '../src/images',
373 '../src/lazy',
keyar@chromium.orga2333d92012-07-16 17:29:16 +0000374 '../src/pipe/utils/',
junov@chromium.org777442d2012-06-12 14:56:36 +0000375 ],
376 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000377 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000378 'skia_lib.gyp:skia_lib',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000379 'tools.gyp:picture_renderer',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000380 'tools.gyp:picture_utils',
381 ],
382 },
383 {
reed@google.com006db0f2012-06-27 19:33:29 +0000384 'target_name': 'bench_pictures',
385 'type': 'executable',
386 'sources': [
tfarinaf168b862014-06-19 12:32:29 -0700387 '../bench/BenchLogger.cpp',
388 '../bench/BenchLogger.h',
commit-bot@chromium.org37c772a2014-05-29 17:10:24 +0000389 '../tools/PictureBenchmark.cpp',
390 '../tools/PictureResultsWriter.h',
keyar@chromium.orgcf6c44c2012-07-09 19:37:40 +0000391 '../tools/bench_pictures_main.cpp',
reed@google.com006db0f2012-06-27 19:33:29 +0000392 ],
393 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000394 '../src/core/',
reed@google.com006db0f2012-06-27 19:33:29 +0000395 '../bench',
scroggo@google.comcc690202013-03-04 19:56:21 +0000396 '../src/lazy/',
reed@google.com006db0f2012-06-27 19:33:29 +0000397 ],
398 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700399 'timer',
400 'crash_handler',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000401 'flags.gyp:flags',
commit-bot@chromium.org37c772a2014-05-29 17:10:24 +0000402 'jsoncpp.gyp:jsoncpp',
djsollen@google.com52f02972013-06-03 12:10:19 +0000403 'skia_lib.gyp:skia_lib',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000404 'tools.gyp:picture_renderer',
mtklein30e6e2a2014-06-18 11:44:15 -0700405 'tools.gyp:picture_utils',
scroggo@google.com9a412522012-09-07 15:21:18 +0000406 ],
scroggo3eb258d2014-07-17 06:58:28 -0700407 'conditions': [
408 ['skia_android_framework == 1', {
409 'libraries': [ '-lskia' ],
410 }],
411 ],
keyar@chromium.org163b5672012-08-01 17:53:29 +0000412 },
413 {
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000414 'target_name': 'dump_record',
415 'type': 'executable',
416 'sources': [
417 '../tools/dump_record.cpp',
commit-bot@chromium.org85fd1932014-05-15 16:10:37 +0000418 '../tools/DumpRecord.cpp',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000419 '../tools/LazyDecodeBitmap.cpp',
420 ],
421 'include_dirs': [
422 '../src/core/',
423 '../src/images',
424 '../src/lazy',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000425 ],
426 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700427 'timer',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000428 'flags.gyp:flags',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000429 'skia_lib.gyp:skia_lib',
430 ],
431 },
432 {
borenet@google.comefb1d772012-10-10 19:45:51 +0000433 'target_name': 'picture_renderer',
434 'type': 'static_library',
435 'sources': [
commit-bot@chromium.org90c0fbd2014-05-09 03:18:41 +0000436 '../tools/image_expectations.h',
437 '../tools/image_expectations.cpp',
commit-bot@chromium.org56799e22013-07-16 18:21:46 +0000438 '../tools/LazyDecodeBitmap.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000439 '../tools/PictureRenderer.h',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000440 '../tools/PictureRenderer.cpp',
scroggo@google.com161e1ba2013-03-04 16:41:06 +0000441 '../tools/PictureRenderingFlags.h',
442 '../tools/PictureRenderingFlags.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000443 '../tools/CopyTilesRenderer.h',
444 '../tools/CopyTilesRenderer.cpp',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000445 '../src/pipe/utils/SamplePipeControllers.h',
446 '../src/pipe/utils/SamplePipeControllers.cpp',
borenet@google.comefb1d772012-10-10 19:45:51 +0000447 ],
448 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000449 '../src/core',
450 '../src/images',
451 '../src/lazy',
borenet@google.comefb1d772012-10-10 19:45:51 +0000452 '../src/pipe/utils/',
453 '../src/utils/',
454 ],
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000455 'direct_dependent_settings': {
456 'include_dirs': [
commit-bot@chromium.org90c0fbd2014-05-09 03:18:41 +0000457 # needed for JSON headers used within image_expectations.h
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000458 '../third_party/externals/jsoncpp-chromium/overrides/include/',
459 '../third_party/externals/jsoncpp/include/',
460 ],
461 },
borenet@google.comefb1d772012-10-10 19:45:51 +0000462 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000463 'flags.gyp:flags',
464 'jsoncpp.gyp:jsoncpp',
djsollen@google.com52f02972013-06-03 12:10:19 +0000465 'skia_lib.gyp:skia_lib',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000466 'tools.gyp:picture_utils',
borenet@google.comefb1d772012-10-10 19:45:51 +0000467 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000468 'conditions': [
469 ['skia_gpu == 1',
470 {
471 'include_dirs' : [
472 '../src/gpu',
473 ],
robertphillips@google.com94d8f1e2013-12-18 17:25:33 +0000474 'dependencies': [
475 'gputest.gyp:skgputest',
476 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000477 },
478 ],
479 ],
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000480 },
481 {
edisonn@google.comc319abe2012-11-01 19:52:38 +0000482 'target_name': 'render_pdfs',
483 'type': 'executable',
484 'sources': [
485 '../tools/render_pdfs_main.cpp',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000486 ],
487 'include_dirs': [
halcanary0bef17a2014-08-07 07:24:47 -0700488 '../src/core',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000489 '../src/pipe/utils/',
490 '../src/utils/',
491 ],
492 'dependencies': [
halcanary0bef17a2014-08-07 07:24:47 -0700493 'flags.gyp:flags',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000494 'pdf.gyp:pdf',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000495 'skia_lib.gyp:skia_lib',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000496 'tools.gyp:picture_utils',
mtkleinafb43792014-08-19 15:55:55 -0700497 'tools.gyp:proc_stats',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000498 ],
edisonn@google.com184487c2013-03-08 18:00:16 +0000499 'conditions': [
borenet@google.com2d137b62013-03-08 23:13:33 +0000500 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com184487c2013-03-08 18:00:16 +0000501 {
502 'dependencies': [
503 'tools.gyp:win_dbghelp',
504 ],
505 },
506 ],
507 # VS static libraries don't have a linker option. We must set a global
508 # project linker option, or add it to each executable.
509 ['skia_win_debuggers_path and skia_os == "win" and '
borenet@google.com2d137b62013-03-08 23:13:33 +0000510 'skia_arch_width == 64',
edisonn@google.com184487c2013-03-08 18:00:16 +0000511 {
512 'msvs_settings': {
513 'VCLinkerTool': {
514 'AdditionalDependencies': [
515 '<(skia_win_debuggers_path)/x64/DbgHelp.lib',
516 ],
517 },
518 },
519 },
520 ],
521 ['skia_win_debuggers_path and skia_os == "win" and '
borenet@google.com2d137b62013-03-08 23:13:33 +0000522 'skia_arch_width == 32',
edisonn@google.com184487c2013-03-08 18:00:16 +0000523 {
524 'msvs_settings': {
525 'VCLinkerTool': {
526 'AdditionalDependencies': [
527 '<(skia_win_debuggers_path)/DbgHelp.lib',
528 ],
529 },
530 },
531 },
532 ],
533 ],
edisonn@google.comc319abe2012-11-01 19:52:38 +0000534 },
535 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000536 'target_name': 'picture_utils',
537 'type': 'static_library',
538 'sources': [
539 '../tools/picture_utils.cpp',
borenet@google.come21795e2012-09-14 14:34:28 +0000540 '../tools/picture_utils.h',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000541 ],
542 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000543 'skia_lib.gyp:skia_lib',
junov@chromium.org777442d2012-06-12 14:56:36 +0000544 ],
reed@google.come52d2912013-05-15 20:01:07 +0000545 'direct_dependent_settings': {
546 'include_dirs': [
tfarinabcbc1782014-06-18 14:32:48 -0700547 '../tools/',
reed@google.come52d2912013-05-15 20:01:07 +0000548 ],
549 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000550 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000551 {
552 'target_name': 'pinspect',
553 'type': 'executable',
554 'sources': [
555 '../tools/pinspect.cpp',
556 ],
557 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000558 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000559 'skia_lib.gyp:skia_lib',
commit-bot@chromium.org826ec812013-06-12 18:28:36 +0000560 'tools.gyp:picture_renderer',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000561 ],
562 },
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000563 {
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000564 'target_name': 'bbh_shootout',
565 'type': 'executable',
566 'include_dirs': [
567 '../bench',
568 '../tools/'
569 ],
570 'sources': [
571 '../tools/bbh_shootout.cpp',
572
573 # Bench code:
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000574 ],
575 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700576 'timer',
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000577 'flags.gyp:flags',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000578 'skia_lib.gyp:skia_lib',
579 'tools.gyp:picture_renderer',
580 'tools.gyp:picture_utils',
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000581 ],
582 },
583 {
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000584 'target_name': 'filter',
585 'type': 'executable',
586 'include_dirs' : [
587 '../src/core',
fmalita@google.com4df16732013-06-13 21:25:45 +0000588 '../src/utils/debugger',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000589 ],
590 'sources': [
591 '../tools/filtermain.cpp',
fmalita@google.com86681b32013-06-13 20:59:14 +0000592 '../src/utils/debugger/SkDrawCommand.h',
593 '../src/utils/debugger/SkDrawCommand.cpp',
594 '../src/utils/debugger/SkDebugCanvas.h',
595 '../src/utils/debugger/SkDebugCanvas.cpp',
596 '../src/utils/debugger/SkObjectParser.h',
597 '../src/utils/debugger/SkObjectParser.cpp',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000598 ],
599 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000600 'skia_lib.gyp:skia_lib',
djsollen@google.coma09e8832012-11-13 18:50:33 +0000601 'tools.gyp:picture_utils',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000602 ],
603 },
halcanary@google.comfed30372013-10-04 12:46:45 +0000604 {
605 'target_name': 'test_image_decoder',
606 'type': 'executable',
607 'sources': [
608 '../tools/test_image_decoder.cpp',
609 ],
610 'dependencies': [
611 'skia_lib.gyp:skia_lib',
612 ],
613 },
halcanary0d154ee2014-08-11 11:33:51 -0700614 {
mtkleinafb43792014-08-19 15:55:55 -0700615 'target_name': 'proc_stats',
halcanary0d154ee2014-08-11 11:33:51 -0700616 'type': 'static_library',
617 'sources': [
618 '../tools/ProcStats.h',
619 '../tools/ProcStats.cpp',
620 ],
621 'direct_dependent_settings': {
622 'include_dirs': [ '../tools', ],
623 },
624 },
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000625 ],
626 'conditions': [
zachr@google.com28c27c82013-06-20 17:15:05 +0000627 ['skia_shared_lib',
628 {
629 'targets': [
630 {
631 'target_name': 'sklua',
632 'product_name': 'skia',
633 'product_prefix': '',
634 'product_dir': '<(PRODUCT_DIR)/',
635 'type': 'shared_library',
636 'sources': [
637 '../src/utils/SkLuaCanvas.cpp',
638 '../src/utils/SkLua.cpp',
639 ],
640 'include_dirs': [
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000641 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
642 '../src/gpu/',
643 '../src/core/',
zachr@google.com28c27c82013-06-20 17:15:05 +0000644 '../third_party/lua/src/',
645 ],
646 'dependencies': [
647 'lua.gyp:lua',
648 'pdf.gyp:pdf',
649 'skia_lib.gyp:skia_lib',
650 ],
651 'conditions': [
652 ['skia_os != "win"',
653 {
654 'ldflags': [
655 '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags',
656 ],
657 },
658 ],
659 ],
660 },
661 ],
662 },
663 ],
borenet@google.com2d137b62013-03-08 23:13:33 +0000664 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000665 {
666 'targets': [
667 {
668 'target_name': 'win_dbghelp',
669 'type': 'static_library',
670 'defines': [
671 'SK_CDB_PATH="<(skia_win_debuggers_path)"',
672 ],
673 'sources': [
674 '../tools/win_dbghelp.h',
675 '../tools/win_dbghelp.cpp',
676 ],
677 },
678 ],
679 },
680 ],
bungeman@google.com07a69f82013-04-02 14:12:38 +0000681 ['skia_os == "win"',
682 {
683 'targets': [
684 {
685 'target_name': 'win_lcid',
686 'type': 'executable',
687 'sources': [
688 '../tools/win_lcid.cpp',
689 ],
690 },
691 ],
692 },
693 ],
Cary Clark992c7b02014-07-31 08:58:44 -0400694 ['skia_os == "mac"',
695 {
696 'targets': [
697 {
698 'target_name': 'create_test_font',
699 'type': 'executable',
700 'sources': [
701 '../tools/create_test_font.cpp',
702 ],
703 'include_dirs': [
704 '../src/core',
705 ],
706 'dependencies': [
707 'flags.gyp:flags',
708 'skia_lib.gyp:skia_lib',
709 'resources',
710 ],
711 },
712 ],
713 },
714 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000715 ],
716}