blob: 89e07a0a5b207032c24917a689fc3e286bd74ced [file] [log] [blame]
scroggo3e562272015-03-25 10:22:41 -07001# Copyright 2015 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
bsalomon3e791242014-12-17 13:43:13 -08005 # GYP file to build various tools.
epoger@google.comccdbd2c2011-06-02 14:38:23 +00006#
7# To build on Linux:
8# ./gyp_skia tools.gyp && make tools
9#
epoger@google.comccdbd2c2011-06-02 14:38:23 +000010{
11 'includes': [
12 'apptype_console.gypi',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000013 ],
14 'targets': [
15 {
16 # Build all executable targets defined below.
17 'target_name': 'tools',
18 'type': 'none',
19 'dependencies': [
caryclark7da2e552015-05-12 08:36:48 -070020 'chrome_fuzz',
mtklein2f2903d2015-11-18 11:06:37 -080021 'dump_record',
msarett3478f752016-02-12 14:47:09 -080022 'get_images_from_skps',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +000023 'gpuveto',
robertphillips9c4909b2015-10-19 06:39:17 -070024 'imgblur',
25 'imgconv',
26 'imgslice',
commit-bot@chromium.org5ccdf012014-01-02 18:51:38 +000027 'lua_app',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +000028 'lua_pictures',
edisonn@google.com8ba9a832013-01-18 18:06:22 +000029 'pinspect',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000030 'skdiff',
commit-bot@chromium.org5ccdf012014-01-02 18:51:38 +000031 'skhello',
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +000032 'skpinfo',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +000033 'skpmaker',
halcanary@google.comfed30372013-10-04 12:46:45 +000034 'test_image_decoder',
djsollen0b17d6c2014-11-13 12:52:35 -080035 'test_public_includes',
caryclark5ef194c2015-08-31 09:22:38 -070036 'whitelist_typefaces',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000037 ],
zachr@google.com28c27c82013-06-20 17:15:05 +000038 'conditions': [
39 ['skia_shared_lib',
40 {
41 'dependencies': [
42 'sklua', # This can only be built if skia is built as a shared library
43 ],
44 },
45 ],
djsollen14d8fa02015-12-18 09:34:08 -080046 [ 'skia_os == "android"',
47 {
48 'dependencies': [
49 # Build this by default to catch compile errors more quickly, since
50 # the only other time this code is exercised in the android framework
51 'android_utils',
52 ],
53 },
54 ],
zachr@google.com28c27c82013-06-20 17:15:05 +000055 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +000056 },
mtklein9a0d6d62014-12-15 12:47:51 -080057 {
djsollen14d8fa02015-12-18 09:34:08 -080058 'target_name': 'android_utils',
59 'type': 'static_library',
60 'dependencies': [
61 'core.gyp:core',
62 ],
63 'sources': [
64 '../tools/android/SkAndroidSDKCanvas.h',
65 '../tools/android/SkAndroidSDKCanvas.cpp',
66 ],
67 'direct_dependent_settings': {
68 'include_dirs': [
69 '../tools/android',
70 ],
71 },
72 },
73 {
mtklein2f2903d2015-11-18 11:06:37 -080074 'target_name': 'dump_record',
75 'type': 'executable',
76 'sources': [
77 '../tools/dump_record.cpp',
78 '../tools/DumpRecord.cpp',
79 ],
80 'include_dirs': [
81 '../include/private',
82 '../src/core',
83 ],
84 'dependencies': [
85 'flags.gyp:flags',
mtklein2f2903d2015-11-18 11:06:37 -080086 'skia_lib.gyp:skia_lib',
87 ],
88 },
89 {
caryclark7da2e552015-05-12 08:36:48 -070090 'target_name': 'chrome_fuzz',
91 'type': 'executable',
92 'sources': [
93 '../tools/chrome_fuzz.cpp',
94 ],
95 'dependencies': [
96 'skia_lib.gyp:skia_lib',
97 ],
98 },
99 {
mtklein9ac68ee2014-06-20 11:29:20 -0700100 'target_name': 'crash_handler',
101 'type': 'static_library',
102 'sources': [ '../tools/CrashHandler.cpp' ],
103 'dependencies': [ 'skia_lib.gyp:skia_lib' ],
104 'direct_dependent_settings': {
105 'include_dirs': [ '../tools' ],
106 },
scroggoac928f22015-02-10 08:13:26 -0800107 'conditions': [
108 [ 'skia_is_bot', {
109 'defines': [ 'SK_CRASH_HANDLER' ],
110 }],
111 ],
112
mtklein9ac68ee2014-06-20 11:29:20 -0700113 'all_dependent_settings': {
114 'msvs_settings': {
115 'VCLinkerTool': {
116 'AdditionalDependencies': [ 'Dbghelp.lib' ],
117 }
118 },
119 }
120 },
121 {
122 'target_name': 'resources',
123 'type': 'static_library',
124 'sources': [ '../tools/Resources.cpp' ],
125 'dependencies': [
126 'flags.gyp:flags',
127 'skia_lib.gyp:skia_lib',
128 ],
129 'direct_dependent_settings': {
tfarina20108912014-06-21 10:54:17 -0700130 'include_dirs': [ '../tools', ],
131 },
132 },
133 {
134 'target_name': 'sk_tool_utils',
135 'type': 'static_library',
caryclark5fb6bd42014-06-23 11:25:00 -0700136 'sources': [
137 '../tools/sk_tool_utils.cpp',
138 '../tools/sk_tool_utils_font.cpp',
caryclarkf1d41512016-02-09 10:30:22 -0800139 '../tools/random_parse_path.cpp',
caryclark5fb6bd42014-06-23 11:25:00 -0700140 ],
Cary Clark992c7b02014-07-31 08:58:44 -0400141 'include_dirs': [
herb62a69c22015-09-29 11:47:45 -0700142 '../include/private',
Cary Clark992c7b02014-07-31 08:58:44 -0400143 '../src/fonts',
robertphillips2f0dbc72015-08-20 05:15:06 -0700144 '../src/core',
Cary Clark992c7b02014-07-31 08:58:44 -0400145 ],
tfarina20108912014-06-21 10:54:17 -0700146 'dependencies': [
mtkleinada972d2014-07-31 08:31:56 -0700147 'resources',
Cary Clark992c7b02014-07-31 08:58:44 -0400148 'flags.gyp:flags',
tfarina20108912014-06-21 10:54:17 -0700149 'skia_lib.gyp:skia_lib',
150 ],
151 'direct_dependent_settings': {
152 'include_dirs': [ '../tools', ],
mtklein9ac68ee2014-06-20 11:29:20 -0700153 },
154 },
155 {
156 'target_name' : 'timer',
157 'type': 'static_library',
mtklein33eefcd2015-10-23 07:02:06 -0700158 'sources': [ '../tools/timer/Timer.cpp' ],
mtklein9ac68ee2014-06-20 11:29:20 -0700159 'direct_dependent_settings': {
160 'include_dirs': ['../tools/timer'],
161 },
mtklein33eefcd2015-10-23 07:02:06 -0700162 'dependencies': [ 'skia_lib.gyp:skia_lib' ],
mtklein9ac68ee2014-06-20 11:29:20 -0700163 },
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000164 {
165 'target_name': 'skdiff',
166 'type': 'executable',
167 'sources': [
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000168 '../tools/skdiff.cpp',
169 '../tools/skdiff.h',
170 '../tools/skdiff_html.cpp',
171 '../tools/skdiff_html.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000172 '../tools/skdiff_main.cpp',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000173 '../tools/skdiff_utils.cpp',
174 '../tools/skdiff_utils.h',
175 ],
176 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000177 'skia_lib.gyp:skia_lib',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000178 ],
179 },
180 {
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +0000181 'target_name': 'skpmaker',
182 'type': 'executable',
183 'sources': [
184 '../tools/skpmaker.cpp',
185 ],
186 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700187 '../include/private',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +0000188 '../src/core',
189 ],
190 'dependencies': [
191 'flags.gyp:flags',
192 'skia_lib.gyp:skia_lib',
193 ],
194 },
195 {
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000196 'target_name': 'skimagediff',
197 'type': 'executable',
198 'sources': [
199 '../tools/skdiff.cpp',
200 '../tools/skdiff.h',
201 '../tools/skdiff_html.cpp',
202 '../tools/skdiff_html.h',
203 '../tools/skdiff_image.cpp',
204 '../tools/skdiff_utils.cpp',
205 '../tools/skdiff_utils.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000206 ],
207 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000208 'skia_lib.gyp:skia_lib',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000209 ],
210 },
211 {
212 'target_name': 'skhello',
213 'type': 'executable',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000214 'dependencies': [
borenet48087572015-04-02 12:16:36 -0700215 'flags.gyp:flags',
216 'pdf.gyp:pdf',
djsollen@google.com52f02972013-06-03 12:10:19 +0000217 'skia_lib.gyp:skia_lib',
borenet@google.combb522882013-06-17 15:39:43 +0000218 ],
borenet48087572015-04-02 12:16:36 -0700219 'sources': [
220 '../tools/skhello.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000221 ],
222 },
223 {
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +0000224 'target_name': 'skpinfo',
225 'type': 'executable',
226 'sources': [
227 '../tools/skpinfo.cpp',
228 ],
229 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700230 '../include/private',
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +0000231 '../src/core/',
232 ],
233 'dependencies': [
234 'flags.gyp:flags',
235 'skia_lib.gyp:skia_lib',
236 ],
237 },
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000238 {
robertphillips9c4909b2015-10-19 06:39:17 -0700239 'target_name': 'imgblur',
240 'type': 'executable',
241 'sources': [
242 '../tools/imgblur.cpp',
243 ],
244 'include_dirs': [
245 '../include/core',
246 ],
247 'dependencies': [
248 'flags.gyp:flags',
249 'flags.gyp:flags_common',
250 'skia_lib.gyp:skia_lib',
251 'tools.gyp:sk_tool_utils',
252 ],
253 },
254 {
robertphillips5ce341f2015-09-18 09:04:43 -0700255 'target_name': 'imgslice',
256 'type': 'executable',
257 'sources': [
258 '../tools/imgslice.cpp',
259 ],
260 'include_dirs': [
261 '../include/core',
262 ],
263 'dependencies': [
264 'flags.gyp:flags',
265 'skia_lib.gyp:skia_lib',
266 ],
267 },
268 {
msarett3478f752016-02-12 14:47:09 -0800269 'target_name': 'get_images_from_skps',
270 'type': 'executable',
271 'sources': [
272 '../tools/get_images_from_skps.cpp',
273 ],
mtklein2d225e32016-02-29 09:05:32 -0800274 'include_dirs': [
275 '../include/private',
276 '../src/core',
277 ],
msarett3478f752016-02-12 14:47:09 -0800278 'dependencies': [
279 'flags.gyp:flags',
280 'skia_lib.gyp:skia_lib',
281 ],
282 },
283 {
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000284 'target_name': 'gpuveto',
285 'type': 'executable',
286 'sources': [
287 '../tools/gpuveto.cpp',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000288 ],
289 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700290 '../include/private',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000291 '../src/core/',
292 '../src/images',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000293 ],
294 'dependencies': [
295 'flags.gyp:flags',
296 'skia_lib.gyp:skia_lib',
297 ],
298 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000299 {
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000300 'target_name': 'lua_app',
301 'type': 'executable',
302 'sources': [
303 '../tools/lua/lua_app.cpp',
304 '../src/utils/SkLua.cpp',
305 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000306 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700307 '../include/private',
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000308 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
309 '../src/gpu/',
310 '../src/core/',
311 ],
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000312 'dependencies': [
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000313 'effects.gyp:effects',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000314 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000315 'lua.gyp:lua',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000316 'pdf.gyp:pdf',
317 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000318 'skia_lib.gyp:skia_lib',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000319 ],
320 },
321 {
reed@google.comdff7e112013-05-15 19:34:20 +0000322 'target_name': 'lua_pictures',
323 'type': 'executable',
324 'sources': [
325 '../tools/lua/lua_pictures.cpp',
326 '../src/utils/SkLuaCanvas.cpp',
reed@google.com74ce6f02013-05-22 15:13:18 +0000327 '../src/utils/SkLua.cpp',
reed@google.comdff7e112013-05-15 19:34:20 +0000328 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000329 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700330 '../include/private',
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000331 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
332 '../src/gpu/',
333 '../src/core/',
334 ],
reed@google.comdff7e112013-05-15 19:34:20 +0000335 'dependencies': [
reed@google.comdff7e112013-05-15 19:34:20 +0000336 'effects.gyp:effects',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000337 'flags.gyp:flags',
reed@google.comdff7e112013-05-15 19:34:20 +0000338 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000339 'lua.gyp:lua',
reed@google.comdff7e112013-05-15 19:34:20 +0000340 'tools.gyp:picture_utils',
mike@reedtribe.orgfb858242013-06-08 16:39:44 +0000341 'pdf.gyp:pdf',
reed@google.comdff7e112013-05-15 19:34:20 +0000342 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000343 'skia_lib.gyp:skia_lib',
reed@google.comdff7e112013-05-15 19:34:20 +0000344 ],
345 },
346 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000347 'target_name': 'picture_utils',
348 'type': 'static_library',
349 'sources': [
350 '../tools/picture_utils.cpp',
borenet@google.come21795e2012-09-14 14:34:28 +0000351 '../tools/picture_utils.h',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000352 ],
353 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000354 'skia_lib.gyp:skia_lib',
junov@chromium.org777442d2012-06-12 14:56:36 +0000355 ],
reed@google.come52d2912013-05-15 20:01:07 +0000356 'direct_dependent_settings': {
357 'include_dirs': [
tfarinabcbc1782014-06-18 14:32:48 -0700358 '../tools/',
reed@google.come52d2912013-05-15 20:01:07 +0000359 ],
360 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000361 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000362 {
363 'target_name': 'pinspect',
364 'type': 'executable',
365 'sources': [
366 '../tools/pinspect.cpp',
367 ],
368 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000369 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000370 'skia_lib.gyp:skia_lib',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000371 ],
372 },
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000373 {
reeda816d952014-12-17 13:08:17 -0800374 'target_name': 'imgconv',
375 'type': 'executable',
376 'sources': [
377 '../tools/imgconv.cpp',
378 ],
379 'dependencies': [
380 'flags.gyp:flags',
381 'skia_lib.gyp:skia_lib',
382 ],
383 },
384 {
halcanary@google.comfed30372013-10-04 12:46:45 +0000385 'target_name': 'test_image_decoder',
386 'type': 'executable',
387 'sources': [
388 '../tools/test_image_decoder.cpp',
389 ],
390 'dependencies': [
391 'skia_lib.gyp:skia_lib',
392 ],
393 },
halcanary0d154ee2014-08-11 11:33:51 -0700394 {
mtkleinafb43792014-08-19 15:55:55 -0700395 'target_name': 'proc_stats',
halcanary0d154ee2014-08-11 11:33:51 -0700396 'type': 'static_library',
397 'sources': [
398 '../tools/ProcStats.h',
399 '../tools/ProcStats.cpp',
400 ],
401 'direct_dependent_settings': {
402 'include_dirs': [ '../tools', ],
403 },
404 },
djsollen0b17d6c2014-11-13 12:52:35 -0800405 {
joshualittcdad12f2016-02-08 07:08:21 -0800406 'target_name': 'url_data_manager',
407 'type': 'static_library',
408 'sources': [
409 '../tools/UrlDataManager.h',
410 '../tools/UrlDataManager.cpp',
411 ],
412 'dependencies': [
413 'skia_lib.gyp:skia_lib',
414 ],
415 'include_dirs': [
416 '../include/private',
417 '../src/core',
418 ],
419 'direct_dependent_settings': {
420 'include_dirs': [
421 '../include/private',
mtklein2d225e32016-02-29 09:05:32 -0800422 '../tools',
joshualittcdad12f2016-02-08 07:08:21 -0800423 ],
424 },
425 },
426 {
caryclark5ef194c2015-08-31 09:22:38 -0700427 'target_name': 'whitelist_typefaces',
428 'type': 'executable',
429 'sources': [
430 '../tools/whitelist_typefaces.cpp',
431 ],
432 'dependencies': [
433 'skia_lib.gyp:skia_lib',
434 ],
435 },
436 {
joshualitt3ebd0502016-02-09 07:18:08 -0800437 'target_name': 'thermal_manager',
438 'type': 'static_library',
439 'sources': [
440 '../tools/ThermalManager.cpp',
441 ],
442 'dependencies': [
443 'skia_lib.gyp:skia_lib',
444 ],
445 'direct_dependent_settings': {
446 'include_dirs': [ '../tools', ],
447 },
448 },
449 {
djsollen0b17d6c2014-11-13 12:52:35 -0800450 'target_name': 'test_public_includes',
451 'type': 'static_library',
djsollenc87dd2c2014-11-14 11:11:46 -0800452 # Ensure that our public headers don't have unused params so that clients
453 # (e.g. Android) that include us can build with these warnings enabled
454 'cflags!': [ '-Wno-unused-parameter' ],
djsollen0b17d6c2014-11-13 12:52:35 -0800455 'variables': {
456 'includes_to_test': [
msarett506e19a2015-11-13 06:11:09 -0800457 '<(skia_include_path)/android',
djsollen0b17d6c2014-11-13 12:52:35 -0800458 '<(skia_include_path)/animator',
459 '<(skia_include_path)/c',
msarett33bee092015-11-11 12:43:07 -0800460 '<(skia_include_path)/codec',
djsollen0b17d6c2014-11-13 12:52:35 -0800461 '<(skia_include_path)/config',
462 '<(skia_include_path)/core',
463 '<(skia_include_path)/effects',
464 '<(skia_include_path)/gpu',
465 '<(skia_include_path)/images',
466 '<(skia_include_path)/pathops',
djsollen0b17d6c2014-11-13 12:52:35 -0800467 '<(skia_include_path)/ports',
fmalita02c8fd02015-02-06 08:43:51 -0800468 '<(skia_include_path)/svg/parser',
djsollen0b17d6c2014-11-13 12:52:35 -0800469 '<(skia_include_path)/utils',
470 '<(skia_include_path)/views',
471 '<(skia_include_path)/xml',
472 ],
473 'paths_to_ignore': [
474 '<(skia_include_path)/gpu/gl/GrGLConfig_chrome.h',
bungeman0b1de262015-06-17 07:55:59 -0700475 '<(skia_include_path)/ports/SkFontMgr_fontconfig.h',
djsollen0b17d6c2014-11-13 12:52:35 -0800476 '<(skia_include_path)/ports/SkTypeface_mac.h',
477 '<(skia_include_path)/ports/SkTypeface_win.h',
478 '<(skia_include_path)/utils/ios',
479 '<(skia_include_path)/utils/mac',
480 '<(skia_include_path)/utils/win',
481 '<(skia_include_path)/utils/SkDebugUtils.h',
482 '<(skia_include_path)/utils/SkJSONCPP.h',
djsollen0b17d6c2014-11-13 12:52:35 -0800483 '<(skia_include_path)/views/SkOSWindow_Android.h',
484 '<(skia_include_path)/views/SkOSWindow_iOS.h',
485 '<(skia_include_path)/views/SkOSWindow_Mac.h',
djsollen0b17d6c2014-11-13 12:52:35 -0800486 '<(skia_include_path)/views/SkOSWindow_SDL.h',
487 '<(skia_include_path)/views/SkOSWindow_Unix.h',
488 '<(skia_include_path)/views/SkOSWindow_Win.h',
489 '<(skia_include_path)/views/SkWindow.h',
Greg Daniel164a9f02016-02-22 09:56:40 -0500490 '<(skia_include_path)/gpu/vk',
djsollen0b17d6c2014-11-13 12:52:35 -0800491 ],
492 },
493 'include_dirs': [
494 '<@(includes_to_test)',
495 ],
496 'sources': [
497 # unused_param_test.cpp is generated by the action below.
498 '<(INTERMEDIATE_DIR)/test_public_includes.cpp',
499 ],
500 'actions': [
501 {
502 'action_name': 'generate_includes_cpp',
503 'inputs': [
504 '../tools/generate_includes_cpp.py',
505 '<@(includes_to_test)',
506 # This causes the gyp generator on mac to fail
507 #'<@(paths_to_ignore)',
508 ],
509 'outputs': [
510 '<(INTERMEDIATE_DIR)/test_public_includes.cpp',
511 ],
512 'action': ['python', '../tools/generate_includes_cpp.py',
513 '--ignore', '<(paths_to_ignore)',
514 '<@(_outputs)', '<@(includes_to_test)'],
515 },
516 ],
517 },
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000518 ],
519 'conditions': [
zachr@google.com28c27c82013-06-20 17:15:05 +0000520 ['skia_shared_lib',
521 {
522 'targets': [
523 {
524 'target_name': 'sklua',
525 'product_name': 'skia',
526 'product_prefix': '',
527 'product_dir': '<(PRODUCT_DIR)/',
528 'type': 'shared_library',
529 'sources': [
530 '../src/utils/SkLuaCanvas.cpp',
531 '../src/utils/SkLua.cpp',
532 ],
533 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700534 '../include/private',
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000535 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
536 '../src/gpu/',
537 '../src/core/',
zachr@google.com28c27c82013-06-20 17:15:05 +0000538 '../third_party/lua/src/',
539 ],
540 'dependencies': [
541 'lua.gyp:lua',
542 'pdf.gyp:pdf',
543 'skia_lib.gyp:skia_lib',
544 ],
545 'conditions': [
546 ['skia_os != "win"',
547 {
548 'ldflags': [
549 '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags',
550 ],
551 },
552 ],
553 ],
554 },
555 ],
556 },
557 ],
borenet@google.com2d137b62013-03-08 23:13:33 +0000558 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000559 {
560 'targets': [
561 {
562 'target_name': 'win_dbghelp',
563 'type': 'static_library',
564 'defines': [
565 'SK_CDB_PATH="<(skia_win_debuggers_path)"',
566 ],
567 'sources': [
568 '../tools/win_dbghelp.h',
569 '../tools/win_dbghelp.cpp',
570 ],
571 },
572 ],
573 },
574 ],
bungeman@google.com07a69f82013-04-02 14:12:38 +0000575 ['skia_os == "win"',
576 {
577 'targets': [
578 {
579 'target_name': 'win_lcid',
580 'type': 'executable',
581 'sources': [
582 '../tools/win_lcid.cpp',
583 ],
584 },
585 ],
586 },
587 ],
Cary Clark992c7b02014-07-31 08:58:44 -0400588 ['skia_os == "mac"',
589 {
590 'targets': [
591 {
592 'target_name': 'create_test_font',
593 'type': 'executable',
594 'sources': [
595 '../tools/create_test_font.cpp',
596 ],
597 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700598 '../include/private',
Cary Clark992c7b02014-07-31 08:58:44 -0400599 '../src/core',
600 ],
601 'dependencies': [
602 'flags.gyp:flags',
603 'skia_lib.gyp:skia_lib',
604 'resources',
605 ],
606 },
607 ],
608 },
609 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000610 ],
611}