OLD | NEW |
1 # GYP file to build various tools. | 1 # GYP file to build various tools. |
2 # | 2 # |
3 # To build on Linux: | 3 # To build on Linux: |
4 # ./gyp_skia tools.gyp && make tools | 4 # ./gyp_skia tools.gyp && make tools |
5 # | 5 # |
6 { | 6 { |
7 'includes': [ | 7 'includes': [ |
8 'apptype_console.gypi', | 8 'apptype_console.gypi', |
9 ], | 9 ], |
10 'targets': [ | 10 'targets': [ |
(...skipping 21 matching lines...) Expand all Loading... |
32 'dependencies': [ | 32 'dependencies': [ |
33 'sklua', # This can only be built if skia is built as a shared lib
rary | 33 'sklua', # This can only be built if skia is built as a shared lib
rary |
34 ], | 34 ], |
35 }, | 35 }, |
36 ], | 36 ], |
37 ], | 37 ], |
38 }, | 38 }, |
39 { | 39 { |
40 'target_name': 'skdiff', | 40 'target_name': 'skdiff', |
41 'type': 'executable', | 41 'type': 'executable', |
| 42 'include_dirs': [ |
| 43 '../src/core', |
| 44 '../src/opts', |
| 45 ], |
42 'sources': [ | 46 'sources': [ |
43 '../tools/skdiff.cpp', | 47 '../tools/skdiff.cpp', |
44 '../tools/skdiff.h', | 48 '../tools/skdiff.h', |
45 '../tools/skdiff_html.cpp', | 49 '../tools/skdiff_html.cpp', |
46 '../tools/skdiff_html.h', | 50 '../tools/skdiff_html.h', |
47 '../tools/skdiff_main.cpp', | 51 '../tools/skdiff_main.cpp', |
48 '../tools/skdiff_utils.cpp', | 52 '../tools/skdiff_utils.cpp', |
49 '../tools/skdiff_utils.h', | 53 '../tools/skdiff_utils.h', |
50 ], | 54 ], |
51 'dependencies': [ | 55 'dependencies': [ |
52 'skia_lib.gyp:skia_lib', | 56 'skia_lib.gyp:skia_lib', |
53 ], | 57 ], |
54 }, | 58 }, |
55 { | 59 { |
56 'target_name': 'skpdiff', | 60 'target_name': 'skpdiff', |
57 'type': 'executable', | 61 'type': 'executable', |
58 'sources': [ | 62 'sources': [ |
59 '../tools/skpdiff/skpdiff_main.cpp', | 63 '../tools/skpdiff/skpdiff_main.cpp', |
60 '../tools/skpdiff/SkDiffContext.cpp', | 64 '../tools/skpdiff/SkDiffContext.cpp', |
61 '../tools/skpdiff/SkImageDiffer.cpp', | 65 '../tools/skpdiff/SkImageDiffer.cpp', |
62 '../tools/skpdiff/SkPMetric.cpp', | 66 '../tools/skpdiff/SkPMetric.cpp', |
63 '../tools/skpdiff/skpdiff_util.cpp', | 67 '../tools/skpdiff/skpdiff_util.cpp', |
64 '../tools/flags/SkCommandLineFlags.cpp', | 68 '../tools/flags/SkCommandLineFlags.cpp', |
65 ], | 69 ], |
66 'include_dirs': [ | 70 'include_dirs': [ |
| 71 '../src/core', |
| 72 '../src/opts', |
67 '../tools/flags' | 73 '../tools/flags' |
68 ], | 74 ], |
69 'dependencies': [ | 75 'dependencies': [ |
70 'skia_lib.gyp:skia_lib', | 76 'skia_lib.gyp:skia_lib', |
71 ], | 77 ], |
72 'cflags': [ | 78 'cflags': [ |
73 '-O3', | 79 '-O3', |
74 ], | 80 ], |
75 'conditions': [ | 81 'conditions': [ |
76 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { | 82 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 'type': 'executable', | 134 'type': 'executable', |
129 'dependencies': [ | 135 'dependencies': [ |
130 'skia_lib.gyp:skia_lib', | 136 'skia_lib.gyp:skia_lib', |
131 ], | 137 ], |
132 'conditions': [ | 138 'conditions': [ |
133 [ 'skia_os == "nacl"', { | 139 [ 'skia_os == "nacl"', { |
134 'sources': [ | 140 'sources': [ |
135 '../platform_tools/nacl/src/nacl_hello.cpp', | 141 '../platform_tools/nacl/src/nacl_hello.cpp', |
136 ], | 142 ], |
137 }, { | 143 }, { |
| 144 'include_dirs': [ |
| 145 '../src/core', |
| 146 '../src/opts', |
| 147 ], |
138 'sources': [ | 148 'sources': [ |
139 '../tools/skhello.cpp', | 149 '../tools/skhello.cpp', |
140 ], | 150 ], |
141 'dependencies': [ | 151 'dependencies': [ |
142 'pdf.gyp:pdf', | 152 'pdf.gyp:pdf', |
143 'flags.gyp:flags', | 153 'flags.gyp:flags', |
144 ], | 154 ], |
145 }], | 155 }], |
146 ], | 156 ], |
147 }, | 157 }, |
148 { | 158 { |
149 'target_name': 'skimage', | 159 'target_name': 'skimage', |
150 'type': 'executable', | 160 'type': 'executable', |
151 'sources': [ | 161 'sources': [ |
152 '../tools/skimage_main.cpp', | 162 '../tools/skimage_main.cpp', |
153 ], | 163 ], |
154 'include_dirs': [ | 164 'include_dirs': [ |
155 # For SkBitmapHasher.h | 165 # For SkBitmapHasher.h |
| 166 '../src/core/', |
| 167 '../src/opts/', |
156 '../src/utils/', | 168 '../src/utils/', |
157 ], | 169 ], |
158 'dependencies': [ | 170 'dependencies': [ |
159 'skia_lib.gyp:skia_lib', | 171 'skia_lib.gyp:skia_lib', |
160 'flags.gyp:flags', | 172 'flags.gyp:flags', |
161 'gm.gyp:gm_expectations', | 173 'gm.gyp:gm_expectations', |
162 'jsoncpp.gyp:jsoncpp', | 174 'jsoncpp.gyp:jsoncpp', |
163 'utils.gyp:utils', | 175 'utils.gyp:utils', |
164 ], | 176 ], |
165 }, | 177 }, |
166 | 178 |
167 { | 179 { |
168 'target_name': 'lua_app', | 180 'target_name': 'lua_app', |
169 'type': 'executable', | 181 'type': 'executable', |
| 182 'include_dirs': [ |
| 183 '../src/core', |
| 184 '../src/opts', |
| 185 ], |
170 'sources': [ | 186 'sources': [ |
171 '../tools/lua/lua_app.cpp', | 187 '../tools/lua/lua_app.cpp', |
172 '../src/utils/SkLua.cpp', | 188 '../src/utils/SkLua.cpp', |
173 ], | 189 ], |
174 'dependencies': [ | 190 'dependencies': [ |
175 'skia_lib.gyp:skia_lib', | 191 'skia_lib.gyp:skia_lib', |
176 'effects.gyp:effects', | 192 'effects.gyp:effects', |
177 'utils.gyp:utils', | 193 'utils.gyp:utils', |
178 'images.gyp:images', | 194 'images.gyp:images', |
179 'pdf.gyp:pdf', | 195 'pdf.gyp:pdf', |
180 'ports.gyp:ports', | 196 'ports.gyp:ports', |
181 'lua.gyp:lua', | 197 'lua.gyp:lua', |
182 ], | 198 ], |
183 }, | 199 }, |
184 { | 200 { |
185 'target_name': 'lua_pictures', | 201 'target_name': 'lua_pictures', |
186 'type': 'executable', | 202 'type': 'executable', |
| 203 'include_dirs': [ |
| 204 '../src/core', |
| 205 '../src/opts', |
| 206 ], |
187 'sources': [ | 207 'sources': [ |
188 '../tools/lua/lua_pictures.cpp', | 208 '../tools/lua/lua_pictures.cpp', |
189 '../src/utils/SkLuaCanvas.cpp', | 209 '../src/utils/SkLuaCanvas.cpp', |
190 '../src/utils/SkLua.cpp', | 210 '../src/utils/SkLua.cpp', |
191 ], | 211 ], |
192 'dependencies': [ | 212 'dependencies': [ |
193 'skia_lib.gyp:skia_lib', | 213 'skia_lib.gyp:skia_lib', |
194 'effects.gyp:effects', | 214 'effects.gyp:effects', |
195 'utils.gyp:utils', | 215 'utils.gyp:utils', |
196 'images.gyp:images', | 216 'images.gyp:images', |
197 'tools.gyp:picture_renderer', | 217 'tools.gyp:picture_renderer', |
198 'tools.gyp:picture_utils', | 218 'tools.gyp:picture_utils', |
199 'pdf.gyp:pdf', | 219 'pdf.gyp:pdf', |
200 'ports.gyp:ports', | 220 'ports.gyp:ports', |
201 'flags.gyp:flags', | 221 'flags.gyp:flags', |
202 'lua.gyp:lua', | 222 'lua.gyp:lua', |
203 ], | 223 ], |
204 }, | 224 }, |
205 { | 225 { |
206 'target_name': 'render_pictures', | 226 'target_name': 'render_pictures', |
207 'type': 'executable', | 227 'type': 'executable', |
208 'sources': [ | 228 'sources': [ |
209 '../tools/render_pictures_main.cpp', | 229 '../tools/render_pictures_main.cpp', |
210 ], | 230 ], |
211 'include_dirs': [ | 231 'include_dirs': [ |
| 232 '../src/core', |
| 233 '../src/opts', |
212 '../src/pipe/utils/', | 234 '../src/pipe/utils/', |
213 ], | 235 ], |
214 'dependencies': [ | 236 'dependencies': [ |
215 'skia_lib.gyp:skia_lib', | 237 'skia_lib.gyp:skia_lib', |
216 'tools.gyp:picture_renderer', | 238 'tools.gyp:picture_renderer', |
217 'tools.gyp:picture_utils', | 239 'tools.gyp:picture_utils', |
218 'flags.gyp:flags', | 240 'flags.gyp:flags', |
219 ], | 241 ], |
220 }, | 242 }, |
221 { | 243 { |
222 'target_name': 'bench_pictures', | 244 'target_name': 'bench_pictures', |
223 'type': 'executable', | 245 'type': 'executable', |
224 'sources': [ | 246 'sources': [ |
225 '../bench/SkBenchLogger.h', | 247 '../bench/SkBenchLogger.h', |
226 '../bench/SkBenchLogger.cpp', | 248 '../bench/SkBenchLogger.cpp', |
227 '../bench/TimerData.h', | 249 '../bench/TimerData.h', |
228 '../bench/TimerData.cpp', | 250 '../bench/TimerData.cpp', |
229 '../tools/bench_pictures_main.cpp', | 251 '../tools/bench_pictures_main.cpp', |
230 '../tools/PictureBenchmark.cpp', | 252 '../tools/PictureBenchmark.cpp', |
231 ], | 253 ], |
232 'include_dirs': [ | 254 'include_dirs': [ |
233 '../bench', | 255 '../bench', |
| 256 '../src/core', |
234 '../src/lazy/', | 257 '../src/lazy/', |
| 258 '../src/opts', |
235 ], | 259 ], |
236 'dependencies': [ | 260 'dependencies': [ |
237 'skia_lib.gyp:skia_lib', | 261 'skia_lib.gyp:skia_lib', |
238 'tools.gyp:picture_utils', | 262 'tools.gyp:picture_utils', |
239 'tools.gyp:picture_renderer', | 263 'tools.gyp:picture_renderer', |
240 'bench.gyp:bench_timer', | 264 'bench.gyp:bench_timer', |
241 'flags.gyp:flags', | 265 'flags.gyp:flags', |
242 ], | 266 ], |
243 }, | 267 }, |
244 { | 268 { |
245 'target_name': 'picture_renderer', | 269 'target_name': 'picture_renderer', |
246 'type': 'static_library', | 270 'type': 'static_library', |
247 'sources': [ | 271 'sources': [ |
248 '../tools/LazyDecodeBitmap.cpp', | 272 '../tools/LazyDecodeBitmap.cpp', |
249 '../tools/PictureRenderer.h', | 273 '../tools/PictureRenderer.h', |
250 '../tools/PictureRenderer.cpp', | 274 '../tools/PictureRenderer.cpp', |
251 '../tools/PictureRenderingFlags.h', | 275 '../tools/PictureRenderingFlags.h', |
252 '../tools/PictureRenderingFlags.cpp', | 276 '../tools/PictureRenderingFlags.cpp', |
253 '../tools/CopyTilesRenderer.h', | 277 '../tools/CopyTilesRenderer.h', |
254 '../tools/CopyTilesRenderer.cpp', | 278 '../tools/CopyTilesRenderer.cpp', |
255 '../src/pipe/utils/SamplePipeControllers.h', | 279 '../src/pipe/utils/SamplePipeControllers.h', |
256 '../src/pipe/utils/SamplePipeControllers.cpp', | 280 '../src/pipe/utils/SamplePipeControllers.cpp', |
257 ], | 281 ], |
258 'include_dirs': [ | 282 'include_dirs': [ |
259 '../src/core/', | 283 '../src/core/', |
| 284 '../src/opts', |
260 '../src/pipe/utils/', | 285 '../src/pipe/utils/', |
261 '../src/utils/', | 286 '../src/utils/', |
262 ], | 287 ], |
263 'dependencies': [ | 288 'dependencies': [ |
264 'skia_lib.gyp:skia_lib', | 289 'skia_lib.gyp:skia_lib', |
265 'tools.gyp:picture_utils', | 290 'tools.gyp:picture_utils', |
266 'flags.gyp:flags', | 291 'flags.gyp:flags', |
267 ], | 292 ], |
268 'conditions': [ | 293 'conditions': [ |
269 ['skia_gpu == 1', | 294 ['skia_gpu == 1', |
270 { | 295 { |
271 'include_dirs' : [ | 296 'include_dirs' : [ |
272 '../src/gpu', | 297 '../src/gpu', |
273 ], | 298 ], |
274 }, | 299 }, |
275 ], | 300 ], |
276 ], | 301 ], |
277 }, | 302 }, |
278 { | 303 { |
279 'target_name': 'render_pdfs', | 304 'target_name': 'render_pdfs', |
280 'type': 'executable', | 305 'type': 'executable', |
281 'sources': [ | 306 'sources': [ |
282 '../tools/render_pdfs_main.cpp', | 307 '../tools/render_pdfs_main.cpp', |
283 '../tools/PdfRenderer.cpp', | 308 '../tools/PdfRenderer.cpp', |
284 '../tools/PdfRenderer.h', | 309 '../tools/PdfRenderer.h', |
285 ], | 310 ], |
286 'include_dirs': [ | 311 'include_dirs': [ |
| 312 '../src/core', |
| 313 '../src/opts', |
287 '../src/pipe/utils/', | 314 '../src/pipe/utils/', |
288 '../src/utils/', | 315 '../src/utils/', |
289 ], | 316 ], |
290 'dependencies': [ | 317 'dependencies': [ |
291 'skia_lib.gyp:skia_lib', | 318 'skia_lib.gyp:skia_lib', |
292 'pdf.gyp:pdf', | 319 'pdf.gyp:pdf', |
293 'tools.gyp:picture_utils', | 320 'tools.gyp:picture_utils', |
294 ], | 321 ], |
295 'conditions': [ | 322 'conditions': [ |
296 ['skia_win_debuggers_path and skia_os == "win"', | 323 ['skia_win_debuggers_path and skia_os == "win"', |
(...skipping 27 matching lines...) Expand all Loading... |
324 ], | 351 ], |
325 }, | 352 }, |
326 }, | 353 }, |
327 }, | 354 }, |
328 ], | 355 ], |
329 ], | 356 ], |
330 }, | 357 }, |
331 { | 358 { |
332 'target_name': 'picture_utils', | 359 'target_name': 'picture_utils', |
333 'type': 'static_library', | 360 'type': 'static_library', |
| 361 'include_dirs': [ |
| 362 '../src/core', |
| 363 '../src/opts', |
| 364 ], |
334 'sources': [ | 365 'sources': [ |
335 '../tools/picture_utils.cpp', | 366 '../tools/picture_utils.cpp', |
336 '../tools/picture_utils.h', | 367 '../tools/picture_utils.h', |
337 ], | 368 ], |
338 'dependencies': [ | 369 'dependencies': [ |
339 'skia_lib.gyp:skia_lib', | 370 'skia_lib.gyp:skia_lib', |
340 ], | 371 ], |
341 'direct_dependent_settings': { | 372 'direct_dependent_settings': { |
342 'include_dirs': [ | 373 'include_dirs': [ |
343 '../tools/', | 374 '../tools/', |
344 ], | 375 ], |
345 }, | 376 }, |
346 }, | 377 }, |
347 { | 378 { |
348 'target_name': 'pinspect', | 379 'target_name': 'pinspect', |
349 'type': 'executable', | 380 'type': 'executable', |
| 381 'include_dirs': [ |
| 382 '../src/core', |
| 383 '../src/opts', |
| 384 ], |
350 'sources': [ | 385 'sources': [ |
351 '../tools/pinspect.cpp', | 386 '../tools/pinspect.cpp', |
352 ], | 387 ], |
353 'dependencies': [ | 388 'dependencies': [ |
354 'skia_lib.gyp:skia_lib', | 389 'skia_lib.gyp:skia_lib', |
355 'tools.gyp:picture_renderer', | 390 'tools.gyp:picture_renderer', |
356 'flags.gyp:flags', | 391 'flags.gyp:flags', |
357 ], | 392 ], |
358 }, | 393 }, |
359 { | 394 { |
360 'target_name': 'bbh_shootout', | 395 'target_name': 'bbh_shootout', |
361 'type': 'executable', | 396 'type': 'executable', |
362 'include_dirs': [ | 397 'include_dirs': [ |
363 '../bench', | 398 '../bench', |
| 399 '../src/core', |
| 400 '../src/opts', |
364 '../tools/' | 401 '../tools/' |
365 ], | 402 ], |
366 'sources': [ | 403 'sources': [ |
367 '../tools/bbh_shootout.cpp', | 404 '../tools/bbh_shootout.cpp', |
368 | 405 |
369 # Bench code: | 406 # Bench code: |
370 '../bench/TimerData.h', | 407 '../bench/TimerData.h', |
371 '../bench/TimerData.cpp', | 408 '../bench/TimerData.cpp', |
372 ], | 409 ], |
373 'dependencies': [ | 410 'dependencies': [ |
374 'skia_lib.gyp:skia_lib', | 411 'skia_lib.gyp:skia_lib', |
375 'bench.gyp:bench_timer', | 412 'bench.gyp:bench_timer', |
376 'tools.gyp:picture_utils', | 413 'tools.gyp:picture_utils', |
377 'tools.gyp:picture_renderer', | 414 'tools.gyp:picture_renderer', |
378 'flags.gyp:flags', | 415 'flags.gyp:flags', |
379 ], | 416 ], |
380 }, | 417 }, |
381 { | 418 { |
382 'target_name': 'filter', | 419 'target_name': 'filter', |
383 'type': 'executable', | 420 'type': 'executable', |
384 'include_dirs' : [ | 421 'include_dirs' : [ |
385 '../src/core', | 422 '../src/core', |
| 423 '../src/opts', |
386 '../src/utils/debugger', | 424 '../src/utils/debugger', |
387 ], | 425 ], |
388 'sources': [ | 426 'sources': [ |
389 '../tools/filtermain.cpp', | 427 '../tools/filtermain.cpp', |
390 '../tools/path_utils.h', | 428 '../tools/path_utils.h', |
391 '../tools/path_utils.cpp', | 429 '../tools/path_utils.cpp', |
392 '../src/utils/debugger/SkDrawCommand.h', | 430 '../src/utils/debugger/SkDrawCommand.h', |
393 '../src/utils/debugger/SkDrawCommand.cpp', | 431 '../src/utils/debugger/SkDrawCommand.cpp', |
394 '../src/utils/debugger/SkDebugCanvas.h', | 432 '../src/utils/debugger/SkDebugCanvas.h', |
395 '../src/utils/debugger/SkDebugCanvas.cpp', | 433 '../src/utils/debugger/SkDebugCanvas.cpp', |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 }, | 506 }, |
469 ], | 507 ], |
470 ], | 508 ], |
471 } | 509 } |
472 | 510 |
473 # Local Variables: | 511 # Local Variables: |
474 # tab-width:2 | 512 # tab-width:2 |
475 # indent-tabs-mode:nil | 513 # indent-tabs-mode:nil |
476 # End: | 514 # End: |
477 # vim: set expandtab tabstop=2 shiftwidth=2: | 515 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |