OLD | NEW |
1 # Copyright 2015 Google Inc. | 1 # Copyright 2015 Google Inc. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 # GYP file to build various tools. | 5 # GYP file to build various tools. |
6 # | 6 # |
7 # To build on Linux: | 7 # To build on Linux: |
8 # ./gyp_skia tools.gyp && make tools | 8 # ./gyp_skia tools.gyp && make tools |
9 # | 9 # |
10 { | 10 { |
11 'includes': [ | 11 'includes': [ |
12 'apptype_console.gypi', | 12 'apptype_console.gypi', |
13 ], | 13 ], |
14 'targets': [ | 14 'targets': [ |
15 { | 15 { |
16 # Build all executable targets defined below. | 16 # Build all executable targets defined below. |
17 'target_name': 'tools', | 17 'target_name': 'tools', |
18 'type': 'none', | 18 'type': 'none', |
19 'dependencies': [ | 19 'dependencies': [ |
20 'chrome_fuzz', | 20 'chrome_fuzz', |
21 'filter', | 21 'filter', |
22 'gpuveto', | 22 'gpuveto', |
23 'imgblur', | 23 'imgblur', |
24 'imgconv', | 24 'imgconv', |
25 'imgslice', | 25 'imgslice', |
26 'lua_app', | 26 'lua_app', |
27 'lua_pictures', | 27 'lua_pictures', |
28 'pinspect', | 28 'pinspect', |
29 'render_pdfs', | |
30 'skdiff', | 29 'skdiff', |
31 'skhello', | 30 'skhello', |
32 'skpdiff', | 31 'skpdiff', |
33 'skpinfo', | 32 'skpinfo', |
34 'skpmaker', | 33 'skpmaker', |
35 'test_image_decoder', | 34 'test_image_decoder', |
36 'test_public_includes', | 35 'test_public_includes', |
37 'whitelist_typefaces', | 36 'whitelist_typefaces', |
38 ], | 37 ], |
39 'conditions': [ | 38 'conditions': [ |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 'gputest.gyp:skgputest', | 393 'gputest.gyp:skgputest', |
395 ], | 394 ], |
396 'export_dependent_settings': [ | 395 'export_dependent_settings': [ |
397 'gputest.gyp:skgputest', | 396 'gputest.gyp:skgputest', |
398 ], | 397 ], |
399 }, | 398 }, |
400 ], | 399 ], |
401 ], | 400 ], |
402 }, | 401 }, |
403 { | 402 { |
404 'target_name': 'render_pdfs', | |
405 'type': 'executable', | |
406 'sources': [ | |
407 '../tools/render_pdfs_main.cpp', | |
408 ], | |
409 'include_dirs': [ | |
410 '../include/private', | |
411 '../src/core', | |
412 '../src/pipe/utils/', | |
413 '../src/utils/', | |
414 ], | |
415 'dependencies': [ | |
416 'flags.gyp:flags', | |
417 'pdf.gyp:pdf', | |
418 'skia_lib.gyp:skia_lib', | |
419 'tools.gyp:picture_utils', | |
420 'tools.gyp:proc_stats', | |
421 ], | |
422 'conditions': [ | |
423 ['skia_win_debuggers_path and skia_os == "win"', | |
424 { | |
425 'dependencies': [ | |
426 'tools.gyp:win_dbghelp', | |
427 ], | |
428 }, | |
429 ], | |
430 # VS static libraries don't have a linker option. We must set a global | |
431 # project linker option, or add it to each executable. | |
432 ['skia_win_debuggers_path and skia_os == "win" and ' | |
433 'skia_arch_type == "x86_64"', | |
434 { | |
435 'msvs_settings': { | |
436 'VCLinkerTool': { | |
437 'AdditionalDependencies': [ | |
438 '<(skia_win_debuggers_path)/x64/DbgHelp.lib', | |
439 ], | |
440 }, | |
441 }, | |
442 }, | |
443 ], | |
444 ['skia_win_debuggers_path and skia_os == "win" and ' | |
445 'skia_arch_type == "x86"', | |
446 { | |
447 'msvs_settings': { | |
448 'VCLinkerTool': { | |
449 'AdditionalDependencies': [ | |
450 '<(skia_win_debuggers_path)/DbgHelp.lib', | |
451 ], | |
452 }, | |
453 }, | |
454 }, | |
455 ], | |
456 ], | |
457 }, | |
458 { | |
459 'target_name': 'picture_utils', | 403 'target_name': 'picture_utils', |
460 'type': 'static_library', | 404 'type': 'static_library', |
461 'sources': [ | 405 'sources': [ |
462 '../tools/picture_utils.cpp', | 406 '../tools/picture_utils.cpp', |
463 '../tools/picture_utils.h', | 407 '../tools/picture_utils.h', |
464 ], | 408 ], |
465 'dependencies': [ | 409 'dependencies': [ |
466 'skia_lib.gyp:skia_lib', | 410 'skia_lib.gyp:skia_lib', |
467 ], | 411 ], |
468 'direct_dependent_settings': { | 412 'direct_dependent_settings': { |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 'flags.gyp:flags', | 648 'flags.gyp:flags', |
705 'skia_lib.gyp:skia_lib', | 649 'skia_lib.gyp:skia_lib', |
706 'resources', | 650 'resources', |
707 ], | 651 ], |
708 }, | 652 }, |
709 ], | 653 ], |
710 }, | 654 }, |
711 ], | 655 ], |
712 ], | 656 ], |
713 } | 657 } |
OLD | NEW |