blob: 049e3939e8ef4a801cbeae7fcf03ce7e65e868bf [file] [log] [blame]
epoger@google.comccdbd2c2011-06-02 14:38:23 +00001# GYP file to build various tools.
2#
3# To build on Linux:
4# ./gyp_skia tools.gyp && make tools
5#
epoger@google.comccdbd2c2011-06-02 14:38:23 +00006{
7 'includes': [
8 'apptype_console.gypi',
epoger@google.comccdbd2c2011-06-02 14:38:23 +00009 ],
10 'targets': [
11 {
12 # Build all executable targets defined below.
13 'target_name': 'tools',
14 'type': 'none',
15 'dependencies': [
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +000016 'bbh_shootout',
edisonn@google.com8ba9a832013-01-18 18:06:22 +000017 'bench_pictures',
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +000018 'bench_record',
edisonn@google.com8ba9a832013-01-18 18:06:22 +000019 'filter',
commit-bot@chromium.org5ccdf012014-01-02 18:51:38 +000020 'lua_app',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +000021 'lua_pictures',
edisonn@google.com8ba9a832013-01-18 18:06:22 +000022 'pinspect',
23 'render_pdfs',
24 'render_pictures',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000025 'skdiff',
commit-bot@chromium.org5ccdf012014-01-02 18:51:38 +000026 'skhello',
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +000027 'skpdiff',
28 'skpmaker',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000029 'skimage',
halcanary@google.comfed30372013-10-04 12:46:45 +000030 'test_image_decoder',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000031 ],
zachr@google.com28c27c82013-06-20 17:15:05 +000032 'conditions': [
33 ['skia_shared_lib',
34 {
35 'dependencies': [
36 'sklua', # This can only be built if skia is built as a shared library
37 ],
38 },
39 ],
40 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +000041 },
42 {
43 'target_name': 'skdiff',
44 'type': 'executable',
45 'sources': [
bungeman@google.come3c8ddf2012-12-05 20:13:12 +000046 '../tools/skdiff.cpp',
47 '../tools/skdiff.h',
48 '../tools/skdiff_html.cpp',
49 '../tools/skdiff_html.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +000050 '../tools/skdiff_main.cpp',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +000051 '../tools/skdiff_utils.cpp',
52 '../tools/skdiff_utils.h',
53 ],
54 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +000055 'skia_lib.gyp:skia_lib',
bungeman@google.come3c8ddf2012-12-05 20:13:12 +000056 ],
57 },
58 {
zachr@google.com5b3e2b92013-07-22 18:46:45 +000059 'target_name': 'skpdiff',
60 'type': 'executable',
61 'sources': [
62 '../tools/skpdiff/skpdiff_main.cpp',
63 '../tools/skpdiff/SkDiffContext.cpp',
64 '../tools/skpdiff/SkImageDiffer.cpp',
65 '../tools/skpdiff/SkPMetric.cpp',
66 '../tools/skpdiff/skpdiff_util.cpp',
67 '../tools/flags/SkCommandLineFlags.cpp',
68 ],
69 'include_dirs': [
djsollen@google.comefc51b72013-11-12 18:29:17 +000070 '../tools/flags',
71 '../src/core/', # needed for SkTLList.h
zachr@google.com5b3e2b92013-07-22 18:46:45 +000072 ],
73 'dependencies': [
74 'skia_lib.gyp:skia_lib',
75 ],
76 'cflags': [
77 '-O3',
78 ],
79 'conditions': [
80 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
81 'link_settings': {
82 'libraries': [
83 '-lrt',
84 ],
85 },
86 }],
87 ['skia_opencl', {
88 'sources': [
89 '../tools/skpdiff/SkCLImageDiffer.cpp',
90 '../tools/skpdiff/SkDifferentPixelsMetric_opencl.cpp',
91 ],
92 'conditions': [
93 [ 'skia_os == "mac"', {
94 'link_settings': {
95 'libraries': [
96 '$(SDKROOT)/System/Library/Frameworks/OpenCL.framework',
97 ]
98 }
99 }, {
100 'link_settings': {
101 'libraries': [
102 '-lOpenCL',
103 ],
104 },
105 }],
106 ],
107 }, { # !skia_opencl
108 'sources': [
109 '../tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp',
110 ],
111 }],
112 ],
113 },
114 {
commit-bot@chromium.orgc7355982014-01-02 19:42:15 +0000115 'target_name': 'skpmaker',
116 'type': 'executable',
117 'sources': [
118 '../tools/skpmaker.cpp',
119 ],
120 'include_dirs': [
121 '../src/core',
122 ],
123 'dependencies': [
124 'flags.gyp:flags',
125 'skia_lib.gyp:skia_lib',
126 ],
127 },
128 {
bungeman@google.come3c8ddf2012-12-05 20:13:12 +0000129 'target_name': 'skimagediff',
130 'type': 'executable',
131 'sources': [
132 '../tools/skdiff.cpp',
133 '../tools/skdiff.h',
134 '../tools/skdiff_html.cpp',
135 '../tools/skdiff_html.h',
136 '../tools/skdiff_image.cpp',
137 '../tools/skdiff_utils.cpp',
138 '../tools/skdiff_utils.h',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000139 ],
140 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000141 'skia_lib.gyp:skia_lib',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000142 ],
143 },
144 {
145 'target_name': 'skhello',
146 'type': 'executable',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000147 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000148 'skia_lib.gyp:skia_lib',
borenet@google.combb522882013-06-17 15:39:43 +0000149 ],
150 'conditions': [
151 [ 'skia_os == "nacl"', {
152 'sources': [
153 '../platform_tools/nacl/src/nacl_hello.cpp',
154 ],
155 }, {
156 'sources': [
157 '../tools/skhello.cpp',
158 ],
159 'dependencies': [
borenet@google.combb522882013-06-17 15:39:43 +0000160 'flags.gyp:flags',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000161 'pdf.gyp:pdf',
borenet@google.combb522882013-06-17 15:39:43 +0000162 ],
163 }],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000164 ],
165 },
166 {
167 'target_name': 'skimage',
168 'type': 'executable',
169 'sources': [
170 '../tools/skimage_main.cpp',
171 ],
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000172 'include_dirs': [
173 # For SkBitmapHasher.h
174 '../src/utils/',
175 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000176 'dependencies': [
scroggo@google.comb41ff952013-04-11 15:53:35 +0000177 'flags.gyp:flags',
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000178 'gm.gyp:gm_expectations',
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000179 'jsoncpp.gyp:jsoncpp',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000180 'skia_lib.gyp:skia_lib',
scroggo@google.com6843bdb2013-05-08 19:14:23 +0000181 'utils.gyp:utils',
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000182 ],
183 },
zachr@google.com28c27c82013-06-20 17:15:05 +0000184
junov@chromium.org777442d2012-06-12 14:56:36 +0000185 {
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000186 'target_name': 'lua_app',
187 'type': 'executable',
188 'sources': [
189 '../tools/lua/lua_app.cpp',
190 '../src/utils/SkLua.cpp',
191 ],
192 'dependencies': [
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000193 'effects.gyp:effects',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000194 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000195 'lua.gyp:lua',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000196 'pdf.gyp:pdf',
197 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000198 'skia_lib.gyp:skia_lib',
199 'utils.gyp:utils',
mike@reedtribe.org73d9f1c2013-06-09 01:54:56 +0000200 ],
201 },
202 {
reed@google.comdff7e112013-05-15 19:34:20 +0000203 'target_name': 'lua_pictures',
204 'type': 'executable',
205 'sources': [
206 '../tools/lua/lua_pictures.cpp',
207 '../src/utils/SkLuaCanvas.cpp',
reed@google.com74ce6f02013-05-22 15:13:18 +0000208 '../src/utils/SkLua.cpp',
reed@google.comdff7e112013-05-15 19:34:20 +0000209 ],
210 'dependencies': [
reed@google.comdff7e112013-05-15 19:34:20 +0000211 'effects.gyp:effects',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000212 'flags.gyp:flags',
reed@google.comdff7e112013-05-15 19:34:20 +0000213 'images.gyp:images',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000214 'lua.gyp:lua',
reed@google.comdff7e112013-05-15 19:34:20 +0000215 'tools.gyp:picture_renderer',
216 'tools.gyp:picture_utils',
mike@reedtribe.orgfb858242013-06-08 16:39:44 +0000217 'pdf.gyp:pdf',
reed@google.comdff7e112013-05-15 19:34:20 +0000218 'ports.gyp:ports',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000219 'skia_lib.gyp:skia_lib',
220 'utils.gyp:utils',
reed@google.comdff7e112013-05-15 19:34:20 +0000221 ],
222 },
223 {
junov@chromium.org777442d2012-06-12 14:56:36 +0000224 'target_name': 'render_pictures',
225 'type': 'executable',
226 'sources': [
227 '../tools/render_pictures_main.cpp',
keyar@chromium.orga2333d92012-07-16 17:29:16 +0000228 ],
229 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000230 '../src/core',
231 '../src/images',
232 '../src/lazy',
keyar@chromium.orga2333d92012-07-16 17:29:16 +0000233 '../src/pipe/utils/',
junov@chromium.org777442d2012-06-12 14:56:36 +0000234 ],
235 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000236 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000237 'skia_lib.gyp:skia_lib',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000238 'tools.gyp:picture_renderer',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000239 'tools.gyp:picture_utils',
240 ],
241 },
242 {
reed@google.com006db0f2012-06-27 19:33:29 +0000243 'target_name': 'bench_pictures',
244 'type': 'executable',
245 'sources': [
scroggo@google.com9a412522012-09-07 15:21:18 +0000246 '../bench/SkBenchLogger.h',
247 '../bench/SkBenchLogger.cpp',
248 '../bench/TimerData.h',
249 '../bench/TimerData.cpp',
keyar@chromium.orgcf6c44c2012-07-09 19:37:40 +0000250 '../tools/bench_pictures_main.cpp',
scroggo@google.com9a412522012-09-07 15:21:18 +0000251 '../tools/PictureBenchmark.cpp',
reed@google.com006db0f2012-06-27 19:33:29 +0000252 ],
253 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000254 '../src/core/',
reed@google.com006db0f2012-06-27 19:33:29 +0000255 '../bench',
scroggo@google.comcc690202013-03-04 19:56:21 +0000256 '../src/lazy/',
reed@google.com006db0f2012-06-27 19:33:29 +0000257 ],
258 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000259 'bench.gyp:bench_timer',
260 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000261 'skia_lib.gyp:skia_lib',
reed@google.com006db0f2012-06-27 19:33:29 +0000262 'tools.gyp:picture_utils',
keyar@chromium.org163b5672012-08-01 17:53:29 +0000263 'tools.gyp:picture_renderer',
scroggo@google.com9a412522012-09-07 15:21:18 +0000264 ],
keyar@chromium.org163b5672012-08-01 17:53:29 +0000265 },
266 {
commit-bot@chromium.org15ac3222014-01-13 12:03:47 +0000267 'target_name': 'bench_record',
268 'type': 'executable',
269 'sources': ['../tools/bench_record.cpp'],
270 'include_dirs': [ '../src/core/' ],
271 'dependencies': [
272 'flags.gyp:flags',
273 'skia_lib.gyp:skia_lib',
274 ],
275 },
276 {
borenet@google.comefb1d772012-10-10 19:45:51 +0000277 'target_name': 'picture_renderer',
278 'type': 'static_library',
279 'sources': [
commit-bot@chromium.org56799e22013-07-16 18:21:46 +0000280 '../tools/LazyDecodeBitmap.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000281 '../tools/PictureRenderer.h',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000282 '../tools/PictureRenderer.cpp',
scroggo@google.com161e1ba2013-03-04 16:41:06 +0000283 '../tools/PictureRenderingFlags.h',
284 '../tools/PictureRenderingFlags.cpp',
scroggo@google.com4a26d9d2012-11-07 18:01:46 +0000285 '../tools/CopyTilesRenderer.h',
286 '../tools/CopyTilesRenderer.cpp',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000287 '../src/pipe/utils/SamplePipeControllers.h',
288 '../src/pipe/utils/SamplePipeControllers.cpp',
borenet@google.comefb1d772012-10-10 19:45:51 +0000289 ],
290 'include_dirs': [
halcanary@google.com2c7c7ee2013-12-05 18:31:42 +0000291 '../src/core',
292 '../src/images',
293 '../src/lazy',
borenet@google.comefb1d772012-10-10 19:45:51 +0000294 '../src/pipe/utils/',
295 '../src/utils/',
296 ],
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000297 'direct_dependent_settings': {
298 'include_dirs': [
299 # needed for JSON headers used within PictureRenderer.h
300 '../third_party/externals/jsoncpp-chromium/overrides/include/',
301 '../third_party/externals/jsoncpp/include/',
302 ],
303 },
borenet@google.comefb1d772012-10-10 19:45:51 +0000304 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000305 'flags.gyp:flags',
306 'jsoncpp.gyp:jsoncpp',
djsollen@google.com52f02972013-06-03 12:10:19 +0000307 'skia_lib.gyp:skia_lib',
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000308 'tools.gyp:picture_utils',
borenet@google.comefb1d772012-10-10 19:45:51 +0000309 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000310 'conditions': [
311 ['skia_gpu == 1',
312 {
313 'include_dirs' : [
314 '../src/gpu',
315 ],
robertphillips@google.com94d8f1e2013-12-18 17:25:33 +0000316 'dependencies': [
317 'gputest.gyp:skgputest',
318 ],
robertphillips@google.comfe1b5362013-02-07 19:45:46 +0000319 },
320 ],
321 ],
keyar@chromium.org451bb9f2012-07-26 17:27:57 +0000322 },
323 {
edisonn@google.comc319abe2012-11-01 19:52:38 +0000324 'target_name': 'render_pdfs',
325 'type': 'executable',
326 'sources': [
327 '../tools/render_pdfs_main.cpp',
328 '../tools/PdfRenderer.cpp',
329 '../tools/PdfRenderer.h',
330 ],
331 'include_dirs': [
332 '../src/pipe/utils/',
333 '../src/utils/',
334 ],
335 'dependencies': [
edisonn@google.comc319abe2012-11-01 19:52:38 +0000336 'pdf.gyp:pdf',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000337 'skia_lib.gyp:skia_lib',
edisonn@google.comc319abe2012-11-01 19:52:38 +0000338 'tools.gyp:picture_utils',
339 ],
edisonn@google.com184487c2013-03-08 18:00:16 +0000340 'conditions': [
borenet@google.com2d137b62013-03-08 23:13:33 +0000341 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com184487c2013-03-08 18:00:16 +0000342 {
343 'dependencies': [
344 'tools.gyp:win_dbghelp',
345 ],
346 },
347 ],
348 # VS static libraries don't have a linker option. We must set a global
349 # project linker option, or add it to each executable.
350 ['skia_win_debuggers_path and skia_os == "win" and '
borenet@google.com2d137b62013-03-08 23:13:33 +0000351 'skia_arch_width == 64',
edisonn@google.com184487c2013-03-08 18:00:16 +0000352 {
353 'msvs_settings': {
354 'VCLinkerTool': {
355 'AdditionalDependencies': [
356 '<(skia_win_debuggers_path)/x64/DbgHelp.lib',
357 ],
358 },
359 },
360 },
361 ],
362 ['skia_win_debuggers_path and skia_os == "win" and '
borenet@google.com2d137b62013-03-08 23:13:33 +0000363 'skia_arch_width == 32',
edisonn@google.com184487c2013-03-08 18:00:16 +0000364 {
365 'msvs_settings': {
366 'VCLinkerTool': {
367 'AdditionalDependencies': [
368 '<(skia_win_debuggers_path)/DbgHelp.lib',
369 ],
370 },
371 },
372 },
373 ],
374 ],
edisonn@google.comc319abe2012-11-01 19:52:38 +0000375 },
376 {
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000377 'target_name': 'picture_utils',
378 'type': 'static_library',
379 'sources': [
380 '../tools/picture_utils.cpp',
borenet@google.come21795e2012-09-14 14:34:28 +0000381 '../tools/picture_utils.h',
twiz@google.coma31b8bb2012-06-22 18:24:56 +0000382 ],
383 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000384 'skia_lib.gyp:skia_lib',
junov@chromium.org777442d2012-06-12 14:56:36 +0000385 ],
reed@google.come52d2912013-05-15 20:01:07 +0000386 'direct_dependent_settings': {
387 'include_dirs': [
reed@google.com9bf99c32013-05-15 20:07:22 +0000388 '../tools/',
reed@google.come52d2912013-05-15 20:01:07 +0000389 ],
390 },
junov@chromium.org777442d2012-06-12 14:56:36 +0000391 },
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000392 {
393 'target_name': 'pinspect',
394 'type': 'executable',
395 'sources': [
396 '../tools/pinspect.cpp',
397 ],
398 'dependencies': [
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000399 'flags.gyp:flags',
djsollen@google.com52f02972013-06-03 12:10:19 +0000400 'skia_lib.gyp:skia_lib',
commit-bot@chromium.org826ec812013-06-12 18:28:36 +0000401 'tools.gyp:picture_renderer',
reed@google.com1bdf7fe2012-06-14 18:58:40 +0000402 ],
403 },
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000404 {
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000405 'target_name': 'bbh_shootout',
406 'type': 'executable',
407 'include_dirs': [
408 '../bench',
409 '../tools/'
410 ],
411 'sources': [
412 '../tools/bbh_shootout.cpp',
413
414 # Bench code:
415 '../bench/TimerData.h',
416 '../bench/TimerData.cpp',
417 ],
418 'dependencies': [
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000419 'bench.gyp:bench_timer',
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000420 'flags.gyp:flags',
commit-bot@chromium.orga3f882c2013-12-13 20:52:36 +0000421 'skia_lib.gyp:skia_lib',
422 'tools.gyp:picture_renderer',
423 'tools.gyp:picture_utils',
commit-bot@chromium.org6645cde2013-07-19 18:54:04 +0000424 ],
425 },
426 {
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000427 'target_name': 'filter',
428 'type': 'executable',
429 'include_dirs' : [
430 '../src/core',
fmalita@google.com4df16732013-06-13 21:25:45 +0000431 '../src/utils/debugger',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000432 ],
433 'sources': [
434 '../tools/filtermain.cpp',
robertphillips@google.comd3d377f2012-12-07 20:56:13 +0000435 '../tools/path_utils.h',
robertphillips@google.com3b0a9fe2013-01-31 15:56:22 +0000436 '../tools/path_utils.cpp',
fmalita@google.com86681b32013-06-13 20:59:14 +0000437 '../src/utils/debugger/SkDrawCommand.h',
438 '../src/utils/debugger/SkDrawCommand.cpp',
439 '../src/utils/debugger/SkDebugCanvas.h',
440 '../src/utils/debugger/SkDebugCanvas.cpp',
441 '../src/utils/debugger/SkObjectParser.h',
442 '../src/utils/debugger/SkObjectParser.cpp',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000443 ],
444 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +0000445 'skia_lib.gyp:skia_lib',
djsollen@google.coma09e8832012-11-13 18:50:33 +0000446 'tools.gyp:picture_utils',
robertphillips@google.comc7e4a5a2012-10-04 13:00:33 +0000447 ],
448 },
halcanary@google.comfed30372013-10-04 12:46:45 +0000449 {
450 'target_name': 'test_image_decoder',
451 'type': 'executable',
452 'sources': [
453 '../tools/test_image_decoder.cpp',
454 ],
455 'dependencies': [
456 'skia_lib.gyp:skia_lib',
457 ],
458 },
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000459 ],
460 'conditions': [
zachr@google.com28c27c82013-06-20 17:15:05 +0000461 ['skia_shared_lib',
462 {
463 'targets': [
464 {
465 'target_name': 'sklua',
466 'product_name': 'skia',
467 'product_prefix': '',
468 'product_dir': '<(PRODUCT_DIR)/',
469 'type': 'shared_library',
470 'sources': [
471 '../src/utils/SkLuaCanvas.cpp',
472 '../src/utils/SkLua.cpp',
473 ],
474 'include_dirs': [
475 '../third_party/lua/src/',
476 ],
477 'dependencies': [
478 'lua.gyp:lua',
479 'pdf.gyp:pdf',
480 'skia_lib.gyp:skia_lib',
481 ],
482 'conditions': [
483 ['skia_os != "win"',
484 {
485 'ldflags': [
486 '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags',
487 ],
488 },
489 ],
490 ],
491 },
492 ],
493 },
494 ],
borenet@google.com2d137b62013-03-08 23:13:33 +0000495 ['skia_win_debuggers_path and skia_os == "win"',
edisonn@google.com8819d1a2013-03-08 18:43:35 +0000496 {
497 'targets': [
498 {
499 'target_name': 'win_dbghelp',
500 'type': 'static_library',
501 'defines': [
502 'SK_CDB_PATH="<(skia_win_debuggers_path)"',
503 ],
504 'sources': [
505 '../tools/win_dbghelp.h',
506 '../tools/win_dbghelp.cpp',
507 ],
508 },
509 ],
510 },
511 ],
bungeman@google.com07a69f82013-04-02 14:12:38 +0000512 ['skia_os == "win"',
513 {
514 'targets': [
515 {
516 'target_name': 'win_lcid',
517 'type': 'executable',
518 'sources': [
519 '../tools/win_lcid.cpp',
520 ],
521 },
522 ],
523 },
524 ],
epoger@google.comccdbd2c2011-06-02 14:38:23 +0000525 ],
526}