blob: 49e441b9e237ba0c63064216437f4d243b55d495 [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',
robertphillips9c4909b2015-10-19 06:39:17 -070025 'imgslice',
commit-bot@chromium.org5ccdf012014-01-02 18:51:38 +000026 'lua_app',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +000027 'lua_pictures',
edisonn@google.com8ba9a832013-01-18 18:06:22 +000028 'pinspect',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000029 'skdiff',
commit-bot@chromium.org5ccdf012014-01-02 18:51:38 +000030 'skhello',
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +000031 'skpinfo',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +000032 'skpmaker',
djsollen0b17d6c2014-11-13 12:52:35 -080033 'test_public_includes',
caryclark5ef194c2015-08-31 09:22:38 -070034 'whitelist_typefaces',
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 ],
djsollen14d8fa02015-12-18 09:34:08 -080044 [ 'skia_os == "android"',
45 {
46 'dependencies': [
47 # Build this by default to catch compile errors more quickly, since
48 # the only other time this code is exercised in the android framework
49 'android_utils',
50 ],
51 },
52 ],
zachr@google.com28c27c82013-06-20 17:15:05 +000053 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +000054 },
mtklein9a0d6d62014-12-15 12:47:51 -080055 {
djsollen14d8fa02015-12-18 09:34:08 -080056 'target_name': 'android_utils',
57 'type': 'static_library',
58 'dependencies': [
59 'core.gyp:core',
60 ],
61 'sources': [
62 '../tools/android/SkAndroidSDKCanvas.h',
63 '../tools/android/SkAndroidSDKCanvas.cpp',
64 ],
65 'direct_dependent_settings': {
66 'include_dirs': [
67 '../tools/android',
68 ],
69 },
70 },
71 {
mtklein2f2903d2015-11-18 11:06:37 -080072 'target_name': 'dump_record',
73 'type': 'executable',
74 'sources': [
75 '../tools/dump_record.cpp',
76 '../tools/DumpRecord.cpp',
77 ],
78 'include_dirs': [
79 '../include/private',
80 '../src/core',
81 ],
82 'dependencies': [
83 'flags.gyp:flags',
mtklein2f2903d2015-11-18 11:06:37 -080084 'skia_lib.gyp:skia_lib',
85 ],
86 },
87 {
caryclark7da2e552015-05-12 08:36:48 -070088 'target_name': 'chrome_fuzz',
89 'type': 'executable',
90 'sources': [
91 '../tools/chrome_fuzz.cpp',
92 ],
93 'dependencies': [
94 'skia_lib.gyp:skia_lib',
95 ],
96 },
97 {
mtklein9ac68ee2014-06-20 11:29:20 -070098 'target_name': 'crash_handler',
99 'type': 'static_library',
100 'sources': [ '../tools/CrashHandler.cpp' ],
101 'dependencies': [ 'skia_lib.gyp:skia_lib' ],
102 'direct_dependent_settings': {
103 'include_dirs': [ '../tools' ],
104 },
scroggoac928f22015-02-10 08:13:26 -0800105 'conditions': [
106 [ 'skia_is_bot', {
107 'defines': [ 'SK_CRASH_HANDLER' ],
108 }],
109 ],
110
mtklein9ac68ee2014-06-20 11:29:20 -0700111 'all_dependent_settings': {
112 'msvs_settings': {
113 'VCLinkerTool': {
114 'AdditionalDependencies': [ 'Dbghelp.lib' ],
115 }
116 },
117 }
118 },
119 {
120 'target_name': 'resources',
121 'type': 'static_library',
122 'sources': [ '../tools/Resources.cpp' ],
123 'dependencies': [
124 'flags.gyp:flags',
125 'skia_lib.gyp:skia_lib',
126 ],
127 'direct_dependent_settings': {
tfarina20108912014-06-21 10:54:17 -0700128 'include_dirs': [ '../tools', ],
129 },
130 },
131 {
132 'target_name': 'sk_tool_utils',
133 'type': 'static_library',
caryclark5fb6bd42014-06-23 11:25:00 -0700134 'sources': [
135 '../tools/sk_tool_utils.cpp',
136 '../tools/sk_tool_utils_font.cpp',
caryclarkf1d41512016-02-09 10:30:22 -0800137 '../tools/random_parse_path.cpp',
caryclark5fb6bd42014-06-23 11:25:00 -0700138 ],
Cary Clark992c7b02014-07-31 08:58:44 -0400139 'include_dirs': [
herb62a69c22015-09-29 11:47:45 -0700140 '../include/private',
Cary Clark992c7b02014-07-31 08:58:44 -0400141 '../src/fonts',
robertphillips2f0dbc72015-08-20 05:15:06 -0700142 '../src/core',
Cary Clark992c7b02014-07-31 08:58:44 -0400143 ],
tfarina20108912014-06-21 10:54:17 -0700144 'dependencies': [
mtkleinada972d2014-07-31 08:31:56 -0700145 'resources',
Cary Clark992c7b02014-07-31 08:58:44 -0400146 'flags.gyp:flags',
tfarina20108912014-06-21 10:54:17 -0700147 'skia_lib.gyp:skia_lib',
148 ],
149 'direct_dependent_settings': {
150 'include_dirs': [ '../tools', ],
mtklein9ac68ee2014-06-20 11:29:20 -0700151 },
152 },
153 {
154 'target_name' : 'timer',
155 'type': 'static_library',
mtklein33eefcd2015-10-23 07:02:06 -0700156 'sources': [ '../tools/timer/Timer.cpp' ],
mtklein9ac68ee2014-06-20 11:29:20 -0700157 'direct_dependent_settings': {
158 'include_dirs': ['../tools/timer'],
159 },
mtklein33eefcd2015-10-23 07:02:06 -0700160 'dependencies': [ 'skia_lib.gyp:skia_lib' ],
mtklein9ac68ee2014-06-20 11:29:20 -0700161 },
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000162 {
163 'target_name': 'skdiff',
164 'type': 'executable',
165 'sources': [
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000166 '../tools/skdiff.cpp',
167 '../tools/skdiff.h',
168 '../tools/skdiff_html.cpp',
169 '../tools/skdiff_html.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000170 '../tools/skdiff_main.cpp',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000171 '../tools/skdiff_utils.cpp',
172 '../tools/skdiff_utils.h',
173 ],
174 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000175 'skia_lib.gyp:skia_lib',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000176 ],
177 },
178 {
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +0000179 'target_name': 'skpmaker',
180 'type': 'executable',
181 'sources': [
182 '../tools/skpmaker.cpp',
183 ],
184 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700185 '../include/private',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +0000186 '../src/core',
187 ],
188 'dependencies': [
189 'flags.gyp:flags',
190 'skia_lib.gyp:skia_lib',
191 ],
192 },
193 {
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000194 'target_name': 'skimagediff',
195 'type': 'executable',
196 'sources': [
197 '../tools/skdiff.cpp',
198 '../tools/skdiff.h',
199 '../tools/skdiff_html.cpp',
200 '../tools/skdiff_html.h',
201 '../tools/skdiff_image.cpp',
202 '../tools/skdiff_utils.cpp',
203 '../tools/skdiff_utils.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000204 ],
205 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000206 'skia_lib.gyp:skia_lib',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000207 ],
208 },
209 {
210 'target_name': 'skhello',
211 'type': 'executable',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000212 'dependencies': [
borenet48087572015-04-02 12:16:36 -0700213 'flags.gyp:flags',
214 'pdf.gyp:pdf',
djsollen@google.com52f02972013-06-03 12:10:19 +0000215 'skia_lib.gyp:skia_lib',
borenet@google.combb522882013-06-17 15:39:43 +0000216 ],
borenet48087572015-04-02 12:16:36 -0700217 'sources': [
218 '../tools/skhello.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000219 ],
220 },
221 {
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +0000222 'target_name': 'skpinfo',
223 'type': 'executable',
224 'sources': [
225 '../tools/skpinfo.cpp',
226 ],
227 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700228 '../include/private',
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +0000229 '../src/core/',
230 ],
231 'dependencies': [
232 'flags.gyp:flags',
233 'skia_lib.gyp:skia_lib',
234 ],
235 },
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000236 {
robertphillips9c4909b2015-10-19 06:39:17 -0700237 'target_name': 'imgblur',
238 'type': 'executable',
239 'sources': [
240 '../tools/imgblur.cpp',
241 ],
242 'include_dirs': [
243 '../include/core',
244 ],
245 'dependencies': [
246 'flags.gyp:flags',
247 'flags.gyp:flags_common',
248 'skia_lib.gyp:skia_lib',
249 'tools.gyp:sk_tool_utils',
250 ],
251 },
252 {
robertphillips5ce341f2015-09-18 09:04:43 -0700253 'target_name': 'imgslice',
254 'type': 'executable',
255 'sources': [
256 '../tools/imgslice.cpp',
257 ],
258 'include_dirs': [
259 '../include/core',
260 ],
261 'dependencies': [
262 'flags.gyp:flags',
263 'skia_lib.gyp:skia_lib',
264 ],
265 },
266 {
msarett6a738212016-03-04 13:27:35 -0800267 'target_name': 'get_images_from_skps',
268 'type': 'executable',
269 'sources': [
270 '../tools/get_images_from_skps.cpp',
271 ],
272 'include_dirs': [
273 '../src/core',
274 '../include/private',
275 ],
276 'dependencies': [
277 'flags.gyp:flags',
278 'skia_lib.gyp:skia_lib',
279 ],
msarett3478f752016-02-12 14:47:09 -0800280 },
281 {
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000282 'target_name': 'gpuveto',
283 'type': 'executable',
284 'sources': [
285 '../tools/gpuveto.cpp',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000286 ],
287 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700288 '../include/private',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000289 '../src/core/',
290 '../src/images',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000291 ],
292 'dependencies': [
293 'flags.gyp:flags',
294 'skia_lib.gyp:skia_lib',
295 ],
296 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000297 {
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000298 'target_name': 'lua_app',
299 'type': 'executable',
300 'sources': [
301 '../tools/lua/lua_app.cpp',
302 '../src/utils/SkLua.cpp',
303 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000304 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700305 '../include/private',
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000306 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
307 '../src/gpu/',
308 '../src/core/',
309 ],
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000310 'dependencies': [
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000311 'effects.gyp:effects',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000312 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000313 'lua.gyp:lua',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000314 'pdf.gyp:pdf',
315 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000316 'skia_lib.gyp:skia_lib',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000317 ],
318 },
319 {
reed@google.comdff7e112013-05-15 19:34:20 +0000320 'target_name': 'lua_pictures',
321 'type': 'executable',
322 'sources': [
323 '../tools/lua/lua_pictures.cpp',
324 '../src/utils/SkLuaCanvas.cpp',
reed@google.com74ce6f02013-05-22 15:13:18 +0000325 '../src/utils/SkLua.cpp',
reed@google.comdff7e112013-05-15 19:34:20 +0000326 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000327 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700328 '../include/private',
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000329 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
330 '../src/gpu/',
331 '../src/core/',
332 ],
reed@google.comdff7e112013-05-15 19:34:20 +0000333 'dependencies': [
reed@google.comdff7e112013-05-15 19:34:20 +0000334 'effects.gyp:effects',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000335 'flags.gyp:flags',
reed@google.comdff7e112013-05-15 19:34:20 +0000336 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000337 'lua.gyp:lua',
reed@google.comdff7e112013-05-15 19:34:20 +0000338 'tools.gyp:picture_utils',
mike@reedtribe.orgfb858242013-06-08 16:39:44 +0000339 'pdf.gyp:pdf',
reed@google.comdff7e112013-05-15 19:34:20 +0000340 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000341 'skia_lib.gyp:skia_lib',
reed@google.comdff7e112013-05-15 19:34:20 +0000342 ],
343 },
344 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000345 'target_name': 'picture_utils',
346 'type': 'static_library',
347 'sources': [
348 '../tools/picture_utils.cpp',
borenet@google.come21795e2012-09-14 14:34:28 +0000349 '../tools/picture_utils.h',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000350 ],
351 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000352 'skia_lib.gyp:skia_lib',
junov@chromium.org777442d2012-06-12 14:56:36 +0000353 ],
reed@google.come52d2912013-05-15 20:01:07 +0000354 'direct_dependent_settings': {
355 'include_dirs': [
tfarinabcbc1782014-06-18 14:32:48 -0700356 '../tools/',
reed@google.come52d2912013-05-15 20:01:07 +0000357 ],
358 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000359 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000360 {
361 'target_name': 'pinspect',
362 'type': 'executable',
363 'sources': [
364 '../tools/pinspect.cpp',
365 ],
366 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000367 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000368 'skia_lib.gyp:skia_lib',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000369 ],
370 },
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000371 {
mtkleinafb43792014-08-19 15:55:55 -0700372 'target_name': 'proc_stats',
halcanary0d154ee2014-08-11 11:33:51 -0700373 'type': 'static_library',
374 'sources': [
375 '../tools/ProcStats.h',
376 '../tools/ProcStats.cpp',
377 ],
378 'direct_dependent_settings': {
379 'include_dirs': [ '../tools', ],
380 },
381 },
djsollen0b17d6c2014-11-13 12:52:35 -0800382 {
joshualittcdad12f2016-02-08 07:08:21 -0800383 'target_name': 'url_data_manager',
384 'type': 'static_library',
385 'sources': [
386 '../tools/UrlDataManager.h',
387 '../tools/UrlDataManager.cpp',
388 ],
389 'dependencies': [
390 'skia_lib.gyp:skia_lib',
391 ],
392 'include_dirs': [
393 '../include/private',
394 '../src/core',
395 ],
396 'direct_dependent_settings': {
397 'include_dirs': [
398 '../include/private',
mtklein2d225e32016-02-29 09:05:32 -0800399 '../tools',
joshualittcdad12f2016-02-08 07:08:21 -0800400 ],
401 },
402 },
403 {
caryclark5ef194c2015-08-31 09:22:38 -0700404 'target_name': 'whitelist_typefaces',
405 'type': 'executable',
406 'sources': [
407 '../tools/whitelist_typefaces.cpp',
408 ],
409 'dependencies': [
410 'skia_lib.gyp:skia_lib',
411 ],
412 },
413 {
joshualitt3ebd0502016-02-09 07:18:08 -0800414 'target_name': 'thermal_manager',
415 'type': 'static_library',
416 'sources': [
417 '../tools/ThermalManager.cpp',
418 ],
419 'dependencies': [
420 'skia_lib.gyp:skia_lib',
421 ],
422 'direct_dependent_settings': {
423 'include_dirs': [ '../tools', ],
424 },
425 },
426 {
djsollen0b17d6c2014-11-13 12:52:35 -0800427 'target_name': 'test_public_includes',
428 'type': 'static_library',
djsollenc87dd2c2014-11-14 11:11:46 -0800429 # Ensure that our public headers don't have unused params so that clients
430 # (e.g. Android) that include us can build with these warnings enabled
431 'cflags!': [ '-Wno-unused-parameter' ],
djsollen0b17d6c2014-11-13 12:52:35 -0800432 'variables': {
433 'includes_to_test': [
msarett506e19a2015-11-13 06:11:09 -0800434 '<(skia_include_path)/android',
djsollen0b17d6c2014-11-13 12:52:35 -0800435 '<(skia_include_path)/animator',
436 '<(skia_include_path)/c',
msarett33bee092015-11-11 12:43:07 -0800437 '<(skia_include_path)/codec',
djsollen0b17d6c2014-11-13 12:52:35 -0800438 '<(skia_include_path)/config',
439 '<(skia_include_path)/core',
440 '<(skia_include_path)/effects',
441 '<(skia_include_path)/gpu',
442 '<(skia_include_path)/images',
443 '<(skia_include_path)/pathops',
djsollen0b17d6c2014-11-13 12:52:35 -0800444 '<(skia_include_path)/ports',
fmalita02c8fd02015-02-06 08:43:51 -0800445 '<(skia_include_path)/svg/parser',
djsollen0b17d6c2014-11-13 12:52:35 -0800446 '<(skia_include_path)/utils',
447 '<(skia_include_path)/views',
448 '<(skia_include_path)/xml',
449 ],
450 'paths_to_ignore': [
451 '<(skia_include_path)/gpu/gl/GrGLConfig_chrome.h',
bungeman0b1de262015-06-17 07:55:59 -0700452 '<(skia_include_path)/ports/SkFontMgr_fontconfig.h',
djsollen0b17d6c2014-11-13 12:52:35 -0800453 '<(skia_include_path)/ports/SkTypeface_mac.h',
454 '<(skia_include_path)/ports/SkTypeface_win.h',
455 '<(skia_include_path)/utils/ios',
456 '<(skia_include_path)/utils/mac',
457 '<(skia_include_path)/utils/win',
458 '<(skia_include_path)/utils/SkDebugUtils.h',
459 '<(skia_include_path)/utils/SkJSONCPP.h',
djsollen0b17d6c2014-11-13 12:52:35 -0800460 '<(skia_include_path)/views/SkOSWindow_Android.h',
461 '<(skia_include_path)/views/SkOSWindow_iOS.h',
462 '<(skia_include_path)/views/SkOSWindow_Mac.h',
djsollen0b17d6c2014-11-13 12:52:35 -0800463 '<(skia_include_path)/views/SkOSWindow_SDL.h',
464 '<(skia_include_path)/views/SkOSWindow_Unix.h',
465 '<(skia_include_path)/views/SkOSWindow_Win.h',
466 '<(skia_include_path)/views/SkWindow.h',
Greg Daniel164a9f02016-02-22 09:56:40 -0500467 '<(skia_include_path)/gpu/vk',
djsollen0b17d6c2014-11-13 12:52:35 -0800468 ],
469 },
470 'include_dirs': [
471 '<@(includes_to_test)',
msarett6a738212016-03-04 13:27:35 -0800472 '../src/core',
djsollen0b17d6c2014-11-13 12:52:35 -0800473 ],
474 'sources': [
475 # unused_param_test.cpp is generated by the action below.
476 '<(INTERMEDIATE_DIR)/test_public_includes.cpp',
477 ],
478 'actions': [
479 {
480 'action_name': 'generate_includes_cpp',
481 'inputs': [
482 '../tools/generate_includes_cpp.py',
483 '<@(includes_to_test)',
484 # This causes the gyp generator on mac to fail
485 #'<@(paths_to_ignore)',
486 ],
487 'outputs': [
488 '<(INTERMEDIATE_DIR)/test_public_includes.cpp',
489 ],
490 'action': ['python', '../tools/generate_includes_cpp.py',
491 '--ignore', '<(paths_to_ignore)',
492 '<@(_outputs)', '<@(includes_to_test)'],
493 },
494 ],
495 },
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000496 ],
497 'conditions': [
zachr@google.com28c27c82013-06-20 17:15:05 +0000498 ['skia_shared_lib',
499 {
500 'targets': [
501 {
502 'target_name': 'sklua',
503 'product_name': 'skia',
504 'product_prefix': '',
505 'product_dir': '<(PRODUCT_DIR)/',
506 'type': 'shared_library',
507 'sources': [
508 '../src/utils/SkLuaCanvas.cpp',
509 '../src/utils/SkLua.cpp',
510 ],
511 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700512 '../include/private',
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000513 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
514 '../src/gpu/',
515 '../src/core/',
zachr@google.com28c27c82013-06-20 17:15:05 +0000516 '../third_party/lua/src/',
517 ],
518 'dependencies': [
519 'lua.gyp:lua',
520 'pdf.gyp:pdf',
521 'skia_lib.gyp:skia_lib',
522 ],
523 'conditions': [
524 ['skia_os != "win"',
525 {
526 'ldflags': [
527 '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags',
528 ],
529 },
530 ],
531 ],
532 },
533 ],
534 },
535 ],
borenet@google.com2d137b62013-03-08 23:13:33 +0000536 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000537 {
538 'targets': [
539 {
540 'target_name': 'win_dbghelp',
541 'type': 'static_library',
542 'defines': [
543 'SK_CDB_PATH="<(skia_win_debuggers_path)"',
544 ],
545 'sources': [
546 '../tools/win_dbghelp.h',
547 '../tools/win_dbghelp.cpp',
548 ],
549 },
550 ],
551 },
552 ],
bungeman@google.com07a69f82013-04-02 14:12:38 +0000553 ['skia_os == "win"',
554 {
555 'targets': [
556 {
557 'target_name': 'win_lcid',
558 'type': 'executable',
559 'sources': [
560 '../tools/win_lcid.cpp',
561 ],
562 },
563 ],
564 },
565 ],
Cary Clark992c7b02014-07-31 08:58:44 -0400566 ['skia_os == "mac"',
567 {
568 'targets': [
569 {
570 'target_name': 'create_test_font',
571 'type': 'executable',
572 'sources': [
573 '../tools/create_test_font.cpp',
574 ],
575 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700576 '../include/private',
Cary Clark992c7b02014-07-31 08:58:44 -0400577 '../src/core',
578 ],
579 'dependencies': [
580 'flags.gyp:flags',
581 'skia_lib.gyp:skia_lib',
582 'resources',
583 ],
584 },
585 ],
586 },
587 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000588 ],
589}