blob: d7b2e131e77d6a800921398591cb80799c7e0cc5 [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': [
edisonn@google.com8ba9a832013-01-18 18:06:22 +000020 'bench_pictures',
caryclark7da2e552015-05-12 08:36:48 -070021 'chrome_fuzz',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +000022 'dump_record',
edisonn@google.com8ba9a832013-01-18 18:06:22 +000023 'filter',
mtklein60c04752015-07-08 10:06:01 -070024 'flatten',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +000025 'gpuveto',
commit-bot@chromium.org5ccdf012014-01-02 18:51:38 +000026 'lua_app',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +000027 'lua_pictures',
reeda816d952014-12-17 13:08:17 -080028 'imgconv',
edisonn@google.com8ba9a832013-01-18 18:06:22 +000029 'pinspect',
30 'render_pdfs',
31 'render_pictures',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000032 'skdiff',
commit-bot@chromium.org5ccdf012014-01-02 18:51:38 +000033 'skhello',
fmalita93957f42015-01-30 09:03:29 -080034 'skp2svg',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +000035 'skpdiff',
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +000036 'skpinfo',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +000037 'skpmaker',
halcanary@google.comfed30372013-10-04 12:46:45 +000038 'test_image_decoder',
djsollen0b17d6c2014-11-13 12:52:35 -080039 'test_public_includes',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000040 ],
zachr@google.com28c27c82013-06-20 17:15:05 +000041 'conditions': [
42 ['skia_shared_lib',
43 {
44 'dependencies': [
45 'sklua', # This can only be built if skia is built as a shared library
46 ],
47 },
48 ],
49 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +000050 },
mtklein9a0d6d62014-12-15 12:47:51 -080051 {
caryclark7da2e552015-05-12 08:36:48 -070052 'target_name': 'chrome_fuzz',
53 'type': 'executable',
54 'sources': [
55 '../tools/chrome_fuzz.cpp',
56 ],
57 'dependencies': [
58 'skia_lib.gyp:skia_lib',
59 ],
60 },
61 {
mtklein9ac68ee2014-06-20 11:29:20 -070062 'target_name': 'crash_handler',
63 'type': 'static_library',
64 'sources': [ '../tools/CrashHandler.cpp' ],
65 'dependencies': [ 'skia_lib.gyp:skia_lib' ],
66 'direct_dependent_settings': {
67 'include_dirs': [ '../tools' ],
68 },
scroggoac928f22015-02-10 08:13:26 -080069 'conditions': [
70 [ 'skia_is_bot', {
71 'defines': [ 'SK_CRASH_HANDLER' ],
72 }],
73 ],
74
mtklein9ac68ee2014-06-20 11:29:20 -070075 'all_dependent_settings': {
76 'msvs_settings': {
77 'VCLinkerTool': {
78 'AdditionalDependencies': [ 'Dbghelp.lib' ],
79 }
80 },
81 }
82 },
83 {
84 'target_name': 'resources',
85 'type': 'static_library',
86 'sources': [ '../tools/Resources.cpp' ],
87 'dependencies': [
88 'flags.gyp:flags',
89 'skia_lib.gyp:skia_lib',
90 ],
91 'direct_dependent_settings': {
tfarina20108912014-06-21 10:54:17 -070092 'include_dirs': [ '../tools', ],
93 },
94 },
95 {
96 'target_name': 'sk_tool_utils',
97 'type': 'static_library',
caryclark5fb6bd42014-06-23 11:25:00 -070098 'sources': [
99 '../tools/sk_tool_utils.cpp',
100 '../tools/sk_tool_utils_font.cpp',
101 ],
Cary Clark992c7b02014-07-31 08:58:44 -0400102 'include_dirs': [
103 '../src/fonts',
robertphillips2f0dbc72015-08-20 05:15:06 -0700104 '../src/core',
Cary Clark992c7b02014-07-31 08:58:44 -0400105 ],
tfarina20108912014-06-21 10:54:17 -0700106 'dependencies': [
mtkleinada972d2014-07-31 08:31:56 -0700107 'resources',
Cary Clark992c7b02014-07-31 08:58:44 -0400108 'flags.gyp:flags',
tfarina20108912014-06-21 10:54:17 -0700109 'skia_lib.gyp:skia_lib',
110 ],
111 'direct_dependent_settings': {
112 'include_dirs': [ '../tools', ],
mtklein9ac68ee2014-06-20 11:29:20 -0700113 },
114 },
115 {
116 'target_name' : 'timer',
117 'type': 'static_library',
118 'sources': [
119 '../tools/timer/Timer.cpp',
120 '../tools/timer/TimerData.cpp',
121 ],
122 'include_dirs': [
mtkleincd1f2da2015-07-28 08:55:14 -0700123 '../include/private',
mtklein9ac68ee2014-06-20 11:29:20 -0700124 '../src/core',
125 '../src/gpu',
126 ],
127 'direct_dependent_settings': {
128 'include_dirs': ['../tools/timer'],
129 },
130 'dependencies': [
131 'skia_lib.gyp:skia_lib',
132 'jsoncpp.gyp:jsoncpp',
133 ],
134 'conditions': [
135 ['skia_gpu == 1', {
136 'sources': [ '../tools/timer/GpuTimer.cpp' ],
137 }],
138 [ 'skia_os in ["mac", "ios"]', {
139 'sources': [ '../tools/timer/SysTimer_mach.cpp' ],
140 }],
141 [ 'skia_os == "win"', {
142 'sources': [ '../tools/timer/SysTimer_windows.cpp' ],
143 }],
144 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android", "chromeos"]', {
145 'sources': [ '../tools/timer/SysTimer_posix.cpp' ],
146 }],
147 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
148 'link_settings': { 'libraries': [ '-lrt' ] },
149 }],
150 ],
151 },
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000152 {
153 'target_name': 'skdiff',
154 'type': 'executable',
155 'sources': [
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000156 '../tools/skdiff.cpp',
157 '../tools/skdiff.h',
158 '../tools/skdiff_html.cpp',
159 '../tools/skdiff_html.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000160 '../tools/skdiff_main.cpp',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000161 '../tools/skdiff_utils.cpp',
162 '../tools/skdiff_utils.h',
163 ],
164 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000165 'skia_lib.gyp:skia_lib',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000166 ],
bungemanf3c15b72015-08-19 11:56:48 -0700167 'xcode_settings': {
168 'conditions': [
169 [ 'skia_osx_deployment_target==""', {
170 'MACOSX_DEPLOYMENT_TARGET': '10.7', # -mmacos-version-min, passed in env to ld.
171 }, {
172 'MACOSX_DEPLOYMENT_TARGET': '<(skia_osx_deployment_target)',
173 }],
174 ],
175 'CLANG_CXX_LIBRARY': 'libc++',
176 },
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000177 },
178 {
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000179 'target_name': 'skpdiff',
180 'type': 'executable',
181 'sources': [
182 '../tools/skpdiff/skpdiff_main.cpp',
183 '../tools/skpdiff/SkDiffContext.cpp',
184 '../tools/skpdiff/SkImageDiffer.cpp',
185 '../tools/skpdiff/SkPMetric.cpp',
186 '../tools/skpdiff/skpdiff_util.cpp',
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000187 ],
188 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700189 '../include/private',
djsollen@google.comefc51b72013-11-12 18:29:17 +0000190 '../src/core/', # needed for SkTLList.h
stephana21b342d2014-08-13 10:36:06 -0700191 '../tools/', # needed for picture_utils::replace_char
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000192 ],
193 'dependencies': [
tfarina1c4d5782014-06-22 16:13:00 -0700194 'flags.gyp:flags',
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000195 'skia_lib.gyp:skia_lib',
stephana21b342d2014-08-13 10:36:06 -0700196 'tools.gyp:picture_utils',
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000197 ],
198 'cflags': [
199 '-O3',
200 ],
201 'conditions': [
202 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
203 'link_settings': {
204 'libraries': [
205 '-lrt',
borenet283714f2015-06-25 08:05:19 -0700206 '-pthread',
zachr@google.com5b3e2b92013-07-22 18:46:45 +0000207 ],
208 },
209 }],
210 ['skia_opencl', {
211 'sources': [
212 '../tools/skpdiff/SkCLImageDiffer.cpp',
213 '../tools/skpdiff/SkDifferentPixelsMetric_opencl.cpp',
214 ],
215 'conditions': [
216 [ 'skia_os == "mac"', {
217 'link_settings': {
218 'libraries': [
219 '$(SDKROOT)/System/Library/Frameworks/OpenCL.framework',
220 ]
221 }
222 }, {
223 'link_settings': {
224 'libraries': [
225 '-lOpenCL',
226 ],
227 },
228 }],
229 ],
230 }, { # !skia_opencl
231 'sources': [
232 '../tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp',
233 ],
234 }],
235 ],
236 },
237 {
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +0000238 'target_name': 'skpmaker',
239 'type': 'executable',
240 'sources': [
241 '../tools/skpmaker.cpp',
242 ],
243 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700244 '../include/private',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +0000245 '../src/core',
246 ],
247 'dependencies': [
248 'flags.gyp:flags',
249 'skia_lib.gyp:skia_lib',
250 ],
251 },
252 {
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000253 'target_name': 'skimagediff',
254 'type': 'executable',
255 'sources': [
256 '../tools/skdiff.cpp',
257 '../tools/skdiff.h',
258 '../tools/skdiff_html.cpp',
259 '../tools/skdiff_html.h',
260 '../tools/skdiff_image.cpp',
261 '../tools/skdiff_utils.cpp',
262 '../tools/skdiff_utils.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000263 ],
264 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000265 'skia_lib.gyp:skia_lib',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000266 ],
267 },
268 {
269 'target_name': 'skhello',
270 'type': 'executable',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000271 'dependencies': [
borenet48087572015-04-02 12:16:36 -0700272 'flags.gyp:flags',
273 'pdf.gyp:pdf',
djsollen@google.com52f02972013-06-03 12:10:19 +0000274 'skia_lib.gyp:skia_lib',
borenet@google.combb522882013-06-17 15:39:43 +0000275 ],
borenet48087572015-04-02 12:16:36 -0700276 'sources': [
277 '../tools/skhello.cpp',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000278 ],
279 },
280 {
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +0000281 'target_name': 'skpinfo',
282 'type': 'executable',
283 'sources': [
284 '../tools/skpinfo.cpp',
285 ],
286 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700287 '../include/private',
commit-bot@chromium.org6f4fb0f2014-03-03 19:18:39 +0000288 '../src/core/',
289 ],
290 'dependencies': [
291 'flags.gyp:flags',
292 'skia_lib.gyp:skia_lib',
293 ],
294 },
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000295 {
mtklein60c04752015-07-08 10:06:01 -0700296 'target_name': 'flatten',
297 'type': 'executable',
298 'sources': [
299 '../tools/flatten.cpp',
300 ],
301 'dependencies': [
302 'skia_lib.gyp:skia_lib',
303 ],
304 },
305 {
fmalita2aafe6f2015-02-06 12:51:10 -0800306 # Superseded by dm, should be removed.
fmalita93957f42015-01-30 09:03:29 -0800307 'target_name': 'skp2svg',
308 'type': 'executable',
309 'sources': [
fmalita2aafe6f2015-02-06 12:51:10 -0800310 '../src/svg/skp2svg.cpp',
fmalita93957f42015-01-30 09:03:29 -0800311 '../tools/LazyDecodeBitmap.cpp',
312 ],
313 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700314 '../include/private',
fmalita93957f42015-01-30 09:03:29 -0800315 '../src/core/',
316 '../src/lazy/',
317 '../tools/',
318 ],
319 'dependencies': [
320 'flags.gyp:flags',
321 'skia_lib.gyp:skia_lib',
fmalita2aafe6f2015-02-06 12:51:10 -0800322 'svg.gyp:svg',
fmalita93957f42015-01-30 09:03:29 -0800323 'xml.gyp:xml',
324 ],
325 },
326 {
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000327 'target_name': 'gpuveto',
328 'type': 'executable',
329 'sources': [
330 '../tools/gpuveto.cpp',
331 '../tools/LazyDecodeBitmap.cpp',
332 ],
333 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700334 '../include/private',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000335 '../src/core/',
336 '../src/images',
337 '../src/lazy',
commit-bot@chromium.orgfe788472014-04-28 13:19:34 +0000338 ],
339 'dependencies': [
340 'flags.gyp:flags',
341 'skia_lib.gyp:skia_lib',
342 ],
343 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000344 {
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000345 'target_name': 'lua_app',
346 'type': 'executable',
347 'sources': [
348 '../tools/lua/lua_app.cpp',
349 '../src/utils/SkLua.cpp',
350 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000351 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700352 '../include/private',
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000353 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
354 '../src/gpu/',
355 '../src/core/',
356 ],
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000357 'dependencies': [
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000358 'effects.gyp:effects',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000359 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000360 'lua.gyp:lua',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000361 'pdf.gyp:pdf',
362 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000363 'skia_lib.gyp:skia_lib',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000364 ],
365 },
366 {
reed@google.comdff7e112013-05-15 19:34:20 +0000367 'target_name': 'lua_pictures',
368 'type': 'executable',
369 'sources': [
370 '../tools/lua/lua_pictures.cpp',
371 '../src/utils/SkLuaCanvas.cpp',
reed@google.com74ce6f02013-05-22 15:13:18 +0000372 '../src/utils/SkLua.cpp',
reed@google.comdff7e112013-05-15 19:34:20 +0000373 ],
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000374 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700375 '../include/private',
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000376 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
377 '../src/gpu/',
378 '../src/core/',
379 ],
reed@google.comdff7e112013-05-15 19:34:20 +0000380 'dependencies': [
reed@google.comdff7e112013-05-15 19:34:20 +0000381 'effects.gyp:effects',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000382 'flags.gyp:flags',
reed@google.comdff7e112013-05-15 19:34:20 +0000383 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000384 'lua.gyp:lua',
reed@google.comdff7e112013-05-15 19:34:20 +0000385 'tools.gyp:picture_renderer',
386 'tools.gyp:picture_utils',
mike@reedtribe.orgfb858242013-06-08 16:39:44 +0000387 'pdf.gyp:pdf',
reed@google.comdff7e112013-05-15 19:34:20 +0000388 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000389 'skia_lib.gyp:skia_lib',
reed@google.comdff7e112013-05-15 19:34:20 +0000390 ],
391 },
392 {
junov@chromium.org777442d2012-06-12 14:56:36 +0000393 'target_name': 'render_pictures',
394 'type': 'executable',
395 'sources': [
396 '../tools/render_pictures_main.cpp',
keyar@chromium.orga2333d92012-07-16 17:29:16 +0000397 ],
398 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700399 '../include/private',
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000400 '../src/core',
401 '../src/images',
402 '../src/lazy',
keyar@chromium.orga2333d92012-07-16 17:29:16 +0000403 '../src/pipe/utils/',
junov@chromium.org777442d2012-06-12 14:56:36 +0000404 ],
405 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000406 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000407 'skia_lib.gyp:skia_lib',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000408 'tools.gyp:picture_renderer',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000409 'tools.gyp:picture_utils',
410 ],
411 },
412 {
reed@google.com006db0f2012-06-27 19:33:29 +0000413 'target_name': 'bench_pictures',
414 'type': 'executable',
415 'sources': [
tfarinaf168b862014-06-19 12:32:29 -0700416 '../bench/BenchLogger.cpp',
417 '../bench/BenchLogger.h',
commit-bot@chromium.org37c772a2014-05-29 17:10:24 +0000418 '../tools/PictureBenchmark.cpp',
419 '../tools/PictureResultsWriter.h',
keyar@chromium.orgcf6c44c2012-07-09 19:37:40 +0000420 '../tools/bench_pictures_main.cpp',
reed@google.com006db0f2012-06-27 19:33:29 +0000421 ],
422 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700423 '../include/private',
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000424 '../src/core/',
reed@google.com006db0f2012-06-27 19:33:29 +0000425 '../bench',
scroggo@google.comcc690202013-03-04 19:56:21 +0000426 '../src/lazy/',
reed@google.com006db0f2012-06-27 19:33:29 +0000427 ],
428 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700429 'timer',
430 'crash_handler',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000431 'flags.gyp:flags',
commit-bot@chromium.org37c772a2014-05-29 17:10:24 +0000432 'jsoncpp.gyp:jsoncpp',
djsollen@google.com52f02972013-06-03 12:10:19 +0000433 'skia_lib.gyp:skia_lib',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000434 'tools.gyp:picture_renderer',
mtklein30e6e2a2014-06-18 11:44:15 -0700435 'tools.gyp:picture_utils',
scroggo@google.com9a412522012-09-07 15:21:18 +0000436 ],
scroggo3eb258d2014-07-17 06:58:28 -0700437 'conditions': [
438 ['skia_android_framework == 1', {
439 'libraries': [ '-lskia' ],
440 }],
441 ],
keyar@chromium.org163b5672012-08-01 17:53:29 +0000442 },
443 {
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000444 'target_name': 'dump_record',
445 'type': 'executable',
446 'sources': [
447 '../tools/dump_record.cpp',
commit-bot@chromium.org85fd1932014-05-15 16:10:37 +0000448 '../tools/DumpRecord.cpp',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000449 '../tools/LazyDecodeBitmap.cpp',
450 ],
451 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700452 '../include/private',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000453 '../src/core/',
454 '../src/images',
455 '../src/lazy',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000456 ],
457 'dependencies': [
mtklein9ac68ee2014-06-20 11:29:20 -0700458 'timer',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000459 'flags.gyp:flags',
commit-bot@chromium.org545a21a2014-05-06 19:45:18 +0000460 'skia_lib.gyp:skia_lib',
461 ],
462 },
463 {
borenet@google.comefb1d772012-10-10 19:45:51 +0000464 'target_name': 'picture_renderer',
465 'type': 'static_library',
466 'sources': [
commit-bot@chromium.org90c0fbd2014-05-09 03:18:41 +0000467 '../tools/image_expectations.h',
468 '../tools/image_expectations.cpp',
commit-bot@chromium.org56799e22013-07-16 18:21:46 +0000469 '../tools/LazyDecodeBitmap.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000470 '../tools/PictureRenderer.h',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000471 '../tools/PictureRenderer.cpp',
scroggo@google.com161e1ba2013-03-04 16:41:06 +0000472 '../tools/PictureRenderingFlags.h',
473 '../tools/PictureRenderingFlags.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000474 '../tools/CopyTilesRenderer.h',
475 '../tools/CopyTilesRenderer.cpp',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000476 '../src/pipe/utils/SamplePipeControllers.h',
477 '../src/pipe/utils/SamplePipeControllers.cpp',
borenet@google.comefb1d772012-10-10 19:45:51 +0000478 ],
479 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700480 '../include/private',
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000481 '../src/core',
482 '../src/images',
483 '../src/lazy',
borenet@google.comefb1d772012-10-10 19:45:51 +0000484 '../src/pipe/utils/',
485 '../src/utils/',
486 ],
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000487 'direct_dependent_settings': {
488 'include_dirs': [
commit-bot@chromium.org90c0fbd2014-05-09 03:18:41 +0000489 # needed for JSON headers used within image_expectations.h
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000490 '../third_party/externals/jsoncpp-chromium/overrides/include/',
491 '../third_party/externals/jsoncpp/include/',
492 ],
493 },
borenet@google.comefb1d772012-10-10 19:45:51 +0000494 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000495 'flags.gyp:flags',
496 'jsoncpp.gyp:jsoncpp',
djsollen@google.com52f02972013-06-03 12:10:19 +0000497 'skia_lib.gyp:skia_lib',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000498 'tools.gyp:picture_utils',
borenet@google.comefb1d772012-10-10 19:45:51 +0000499 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000500 'conditions': [
501 ['skia_gpu == 1',
502 {
503 'include_dirs' : [
504 '../src/gpu',
505 ],
robertphillips@google.com94d8f1e2013-12-18 17:25:33 +0000506 'dependencies': [
507 'gputest.gyp:skgputest',
508 ],
djsollene4545212014-11-13 11:12:41 -0800509 'export_dependent_settings': [
510 'gputest.gyp:skgputest',
511 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000512 },
513 ],
514 ],
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000515 },
516 {
edisonn@google.comc319abe2012-11-01 19:52:38 +0000517 'target_name': 'render_pdfs',
518 'type': 'executable',
519 'sources': [
520 '../tools/render_pdfs_main.cpp',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000521 ],
522 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700523 '../include/private',
halcanary0bef17a2014-08-07 07:24:47 -0700524 '../src/core',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000525 '../src/pipe/utils/',
526 '../src/utils/',
527 ],
528 'dependencies': [
halcanary0bef17a2014-08-07 07:24:47 -0700529 'flags.gyp:flags',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000530 'pdf.gyp:pdf',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000531 'skia_lib.gyp:skia_lib',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000532 'tools.gyp:picture_utils',
mtkleinafb43792014-08-19 15:55:55 -0700533 'tools.gyp:proc_stats',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000534 ],
edisonn@google.com184487c2013-03-08 18:00:16 +0000535 'conditions': [
borenet@google.com2d137b62013-03-08 23:13:33 +0000536 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com184487c2013-03-08 18:00:16 +0000537 {
538 'dependencies': [
539 'tools.gyp:win_dbghelp',
540 ],
541 },
542 ],
543 # VS static libraries don't have a linker option. We must set a global
544 # project linker option, or add it to each executable.
545 ['skia_win_debuggers_path and skia_os == "win" and '
Brian Salomon4239fc22015-07-27 09:10:36 -0400546 'skia_arch_type == "x86_64"',
edisonn@google.com184487c2013-03-08 18:00:16 +0000547 {
548 'msvs_settings': {
549 'VCLinkerTool': {
550 'AdditionalDependencies': [
551 '<(skia_win_debuggers_path)/x64/DbgHelp.lib',
552 ],
553 },
554 },
555 },
556 ],
557 ['skia_win_debuggers_path and skia_os == "win" and '
Brian Salomon4239fc22015-07-27 09:10:36 -0400558 'skia_arch_type == "x86"',
edisonn@google.com184487c2013-03-08 18:00:16 +0000559 {
560 'msvs_settings': {
561 'VCLinkerTool': {
562 'AdditionalDependencies': [
563 '<(skia_win_debuggers_path)/DbgHelp.lib',
564 ],
565 },
566 },
567 },
568 ],
569 ],
edisonn@google.comc319abe2012-11-01 19:52:38 +0000570 },
571 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000572 'target_name': 'picture_utils',
573 'type': 'static_library',
574 'sources': [
575 '../tools/picture_utils.cpp',
borenet@google.come21795e2012-09-14 14:34:28 +0000576 '../tools/picture_utils.h',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000577 ],
578 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000579 'skia_lib.gyp:skia_lib',
junov@chromium.org777442d2012-06-12 14:56:36 +0000580 ],
reed@google.come52d2912013-05-15 20:01:07 +0000581 'direct_dependent_settings': {
582 'include_dirs': [
tfarinabcbc1782014-06-18 14:32:48 -0700583 '../tools/',
reed@google.come52d2912013-05-15 20:01:07 +0000584 ],
585 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000586 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000587 {
588 'target_name': 'pinspect',
589 'type': 'executable',
590 'sources': [
591 '../tools/pinspect.cpp',
592 ],
593 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000594 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000595 'skia_lib.gyp:skia_lib',
commit-bot@chromium.org826ec812013-06-12 18:28:36 +0000596 'tools.gyp:picture_renderer',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000597 ],
598 },
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000599 {
reeda816d952014-12-17 13:08:17 -0800600 'target_name': 'imgconv',
601 'type': 'executable',
602 'sources': [
603 '../tools/imgconv.cpp',
604 ],
605 'dependencies': [
606 'flags.gyp:flags',
607 'skia_lib.gyp:skia_lib',
608 ],
609 },
610 {
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000611 'target_name': 'filter',
612 'type': 'executable',
613 'include_dirs' : [
mtkleinfd8ed692015-07-28 09:54:52 -0700614 '../include/private',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000615 '../src/core',
fmalita@google.com4df16732013-06-13 21:25:45 +0000616 '../src/utils/debugger',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000617 ],
618 'sources': [
619 '../tools/filtermain.cpp',
fmalita@google.com86681b32013-06-13 20:59:14 +0000620 '../src/utils/debugger/SkDrawCommand.h',
621 '../src/utils/debugger/SkDrawCommand.cpp',
622 '../src/utils/debugger/SkDebugCanvas.h',
623 '../src/utils/debugger/SkDebugCanvas.cpp',
624 '../src/utils/debugger/SkObjectParser.h',
625 '../src/utils/debugger/SkObjectParser.cpp',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000626 ],
627 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000628 'skia_lib.gyp:skia_lib',
djsollen@google.coma09e8832012-11-13 18:50:33 +0000629 'tools.gyp:picture_utils',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000630 ],
631 },
halcanary@google.comfed30372013-10-04 12:46:45 +0000632 {
633 'target_name': 'test_image_decoder',
634 'type': 'executable',
635 'sources': [
636 '../tools/test_image_decoder.cpp',
637 ],
638 'dependencies': [
639 'skia_lib.gyp:skia_lib',
640 ],
641 },
halcanary0d154ee2014-08-11 11:33:51 -0700642 {
mtkleinafb43792014-08-19 15:55:55 -0700643 'target_name': 'proc_stats',
halcanary0d154ee2014-08-11 11:33:51 -0700644 'type': 'static_library',
645 'sources': [
646 '../tools/ProcStats.h',
647 '../tools/ProcStats.cpp',
648 ],
649 'direct_dependent_settings': {
650 'include_dirs': [ '../tools', ],
651 },
652 },
djsollen0b17d6c2014-11-13 12:52:35 -0800653 {
654 'target_name': 'test_public_includes',
655 'type': 'static_library',
djsollenc87dd2c2014-11-14 11:11:46 -0800656 # Ensure that our public headers don't have unused params so that clients
657 # (e.g. Android) that include us can build with these warnings enabled
658 'cflags!': [ '-Wno-unused-parameter' ],
djsollen0b17d6c2014-11-13 12:52:35 -0800659 'variables': {
660 'includes_to_test': [
661 '<(skia_include_path)/animator',
662 '<(skia_include_path)/c',
663 '<(skia_include_path)/config',
664 '<(skia_include_path)/core',
665 '<(skia_include_path)/effects',
666 '<(skia_include_path)/gpu',
667 '<(skia_include_path)/images',
668 '<(skia_include_path)/pathops',
djsollen0b17d6c2014-11-13 12:52:35 -0800669 '<(skia_include_path)/pipe',
670 '<(skia_include_path)/ports',
fmalita02c8fd02015-02-06 08:43:51 -0800671 '<(skia_include_path)/svg/parser',
djsollen0b17d6c2014-11-13 12:52:35 -0800672 '<(skia_include_path)/utils',
673 '<(skia_include_path)/views',
674 '<(skia_include_path)/xml',
675 ],
676 'paths_to_ignore': [
677 '<(skia_include_path)/gpu/gl/GrGLConfig_chrome.h',
mtkleina669bc72015-02-02 12:22:07 -0800678 '<(skia_include_path)/ports/SkAtomics_std.h',
679 '<(skia_include_path)/ports/SkAtomics_atomic.h',
mtkleina64c48f2015-01-21 13:13:31 -0800680 '<(skia_include_path)/ports/SkAtomics_sync.h',
bungeman0b1de262015-06-17 07:55:59 -0700681 '<(skia_include_path)/ports/SkFontMgr_fontconfig.h',
mtkleina64c48f2015-01-21 13:13:31 -0800682 '<(skia_include_path)/ports/SkMutex_pthread.h',
683 '<(skia_include_path)/ports/SkMutex_win.h',
djsollen0b17d6c2014-11-13 12:52:35 -0800684 '<(skia_include_path)/ports/SkTypeface_mac.h',
685 '<(skia_include_path)/ports/SkTypeface_win.h',
686 '<(skia_include_path)/utils/ios',
687 '<(skia_include_path)/utils/mac',
688 '<(skia_include_path)/utils/win',
689 '<(skia_include_path)/utils/SkDebugUtils.h',
690 '<(skia_include_path)/utils/SkJSONCPP.h',
djsollen0b17d6c2014-11-13 12:52:35 -0800691 '<(skia_include_path)/views/animated',
692 '<(skia_include_path)/views/SkOSWindow_Android.h',
693 '<(skia_include_path)/views/SkOSWindow_iOS.h',
694 '<(skia_include_path)/views/SkOSWindow_Mac.h',
djsollen0b17d6c2014-11-13 12:52:35 -0800695 '<(skia_include_path)/views/SkOSWindow_SDL.h',
696 '<(skia_include_path)/views/SkOSWindow_Unix.h',
697 '<(skia_include_path)/views/SkOSWindow_Win.h',
698 '<(skia_include_path)/views/SkWindow.h',
djsollen0b17d6c2014-11-13 12:52:35 -0800699 ],
700 },
701 'include_dirs': [
702 '<@(includes_to_test)',
703 ],
704 'sources': [
705 # unused_param_test.cpp is generated by the action below.
706 '<(INTERMEDIATE_DIR)/test_public_includes.cpp',
707 ],
708 'actions': [
709 {
710 'action_name': 'generate_includes_cpp',
711 'inputs': [
712 '../tools/generate_includes_cpp.py',
713 '<@(includes_to_test)',
714 # This causes the gyp generator on mac to fail
715 #'<@(paths_to_ignore)',
716 ],
717 'outputs': [
718 '<(INTERMEDIATE_DIR)/test_public_includes.cpp',
719 ],
720 'action': ['python', '../tools/generate_includes_cpp.py',
721 '--ignore', '<(paths_to_ignore)',
722 '<@(_outputs)', '<@(includes_to_test)'],
723 },
724 ],
725 },
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000726 ],
727 'conditions': [
zachr@google.com28c27c82013-06-20 17:15:05 +0000728 ['skia_shared_lib',
729 {
730 'targets': [
731 {
732 'target_name': 'sklua',
733 'product_name': 'skia',
734 'product_prefix': '',
735 'product_dir': '<(PRODUCT_DIR)/',
736 'type': 'shared_library',
737 'sources': [
738 '../src/utils/SkLuaCanvas.cpp',
739 '../src/utils/SkLua.cpp',
740 ],
741 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700742 '../include/private',
bsalomon@google.com4ebe3822014-02-26 20:22:32 +0000743 # Lua exposes GrReduceClip which in turn requires src/core for SkTLList
744 '../src/gpu/',
745 '../src/core/',
zachr@google.com28c27c82013-06-20 17:15:05 +0000746 '../third_party/lua/src/',
747 ],
748 'dependencies': [
749 'lua.gyp:lua',
750 'pdf.gyp:pdf',
751 'skia_lib.gyp:skia_lib',
752 ],
753 'conditions': [
754 ['skia_os != "win"',
755 {
756 'ldflags': [
757 '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags',
758 ],
759 },
760 ],
761 ],
762 },
763 ],
764 },
765 ],
borenet@google.com2d137b62013-03-08 23:13:33 +0000766 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000767 {
768 'targets': [
769 {
770 'target_name': 'win_dbghelp',
771 'type': 'static_library',
772 'defines': [
773 'SK_CDB_PATH="<(skia_win_debuggers_path)"',
774 ],
775 'sources': [
776 '../tools/win_dbghelp.h',
777 '../tools/win_dbghelp.cpp',
778 ],
779 },
780 ],
781 },
782 ],
bungeman@google.com07a69f82013-04-02 14:12:38 +0000783 ['skia_os == "win"',
784 {
785 'targets': [
786 {
787 'target_name': 'win_lcid',
788 'type': 'executable',
789 'sources': [
790 '../tools/win_lcid.cpp',
791 ],
792 },
793 ],
794 },
795 ],
Cary Clark992c7b02014-07-31 08:58:44 -0400796 ['skia_os == "mac"',
797 {
798 'targets': [
799 {
800 'target_name': 'create_test_font',
801 'type': 'executable',
802 'sources': [
803 '../tools/create_test_font.cpp',
804 ],
805 'include_dirs': [
mtkleinfd8ed692015-07-28 09:54:52 -0700806 '../include/private',
Cary Clark992c7b02014-07-31 08:58:44 -0400807 '../src/core',
808 ],
809 'dependencies': [
810 'flags.gyp:flags',
811 'skia_lib.gyp:skia_lib',
812 'resources',
813 ],
814 },
815 ],
816 },
817 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000818 ],
819}