blob: 423f969a7c2af7e11d835bd60d22f1dcec2b5081 [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',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +000022 'gpuveto',
robertphillips9c4909b2015-10-19 06:39:17 -070023 'imgblur',
24 'imgconv',
25 '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.orgc7355982014-01-02 19:42:15 +000031 'skpdiff',
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 ],
46 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +000047 },
mtklein9a0d6d62014-12-15 12:47:51 -080048 {
mtklein2f2903d2015-11-18 11:06:37 -080049 'target_name': 'dump_record',
50 'type': 'executable',
51 'sources': [
52 '../tools/dump_record.cpp',
53 '../tools/DumpRecord.cpp',
54 ],
55 'include_dirs': [
56 '../include/private',
57 '../src/core',
58 ],
59 'dependencies': [
60 'flags.gyp:flags',
61 'lazy_decode_bitmap',
62 'skia_lib.gyp:skia_lib',
63 ],
64 },
65 {
caryclark7da2e552015-05-12 08:36:48 -070066 'target_name': 'chrome_fuzz',
67 'type': 'executable',
68 'sources': [
69 '../tools/chrome_fuzz.cpp',
70 ],
71 'dependencies': [
72 'skia_lib.gyp:skia_lib',
73 ],
74 },
75 {
mtklein9ac68ee2014-06-20 11:29:20 -070076 'target_name': 'crash_handler',
77 'type': 'static_library',
78 'sources': [ '../tools/CrashHandler.cpp' ],
79 'dependencies': [ 'skia_lib.gyp:skia_lib' ],
80 'direct_dependent_settings': {
81 'include_dirs': [ '../tools' ],
82 },
scroggoac928f22015-02-10 08:13:26 -080083 'conditions': [
84 [ 'skia_is_bot', {
85 'defines': [ 'SK_CRASH_HANDLER' ],
86 }],
87 ],
88
mtklein9ac68ee2014-06-20 11:29:20 -070089 'all_dependent_settings': {
90 'msvs_settings': {
91 'VCLinkerTool': {
92 'AdditionalDependencies': [ 'Dbghelp.lib' ],
93 }
94 },
95 }
96 },
97 {
98 'target_name': 'resources',
99 'type': 'static_library',
100 'sources': [ '../tools/Resources.cpp' ],
101 'dependencies': [
102 'flags.gyp:flags',
103 'skia_lib.gyp:skia_lib',
104 ],
105 'direct_dependent_settings': {
tfarina20108912014-06-21 10:54:17 -0700106 'include_dirs': [ '../tools', ],
107 },
108 },
109 {
110 'target_name': 'sk_tool_utils',
111 'type': 'static_library',
caryclark5fb6bd42014-06-23 11:25:00 -0700112 'sources': [
113 '../tools/sk_tool_utils.cpp',
114 '../tools/sk_tool_utils_font.cpp',
115 ],
Cary Clark992c7b02014-07-31 08:58:44 -0400116 'include_dirs': [
herb62a69c22015-09-29 11:47:45 -0700117 '../include/private',
Cary Clark992c7b02014-07-31 08:58:44 -0400118 '../src/fonts',
robertphillips2f0dbc72015-08-20 05:15:06 -0700119 '../src/core',
Cary Clark992c7b02014-07-31 08:58:44 -0400120 ],
tfarina20108912014-06-21 10:54:17 -0700121 'dependencies': [
mtkleinada972d2014-07-31 08:31:56 -0700122 'resources',
Cary Clark992c7b02014-07-31 08:58:44 -0400123 'flags.gyp:flags',
tfarina20108912014-06-21 10:54:17 -0700124 'skia_lib.gyp:skia_lib',
125 ],
126 'direct_dependent_settings': {
127 'include_dirs': [ '../tools', ],
mtklein9ac68ee2014-06-20 11:29:20 -0700128 },
129 },
130 {
131 'target_name' : 'timer',
132 'type': 'static_library',
mtklein33eefcd2015-10-23 07:02:06 -0700133 'sources': [ '../tools/timer/Timer.cpp' ],
mtklein9ac68ee2014-06-20 11:29:20 -0700134 'direct_dependent_settings': {
135 'include_dirs': ['../tools/timer'],
136 },
mtklein33eefcd2015-10-23 07:02:06 -0700137 'dependencies': [ 'skia_lib.gyp:skia_lib' ],
mtklein9ac68ee2014-06-20 11:29:20 -0700138 },
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000139 {
140 'target_name': 'skdiff',
141 'type': 'executable',
142 'sources': [
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000143 '../tools/skdiff.cpp',
144 '../tools/skdiff.h',
145 '../tools/skdiff_html.cpp',
146 '../tools/skdiff_html.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000147 '../tools/skdiff_main.cpp',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000148 '../tools/skdiff_utils.cpp',
149 '../tools/skdiff_utils.h',
150 ],
151 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000152 'skia_lib.gyp:skia_lib',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000153 ],
154 },
155 {
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000156 'target_name': 'skpdiff',
157 'type': 'executable',
158 'sources': [
159 '../tools/skpdiff/skpdiff_main.cpp',
160 '../tools/skpdiff/SkDiffContext.cpp',
161 '../tools/skpdiff/SkImageDiffer.cpp',
162 '../tools/skpdiff/SkPMetric.cpp',
163 '../tools/skpdiff/skpdiff_util.cpp',
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000164 ],
165 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700166 '../include/private',
djsollen@google.comefc51b72013-11-12 18:29:17 +0000167 '../src/core/', # needed for SkTLList.h
stephana21b342d2014-08-13 10:36:06 -0700168 '../tools/', # needed for picture_utils::replace_char
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000169 ],
170 'dependencies': [
tfarina1c4d5782014-06-22 16:13:00 -0700171 'flags.gyp:flags',
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000172 'skia_lib.gyp:skia_lib',
stephana21b342d2014-08-13 10:36:06 -0700173 'tools.gyp:picture_utils',
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000174 ],
175 'cflags': [
176 '-O3',
177 ],
178 'conditions': [
179 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
180 'link_settings': {
181 'libraries': [
182 '-lrt',
borenet283714f2015-06-25 08:05:19 -0700183 '-pthread',
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000184 ],
185 },
186 }],
187 ['skia_opencl', {
188 'sources': [
189 '../tools/skpdiff/SkCLImageDiffer.cpp',
190 '../tools/skpdiff/SkDifferentPixelsMetric_opencl.cpp',
191 ],
192 'conditions': [
193 [ 'skia_os == "mac"', {
194 'link_settings': {
195 'libraries': [
196 '$(SDKROOT)/System/Library/Frameworks/OpenCL.framework',
197 ]
198 }
199 }, {
200 'link_settings': {
201 'libraries': [
202 '-lOpenCL',
203 ],
204 },
205 }],
206 ],
207 }, { # !skia_opencl
208 'sources': [
209 '../tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp',
210 ],
211 }],
212 ],
213 },
214 {
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +0000215 'target_name': 'skpmaker',
216 'type': 'executable',
217 'sources': [
218 '../tools/skpmaker.cpp',
219 ],
220 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700221 '../include/private',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +0000222 '../src/core',
223 ],
224 'dependencies': [
225 'flags.gyp:flags',
226 'skia_lib.gyp:skia_lib',
227 ],
228 },
229 {
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000230 'target_name': 'skimagediff',
231 'type': 'executable',
232 'sources': [
233 '../tools/skdiff.cpp',
234 '../tools/skdiff.h',
235 '../tools/skdiff_html.cpp',
236 '../tools/skdiff_html.h',
237 '../tools/skdiff_image.cpp',
238 '../tools/skdiff_utils.cpp',
239 '../tools/skdiff_utils.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000240 ],
241 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000242 'skia_lib.gyp:skia_lib',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000243 ],
244 },
245 {
246 'target_name': 'skhello',
247 'type': 'executable',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000248 'dependencies': [
borenet48087572015-04-02 12:16:36 -0700249 'flags.gyp:flags',
250 'pdf.gyp:pdf',
djsollen@google.com52f02972013-06-03 12:10:19 +0000251 'skia_lib.gyp:skia_lib',
borenet@google.combb522882013-06-17 15:39:43 +0000252 ],
borenet48087572015-04-02 12:16:36 -0700253 'sources': [
254 '../tools/skhello.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000255 ],
256 },
257 {
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +0000258 'target_name': 'skpinfo',
259 'type': 'executable',
260 'sources': [
261 '../tools/skpinfo.cpp',
262 ],
263 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700264 '../include/private',
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +0000265 '../src/core/',
266 ],
267 'dependencies': [
268 'flags.gyp:flags',
269 'skia_lib.gyp:skia_lib',
270 ],
271 },
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000272 {
robertphillips9c4909b2015-10-19 06:39:17 -0700273 'target_name': 'imgblur',
274 'type': 'executable',
275 'sources': [
276 '../tools/imgblur.cpp',
277 ],
278 'include_dirs': [
279 '../include/core',
280 ],
281 'dependencies': [
282 'flags.gyp:flags',
283 'flags.gyp:flags_common',
284 'skia_lib.gyp:skia_lib',
285 'tools.gyp:sk_tool_utils',
286 ],
287 },
288 {
robertphillips5ce341f2015-09-18 09:04:43 -0700289 'target_name': 'imgslice',
290 'type': 'executable',
291 'sources': [
292 '../tools/imgslice.cpp',
293 ],
294 'include_dirs': [
295 '../include/core',
296 ],
297 'dependencies': [
298 'flags.gyp:flags',
299 'skia_lib.gyp:skia_lib',
300 ],
301 },
302 {
mtklein0c768a22015-10-20 14:29:10 -0700303 'target_name': 'lazy_decode_bitmap',
304 'type': 'static_library',
305 'sources': [ '../tools/LazyDecodeBitmap.cpp' ],
306 'include_dirs': [
307 '../include/private',
308 '../src/core',
309 '../src/lazy',
310 ],
311 'dependencies': [
312 'flags.gyp:flags',
313 'skia_lib.gyp:skia_lib'
314 ],
fmalita93957f42015-01-30 09:03:29 -0800315 },
316 {
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000317 'target_name': 'gpuveto',
318 'type': 'executable',
319 'sources': [
320 '../tools/gpuveto.cpp',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000321 ],
322 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700323 '../include/private',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000324 '../src/core/',
325 '../src/images',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000326 ],
327 'dependencies': [
mtklein0c768a22015-10-20 14:29:10 -0700328 'lazy_decode_bitmap',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000329 'flags.gyp:flags',
330 'skia_lib.gyp:skia_lib',
331 ],
332 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000333 {
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000334 'target_name': 'lua_app',
335 'type': 'executable',
336 'sources': [
337 '../tools/lua/lua_app.cpp',
338 '../src/utils/SkLua.cpp',
339 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000340 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700341 '../include/private',
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000342 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
343 '../src/gpu/',
344 '../src/core/',
345 ],
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000346 'dependencies': [
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000347 'effects.gyp:effects',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000348 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000349 'lua.gyp:lua',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000350 'pdf.gyp:pdf',
351 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000352 'skia_lib.gyp:skia_lib',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000353 ],
354 },
355 {
reed@google.comdff7e112013-05-15 19:34:20 +0000356 'target_name': 'lua_pictures',
357 'type': 'executable',
358 'sources': [
359 '../tools/lua/lua_pictures.cpp',
360 '../src/utils/SkLuaCanvas.cpp',
reed@google.com74ce6f02013-05-22 15:13:18 +0000361 '../src/utils/SkLua.cpp',
reed@google.comdff7e112013-05-15 19:34:20 +0000362 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000363 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700364 '../include/private',
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000365 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
366 '../src/gpu/',
367 '../src/core/',
368 ],
reed@google.comdff7e112013-05-15 19:34:20 +0000369 'dependencies': [
mtklein0c768a22015-10-20 14:29:10 -0700370 'lazy_decode_bitmap',
reed@google.comdff7e112013-05-15 19:34:20 +0000371 'effects.gyp:effects',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000372 'flags.gyp:flags',
reed@google.comdff7e112013-05-15 19:34:20 +0000373 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000374 'lua.gyp:lua',
reed@google.comdff7e112013-05-15 19:34:20 +0000375 'tools.gyp:picture_utils',
mike@reedtribe.orgfb858242013-06-08 16:39:44 +0000376 'pdf.gyp:pdf',
reed@google.comdff7e112013-05-15 19:34:20 +0000377 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000378 'skia_lib.gyp:skia_lib',
reed@google.comdff7e112013-05-15 19:34:20 +0000379 ],
380 },
381 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000382 'target_name': 'picture_utils',
383 'type': 'static_library',
384 'sources': [
385 '../tools/picture_utils.cpp',
borenet@google.come21795e2012-09-14 14:34:28 +0000386 '../tools/picture_utils.h',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000387 ],
388 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000389 'skia_lib.gyp:skia_lib',
junov@chromium.org777442d2012-06-12 14:56:36 +0000390 ],
reed@google.come52d2912013-05-15 20:01:07 +0000391 'direct_dependent_settings': {
392 'include_dirs': [
tfarinabcbc1782014-06-18 14:32:48 -0700393 '../tools/',
reed@google.come52d2912013-05-15 20:01:07 +0000394 ],
395 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000396 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000397 {
398 'target_name': 'pinspect',
399 'type': 'executable',
400 'sources': [
401 '../tools/pinspect.cpp',
402 ],
403 'dependencies': [
mtklein0c768a22015-10-20 14:29:10 -0700404 'lazy_decode_bitmap',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000405 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000406 'skia_lib.gyp:skia_lib',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000407 ],
408 },
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000409 {
reeda816d952014-12-17 13:08:17 -0800410 'target_name': 'imgconv',
411 'type': 'executable',
412 'sources': [
413 '../tools/imgconv.cpp',
414 ],
415 'dependencies': [
416 'flags.gyp:flags',
417 'skia_lib.gyp:skia_lib',
418 ],
419 },
420 {
halcanary@google.comfed30372013-10-04 12:46:45 +0000421 'target_name': 'test_image_decoder',
422 'type': 'executable',
423 'sources': [
424 '../tools/test_image_decoder.cpp',
425 ],
426 'dependencies': [
427 'skia_lib.gyp:skia_lib',
428 ],
429 },
halcanary0d154ee2014-08-11 11:33:51 -0700430 {
mtkleinafb43792014-08-19 15:55:55 -0700431 'target_name': 'proc_stats',
halcanary0d154ee2014-08-11 11:33:51 -0700432 'type': 'static_library',
433 'sources': [
434 '../tools/ProcStats.h',
435 '../tools/ProcStats.cpp',
436 ],
437 'direct_dependent_settings': {
438 'include_dirs': [ '../tools', ],
439 },
440 },
djsollen0b17d6c2014-11-13 12:52:35 -0800441 {
caryclark5ef194c2015-08-31 09:22:38 -0700442 'target_name': 'whitelist_typefaces',
443 'type': 'executable',
444 'sources': [
445 '../tools/whitelist_typefaces.cpp',
446 ],
447 'dependencies': [
448 'skia_lib.gyp:skia_lib',
449 ],
450 },
451 {
djsollen0b17d6c2014-11-13 12:52:35 -0800452 'target_name': 'test_public_includes',
453 'type': 'static_library',
djsollenc87dd2c2014-11-14 11:11:46 -0800454 # Ensure that our public headers don't have unused params so that clients
455 # (e.g. Android) that include us can build with these warnings enabled
456 'cflags!': [ '-Wno-unused-parameter' ],
djsollen0b17d6c2014-11-13 12:52:35 -0800457 'variables': {
458 'includes_to_test': [
msarett506e19a2015-11-13 06:11:09 -0800459 '<(skia_include_path)/android',
djsollen0b17d6c2014-11-13 12:52:35 -0800460 '<(skia_include_path)/animator',
461 '<(skia_include_path)/c',
msarett33bee092015-11-11 12:43:07 -0800462 '<(skia_include_path)/codec',
djsollen0b17d6c2014-11-13 12:52:35 -0800463 '<(skia_include_path)/config',
464 '<(skia_include_path)/core',
465 '<(skia_include_path)/effects',
466 '<(skia_include_path)/gpu',
467 '<(skia_include_path)/images',
468 '<(skia_include_path)/pathops',
djsollen0b17d6c2014-11-13 12:52:35 -0800469 '<(skia_include_path)/pipe',
470 '<(skia_include_path)/ports',
fmalita02c8fd02015-02-06 08:43:51 -0800471 '<(skia_include_path)/svg/parser',
djsollen0b17d6c2014-11-13 12:52:35 -0800472 '<(skia_include_path)/utils',
473 '<(skia_include_path)/views',
474 '<(skia_include_path)/xml',
475 ],
476 'paths_to_ignore': [
477 '<(skia_include_path)/gpu/gl/GrGLConfig_chrome.h',
bungeman0b1de262015-06-17 07:55:59 -0700478 '<(skia_include_path)/ports/SkFontMgr_fontconfig.h',
djsollen0b17d6c2014-11-13 12:52:35 -0800479 '<(skia_include_path)/ports/SkTypeface_mac.h',
480 '<(skia_include_path)/ports/SkTypeface_win.h',
481 '<(skia_include_path)/utils/ios',
482 '<(skia_include_path)/utils/mac',
483 '<(skia_include_path)/utils/win',
484 '<(skia_include_path)/utils/SkDebugUtils.h',
485 '<(skia_include_path)/utils/SkJSONCPP.h',
djsollen0b17d6c2014-11-13 12:52:35 -0800486 '<(skia_include_path)/views/animated',
487 '<(skia_include_path)/views/SkOSWindow_Android.h',
488 '<(skia_include_path)/views/SkOSWindow_iOS.h',
489 '<(skia_include_path)/views/SkOSWindow_Mac.h',
djsollen0b17d6c2014-11-13 12:52:35 -0800490 '<(skia_include_path)/views/SkOSWindow_SDL.h',
491 '<(skia_include_path)/views/SkOSWindow_Unix.h',
492 '<(skia_include_path)/views/SkOSWindow_Win.h',
493 '<(skia_include_path)/views/SkWindow.h',
djsollen0b17d6c2014-11-13 12:52:35 -0800494 ],
495 },
496 'include_dirs': [
497 '<@(includes_to_test)',
498 ],
499 'sources': [
500 # unused_param_test.cpp is generated by the action below.
501 '<(INTERMEDIATE_DIR)/test_public_includes.cpp',
502 ],
503 'actions': [
504 {
505 'action_name': 'generate_includes_cpp',
506 'inputs': [
507 '../tools/generate_includes_cpp.py',
508 '<@(includes_to_test)',
509 # This causes the gyp generator on mac to fail
510 #'<@(paths_to_ignore)',
511 ],
512 'outputs': [
513 '<(INTERMEDIATE_DIR)/test_public_includes.cpp',
514 ],
515 'action': ['python', '../tools/generate_includes_cpp.py',
516 '--ignore', '<(paths_to_ignore)',
517 '<@(_outputs)', '<@(includes_to_test)'],
518 },
519 ],
520 },
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000521 ],
522 'conditions': [
zachr@google.com28c27c82013-06-20 17:15:05 +0000523 ['skia_shared_lib',
524 {
525 'targets': [
526 {
527 'target_name': 'sklua',
528 'product_name': 'skia',
529 'product_prefix': '',
530 'product_dir': '<(PRODUCT_DIR)/',
531 'type': 'shared_library',
532 'sources': [
533 '../src/utils/SkLuaCanvas.cpp',
534 '../src/utils/SkLua.cpp',
535 ],
536 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700537 '../include/private',
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000538 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
539 '../src/gpu/',
540 '../src/core/',
zachr@google.com28c27c82013-06-20 17:15:05 +0000541 '../third_party/lua/src/',
542 ],
543 'dependencies': [
544 'lua.gyp:lua',
545 'pdf.gyp:pdf',
546 'skia_lib.gyp:skia_lib',
547 ],
548 'conditions': [
549 ['skia_os != "win"',
550 {
551 'ldflags': [
552 '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags',
553 ],
554 },
555 ],
556 ],
557 },
558 ],
559 },
560 ],
borenet@google.com2d137b62013-03-08 23:13:33 +0000561 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000562 {
563 'targets': [
564 {
565 'target_name': 'win_dbghelp',
566 'type': 'static_library',
567 'defines': [
568 'SK_CDB_PATH="<(skia_win_debuggers_path)"',
569 ],
570 'sources': [
571 '../tools/win_dbghelp.h',
572 '../tools/win_dbghelp.cpp',
573 ],
574 },
575 ],
576 },
577 ],
bungeman@google.com07a69f82013-04-02 14:12:38 +0000578 ['skia_os == "win"',
579 {
580 'targets': [
581 {
582 'target_name': 'win_lcid',
583 'type': 'executable',
584 'sources': [
585 '../tools/win_lcid.cpp',
586 ],
587 },
588 ],
589 },
590 ],
Cary Clark992c7b02014-07-31 08:58:44 -0400591 ['skia_os == "mac"',
592 {
593 'targets': [
594 {
595 'target_name': 'create_test_font',
596 'type': 'executable',
597 'sources': [
598 '../tools/create_test_font.cpp',
599 ],
600 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700601 '../include/private',
Cary Clark992c7b02014-07-31 08:58:44 -0400602 '../src/core',
603 ],
604 'dependencies': [
605 'flags.gyp:flags',
606 'skia_lib.gyp:skia_lib',
607 'resources',
608 ],
609 },
610 ],
611 },
612 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000613 ],
614}