blob: 9d02ee1f615ca51c7d69d29514f5b78ca7e89da2 [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',
halcanary00d44e02016-05-03 15:09:52 -070034 'using_skia_and_harfbuzz',
msarettaabe15e2016-05-13 07:32:59 -070035 'visualize_color_gamut',
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': [
halcanary63677f42016-04-18 12:42:05 -070039 ['skia_mesa and skia_os in ["linux", "mac"]',
40 { 'dependencies': [ 'fiddle_build_test' ] }
41 ],
zachr@google.com28c27c82013-06-20 17:15:05 +000042 ['skia_shared_lib',
43 {
44 'dependencies': [
45 'sklua', # This can only be built if skia is built as a shared library
46 ],
47 },
48 ],
djsollen14d8fa02015-12-18 09:34:08 -080049 [ 'skia_os == "android"',
50 {
51 'dependencies': [
52 # Build this by default to catch compile errors more quickly, since
53 # the only other time this code is exercised in the android framework
54 'android_utils',
55 ],
56 },
57 ],
zachr@google.com28c27c82013-06-20 17:15:05 +000058 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +000059 },
mtklein9a0d6d62014-12-15 12:47:51 -080060 {
djsollen14d8fa02015-12-18 09:34:08 -080061 'target_name': 'android_utils',
62 'type': 'static_library',
63 'dependencies': [
64 'core.gyp:core',
65 ],
66 'sources': [
67 '../tools/android/SkAndroidSDKCanvas.h',
68 '../tools/android/SkAndroidSDKCanvas.cpp',
69 ],
70 'direct_dependent_settings': {
71 'include_dirs': [
72 '../tools/android',
73 ],
74 },
75 },
76 {
mtklein2f2903d2015-11-18 11:06:37 -080077 'target_name': 'dump_record',
78 'type': 'executable',
79 'sources': [
80 '../tools/dump_record.cpp',
81 '../tools/DumpRecord.cpp',
82 ],
83 'include_dirs': [
84 '../include/private',
85 '../src/core',
86 ],
87 'dependencies': [
88 'flags.gyp:flags',
mtklein2f2903d2015-11-18 11:06:37 -080089 'skia_lib.gyp:skia_lib',
90 ],
91 },
92 {
mtklein7e602c22016-07-11 11:27:30 -070093 'target_name': 'monobench',
94 'type': 'executable',
95 'dependencies': [
96 'flags.gyp:flags',
97 'flags.gyp:flags_common',
98 'resources',
99 'skia_lib.gyp:skia_lib',
100 'timer',
101 'pdf.gyp:pdf',
102 'tools.gyp:sk_tool_utils',
103 ],
104 'include_dirs': [
105 '../bench',
106 '../include/private',
107 '../src/core',
108 '../src/effects',
109 '../src/effects/gradients',
110 '../src/image',
111 '../src/gpu',
112 '../src/pdf',
113 '../src/utils',
114 ],
115 'sources': [
116 '../tools/monobench.cpp',
117 '../bench/Benchmark.cpp',
118 '<!@(python find.py ../bench "*Bench.cpp")',
119 ],
120 'sources!': [
121 '../bench/GMBench.cpp',
122 ],
123 },
124 {
caryclark7da2e552015-05-12 08:36:48 -0700125 'target_name': 'chrome_fuzz',
126 'type': 'executable',
127 'sources': [
128 '../tools/chrome_fuzz.cpp',
129 ],
130 'dependencies': [
131 'skia_lib.gyp:skia_lib',
132 ],
133 },
134 {
mtklein9ac68ee2014-06-20 11:29:20 -0700135 'target_name': 'crash_handler',
136 'type': 'static_library',
137 'sources': [ '../tools/CrashHandler.cpp' ],
138 'dependencies': [ 'skia_lib.gyp:skia_lib' ],
139 'direct_dependent_settings': {
140 'include_dirs': [ '../tools' ],
141 },
scroggoac928f22015-02-10 08:13:26 -0800142 'conditions': [
143 [ 'skia_is_bot', {
144 'defines': [ 'SK_CRASH_HANDLER' ],
145 }],
146 ],
147
mtklein9ac68ee2014-06-20 11:29:20 -0700148 'all_dependent_settings': {
149 'msvs_settings': {
150 'VCLinkerTool': {
151 'AdditionalDependencies': [ 'Dbghelp.lib' ],
152 }
153 },
154 }
155 },
156 {
157 'target_name': 'resources',
158 'type': 'static_library',
159 'sources': [ '../tools/Resources.cpp' ],
160 'dependencies': [
161 'flags.gyp:flags',
162 'skia_lib.gyp:skia_lib',
163 ],
164 'direct_dependent_settings': {
tfarina20108912014-06-21 10:54:17 -0700165 'include_dirs': [ '../tools', ],
166 },
167 },
168 {
169 'target_name': 'sk_tool_utils',
170 'type': 'static_library',
caryclark5fb6bd42014-06-23 11:25:00 -0700171 'sources': [
172 '../tools/sk_tool_utils.cpp',
173 '../tools/sk_tool_utils_font.cpp',
caryclarkf1d41512016-02-09 10:30:22 -0800174 '../tools/random_parse_path.cpp',
caryclark5fb6bd42014-06-23 11:25:00 -0700175 ],
Cary Clark992c7b02014-07-31 08:58:44 -0400176 'include_dirs': [
herb62a69c22015-09-29 11:47:45 -0700177 '../include/private',
Cary Clark992c7b02014-07-31 08:58:44 -0400178 '../src/fonts',
robertphillips2f0dbc72015-08-20 05:15:06 -0700179 '../src/core',
Cary Clark992c7b02014-07-31 08:58:44 -0400180 ],
tfarina20108912014-06-21 10:54:17 -0700181 'dependencies': [
mtkleinada972d2014-07-31 08:31:56 -0700182 'resources',
Cary Clark992c7b02014-07-31 08:58:44 -0400183 'flags.gyp:flags',
tfarina20108912014-06-21 10:54:17 -0700184 'skia_lib.gyp:skia_lib',
185 ],
186 'direct_dependent_settings': {
187 'include_dirs': [ '../tools', ],
mtklein9ac68ee2014-06-20 11:29:20 -0700188 },
189 },
190 {
191 'target_name' : 'timer',
192 'type': 'static_library',
mtklein33eefcd2015-10-23 07:02:06 -0700193 'sources': [ '../tools/timer/Timer.cpp' ],
mtklein9ac68ee2014-06-20 11:29:20 -0700194 'direct_dependent_settings': {
195 'include_dirs': ['../tools/timer'],
196 },
mtklein33eefcd2015-10-23 07:02:06 -0700197 'dependencies': [ 'skia_lib.gyp:skia_lib' ],
mtklein9ac68ee2014-06-20 11:29:20 -0700198 },
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000199 {
200 'target_name': 'skdiff',
201 'type': 'executable',
202 'sources': [
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000203 '../tools/skdiff.cpp',
204 '../tools/skdiff.h',
205 '../tools/skdiff_html.cpp',
206 '../tools/skdiff_html.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000207 '../tools/skdiff_main.cpp',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000208 '../tools/skdiff_utils.cpp',
209 '../tools/skdiff_utils.h',
210 ],
211 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000212 'skia_lib.gyp:skia_lib',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000213 ],
214 },
215 {
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +0000216 'target_name': 'skpmaker',
217 'type': 'executable',
218 'sources': [
219 '../tools/skpmaker.cpp',
220 ],
221 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700222 '../include/private',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +0000223 '../src/core',
224 ],
225 'dependencies': [
226 'flags.gyp:flags',
227 'skia_lib.gyp:skia_lib',
228 ],
229 },
230 {
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000231 'target_name': 'skimagediff',
232 'type': 'executable',
233 'sources': [
234 '../tools/skdiff.cpp',
235 '../tools/skdiff.h',
236 '../tools/skdiff_html.cpp',
237 '../tools/skdiff_html.h',
238 '../tools/skdiff_image.cpp',
239 '../tools/skdiff_utils.cpp',
240 '../tools/skdiff_utils.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000241 ],
242 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000243 'skia_lib.gyp:skia_lib',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000244 ],
245 },
246 {
247 'target_name': 'skhello',
248 'type': 'executable',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000249 'dependencies': [
borenet48087572015-04-02 12:16:36 -0700250 'flags.gyp:flags',
251 'pdf.gyp:pdf',
djsollen@google.com52f02972013-06-03 12:10:19 +0000252 'skia_lib.gyp:skia_lib',
borenet@google.combb522882013-06-17 15:39:43 +0000253 ],
borenet48087572015-04-02 12:16:36 -0700254 'sources': [
255 '../tools/skhello.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000256 ],
257 },
258 {
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +0000259 'target_name': 'skpinfo',
260 'type': 'executable',
261 'sources': [
262 '../tools/skpinfo.cpp',
263 ],
264 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700265 '../include/private',
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +0000266 '../src/core/',
267 ],
268 'dependencies': [
269 'flags.gyp:flags',
270 'skia_lib.gyp:skia_lib',
271 ],
272 },
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000273 {
robertphillips9c4909b2015-10-19 06:39:17 -0700274 'target_name': 'imgblur',
275 'type': 'executable',
276 'sources': [
277 '../tools/imgblur.cpp',
278 ],
279 'include_dirs': [
280 '../include/core',
281 ],
282 'dependencies': [
283 'flags.gyp:flags',
284 'flags.gyp:flags_common',
285 'skia_lib.gyp:skia_lib',
286 'tools.gyp:sk_tool_utils',
287 ],
288 },
289 {
robertphillips5ce341f2015-09-18 09:04:43 -0700290 'target_name': 'imgslice',
291 'type': 'executable',
292 'sources': [
293 '../tools/imgslice.cpp',
294 ],
295 'include_dirs': [
296 '../include/core',
297 ],
298 'dependencies': [
299 'flags.gyp:flags',
300 'skia_lib.gyp:skia_lib',
301 ],
302 },
303 {
msarett6a738212016-03-04 13:27:35 -0800304 'target_name': 'get_images_from_skps',
305 'type': 'executable',
306 'sources': [
307 '../tools/get_images_from_skps.cpp',
308 ],
309 'include_dirs': [
310 '../src/core',
311 '../include/private',
312 ],
313 'dependencies': [
314 'flags.gyp:flags',
rmistry8d965a62016-04-25 10:35:03 -0700315 'jsoncpp.gyp:jsoncpp',
msarett6a738212016-03-04 13:27:35 -0800316 'skia_lib.gyp:skia_lib',
317 ],
msarett3478f752016-02-12 14:47:09 -0800318 },
319 {
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000320 'target_name': 'gpuveto',
321 'type': 'executable',
322 'sources': [
323 '../tools/gpuveto.cpp',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000324 ],
325 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700326 '../include/private',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000327 '../src/core/',
328 '../src/images',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000329 ],
330 'dependencies': [
331 'flags.gyp:flags',
332 'skia_lib.gyp:skia_lib',
333 ],
334 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000335 {
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000336 'target_name': 'lua_app',
337 'type': 'executable',
338 'sources': [
339 '../tools/lua/lua_app.cpp',
340 '../src/utils/SkLua.cpp',
341 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000342 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700343 '../include/private',
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000344 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
345 '../src/gpu/',
346 '../src/core/',
347 ],
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000348 'dependencies': [
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000349 'effects.gyp:effects',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000350 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000351 'lua.gyp:lua',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000352 'pdf.gyp:pdf',
353 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000354 'skia_lib.gyp:skia_lib',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000355 ],
356 },
357 {
reed@google.comdff7e112013-05-15 19:34:20 +0000358 'target_name': 'lua_pictures',
359 'type': 'executable',
360 'sources': [
361 '../tools/lua/lua_pictures.cpp',
362 '../src/utils/SkLuaCanvas.cpp',
reed@google.com74ce6f02013-05-22 15:13:18 +0000363 '../src/utils/SkLua.cpp',
reed@google.comdff7e112013-05-15 19:34:20 +0000364 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000365 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700366 '../include/private',
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000367 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
368 '../src/gpu/',
369 '../src/core/',
370 ],
reed@google.comdff7e112013-05-15 19:34:20 +0000371 'dependencies': [
reed@google.comdff7e112013-05-15 19:34:20 +0000372 'effects.gyp:effects',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000373 'flags.gyp:flags',
reed@google.comdff7e112013-05-15 19:34:20 +0000374 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000375 'lua.gyp:lua',
reed@google.comdff7e112013-05-15 19:34:20 +0000376 'tools.gyp:picture_utils',
mike@reedtribe.orgfb858242013-06-08 16:39:44 +0000377 'pdf.gyp:pdf',
reed@google.comdff7e112013-05-15 19:34:20 +0000378 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000379 'skia_lib.gyp:skia_lib',
reed@google.comdff7e112013-05-15 19:34:20 +0000380 ],
381 },
382 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000383 'target_name': 'picture_utils',
384 'type': 'static_library',
385 'sources': [
386 '../tools/picture_utils.cpp',
borenet@google.come21795e2012-09-14 14:34:28 +0000387 '../tools/picture_utils.h',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000388 ],
halcanary90602132016-04-20 08:49:53 -0700389 'include_dirs': [
brianosman3c579dc2016-04-19 09:18:11 -0700390 '../src/core/',
391 ],
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000392 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000393 'skia_lib.gyp:skia_lib',
junov@chromium.org777442d2012-06-12 14:56:36 +0000394 ],
reed@google.come52d2912013-05-15 20:01:07 +0000395 'direct_dependent_settings': {
396 'include_dirs': [
tfarinabcbc1782014-06-18 14:32:48 -0700397 '../tools/',
reed@google.come52d2912013-05-15 20:01:07 +0000398 ],
399 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000400 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000401 {
402 'target_name': 'pinspect',
403 'type': 'executable',
404 'sources': [
405 '../tools/pinspect.cpp',
406 ],
407 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000408 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000409 'skia_lib.gyp:skia_lib',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000410 ],
411 },
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000412 {
mtkleinafb43792014-08-19 15:55:55 -0700413 'target_name': 'proc_stats',
halcanary0d154ee2014-08-11 11:33:51 -0700414 'type': 'static_library',
415 'sources': [
416 '../tools/ProcStats.h',
417 '../tools/ProcStats.cpp',
418 ],
419 'direct_dependent_settings': {
420 'include_dirs': [ '../tools', ],
421 },
422 },
djsollen0b17d6c2014-11-13 12:52:35 -0800423 {
joshualittcdad12f2016-02-08 07:08:21 -0800424 'target_name': 'url_data_manager',
425 'type': 'static_library',
426 'sources': [
427 '../tools/UrlDataManager.h',
428 '../tools/UrlDataManager.cpp',
429 ],
430 'dependencies': [
431 'skia_lib.gyp:skia_lib',
432 ],
433 'include_dirs': [
434 '../include/private',
435 '../src/core',
436 ],
437 'direct_dependent_settings': {
438 'include_dirs': [
439 '../include/private',
mtklein2d225e32016-02-29 09:05:32 -0800440 '../tools',
joshualittcdad12f2016-02-08 07:08:21 -0800441 ],
442 },
443 },
444 {
halcanary00d44e02016-05-03 15:09:52 -0700445 'target_name': 'using_skia_and_harfbuzz',
446 'type': 'executable',
447 'sources': [ '../tools/using_skia_and_harfbuzz.cpp' ],
448 'dependencies': [
449 'skia_lib.gyp:skia_lib',
450 'pdf.gyp:pdf',
451 'harfbuzz.gyp:harfbuzz',
452 ],
453 'cflags': [ '-w', ],
454 'msvs_settings': { 'VCCLCompilerTool': { 'WarningLevel': '0', }, },
455 'xcode_settings': { 'WARNING_CFLAGS': [ '-w', ], },
456 },
457 {
msarettaabe15e2016-05-13 07:32:59 -0700458 'target_name': 'visualize_color_gamut',
459 'type': 'executable',
460 'sources': [
461 '../tools/visualize_color_gamut.cpp',
462 ],
463 'include_dirs': [
464 '../src/core',
465 '../include/private',
466 '../tools',
467 ],
468 'dependencies': [
469 'flags.gyp:flags',
470 'resources',
471 'skia_lib.gyp:skia_lib',
472 ],
473 },
474 {
caryclark5ef194c2015-08-31 09:22:38 -0700475 'target_name': 'whitelist_typefaces',
476 'type': 'executable',
477 'sources': [
478 '../tools/whitelist_typefaces.cpp',
479 ],
480 'dependencies': [
481 'skia_lib.gyp:skia_lib',
482 ],
483 },
484 {
joshualitt3ebd0502016-02-09 07:18:08 -0800485 'target_name': 'thermal_manager',
486 'type': 'static_library',
487 'sources': [
488 '../tools/ThermalManager.cpp',
489 ],
490 'dependencies': [
491 'skia_lib.gyp:skia_lib',
492 ],
493 'direct_dependent_settings': {
494 'include_dirs': [ '../tools', ],
495 },
496 },
497 {
djsollen0b17d6c2014-11-13 12:52:35 -0800498 'target_name': 'test_public_includes',
499 'type': 'static_library',
djsollenc87dd2c2014-11-14 11:11:46 -0800500 # Ensure that our public headers don't have unused params so that clients
501 # (e.g. Android) that include us can build with these warnings enabled
502 'cflags!': [ '-Wno-unused-parameter' ],
djsollen0b17d6c2014-11-13 12:52:35 -0800503 'variables': {
504 'includes_to_test': [
msarett506e19a2015-11-13 06:11:09 -0800505 '<(skia_include_path)/android',
djsollen0b17d6c2014-11-13 12:52:35 -0800506 '<(skia_include_path)/animator',
507 '<(skia_include_path)/c',
msarett33bee092015-11-11 12:43:07 -0800508 '<(skia_include_path)/codec',
djsollen0b17d6c2014-11-13 12:52:35 -0800509 '<(skia_include_path)/config',
510 '<(skia_include_path)/core',
511 '<(skia_include_path)/effects',
512 '<(skia_include_path)/gpu',
513 '<(skia_include_path)/images',
514 '<(skia_include_path)/pathops',
djsollen0b17d6c2014-11-13 12:52:35 -0800515 '<(skia_include_path)/ports',
fmalita02c8fd02015-02-06 08:43:51 -0800516 '<(skia_include_path)/svg/parser',
djsollen0b17d6c2014-11-13 12:52:35 -0800517 '<(skia_include_path)/utils',
518 '<(skia_include_path)/views',
519 '<(skia_include_path)/xml',
520 ],
521 'paths_to_ignore': [
522 '<(skia_include_path)/gpu/gl/GrGLConfig_chrome.h',
bungeman0b1de262015-06-17 07:55:59 -0700523 '<(skia_include_path)/ports/SkFontMgr_fontconfig.h',
djsollen0b17d6c2014-11-13 12:52:35 -0800524 '<(skia_include_path)/ports/SkTypeface_mac.h',
525 '<(skia_include_path)/ports/SkTypeface_win.h',
526 '<(skia_include_path)/utils/ios',
527 '<(skia_include_path)/utils/mac',
528 '<(skia_include_path)/utils/win',
529 '<(skia_include_path)/utils/SkDebugUtils.h',
530 '<(skia_include_path)/utils/SkJSONCPP.h',
djsollen0b17d6c2014-11-13 12:52:35 -0800531 '<(skia_include_path)/views/SkOSWindow_iOS.h',
532 '<(skia_include_path)/views/SkOSWindow_Mac.h',
djsollen0b17d6c2014-11-13 12:52:35 -0800533 '<(skia_include_path)/views/SkOSWindow_SDL.h',
534 '<(skia_include_path)/views/SkOSWindow_Unix.h',
535 '<(skia_include_path)/views/SkOSWindow_Win.h',
536 '<(skia_include_path)/views/SkWindow.h',
Greg Daniel164a9f02016-02-22 09:56:40 -0500537 '<(skia_include_path)/gpu/vk',
djsollen0b17d6c2014-11-13 12:52:35 -0800538 ],
djsollen7c9c4a72016-03-30 08:28:02 -0700539 'output_file' : [
540 '<(INTERMEDIATE_DIR)/test_public_includes.cpp',
541 ],
djsollen0b17d6c2014-11-13 12:52:35 -0800542 },
543 'include_dirs': [
544 '<@(includes_to_test)',
545 ],
546 'sources': [
547 # unused_param_test.cpp is generated by the action below.
548 '<(INTERMEDIATE_DIR)/test_public_includes.cpp',
549 ],
550 'actions': [
551 {
552 'action_name': 'generate_includes_cpp',
553 'inputs': [
554 '../tools/generate_includes_cpp.py',
555 '<@(includes_to_test)',
djsollen0b17d6c2014-11-13 12:52:35 -0800556 ],
557 'outputs': [
djsollen7c9c4a72016-03-30 08:28:02 -0700558 '<@(output_file)',
559 # Force the script to always run so that we pick up when files have
560 # been deleted.
561 'filename_that_does_not_exists_but_forces_rebuild.txt',
djsollen0b17d6c2014-11-13 12:52:35 -0800562 ],
563 'action': ['python', '../tools/generate_includes_cpp.py',
564 '--ignore', '<(paths_to_ignore)',
djsollen7c9c4a72016-03-30 08:28:02 -0700565 '<@(output_file)', '<@(includes_to_test)'],
djsollen0b17d6c2014-11-13 12:52:35 -0800566 },
567 ],
568 },
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000569 ],
570 'conditions': [
zachr@google.com28c27c82013-06-20 17:15:05 +0000571 ['skia_shared_lib',
572 {
573 'targets': [
574 {
575 'target_name': 'sklua',
576 'product_name': 'skia',
577 'product_prefix': '',
578 'product_dir': '<(PRODUCT_DIR)/',
579 'type': 'shared_library',
580 'sources': [
581 '../src/utils/SkLuaCanvas.cpp',
582 '../src/utils/SkLua.cpp',
583 ],
584 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700585 '../include/private',
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000586 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
587 '../src/gpu/',
588 '../src/core/',
zachr@google.com28c27c82013-06-20 17:15:05 +0000589 '../third_party/lua/src/',
590 ],
591 'dependencies': [
592 'lua.gyp:lua',
593 'pdf.gyp:pdf',
594 'skia_lib.gyp:skia_lib',
595 ],
596 'conditions': [
597 ['skia_os != "win"',
598 {
599 'ldflags': [
600 '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags',
601 ],
602 },
603 ],
604 ],
605 },
606 ],
607 },
608 ],
borenet@google.com2d137b62013-03-08 23:13:33 +0000609 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000610 {
611 'targets': [
612 {
613 'target_name': 'win_dbghelp',
614 'type': 'static_library',
615 'defines': [
616 'SK_CDB_PATH="<(skia_win_debuggers_path)"',
617 ],
618 'sources': [
619 '../tools/win_dbghelp.h',
620 '../tools/win_dbghelp.cpp',
621 ],
622 },
623 ],
624 },
625 ],
bungeman@google.com07a69f82013-04-02 14:12:38 +0000626 ['skia_os == "win"',
627 {
628 'targets': [
629 {
630 'target_name': 'win_lcid',
631 'type': 'executable',
632 'sources': [
633 '../tools/win_lcid.cpp',
634 ],
635 },
636 ],
637 },
638 ],
Cary Clark992c7b02014-07-31 08:58:44 -0400639 ['skia_os == "mac"',
640 {
641 'targets': [
642 {
643 'target_name': 'create_test_font',
644 'type': 'executable',
645 'sources': [
646 '../tools/create_test_font.cpp',
647 ],
648 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700649 '../include/private',
Cary Clark992c7b02014-07-31 08:58:44 -0400650 '../src/core',
651 ],
652 'dependencies': [
653 'flags.gyp:flags',
654 'skia_lib.gyp:skia_lib',
655 'resources',
656 ],
657 },
658 ],
659 },
660 ],
halcanary7e669542016-04-19 08:46:50 -0700661 ['skia_mesa and skia_os in ["linux", "mac"]',
halcanaryf0da1382016-04-18 11:50:07 -0700662 {
663 'targets': [
664 {
665 'target_name': 'fiddle_build_test',
666 'type': 'executable',
667 'sources': [
668 '../tools/fiddle/draw.cpp',
669 '../tools/fiddle/fiddle_main.cpp',
670 '../tools/fiddle/fiddle_main.h',
671 ],
672 'dependencies': [
673 'skia_lib.gyp:skia_lib',
674 'pdf.gyp:pdf',
halcanary90602132016-04-20 08:49:53 -0700675 'gputest.gyp:osmesa',
halcanaryf0da1382016-04-18 11:50:07 -0700676 ],
677 'defines': [ 'FIDDLE_BUILD_TEST' ],
halcanaryf0da1382016-04-18 11:50:07 -0700678 },
679 ],
680 },
681 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000682 ],
683}