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': [ |
11 { | 11 { |
12 # Build all executable targets defined below. | 12 # Build all executable targets defined below. |
13 'target_name': 'tools', | 13 'target_name': 'tools', |
14 'type': 'none', | 14 'type': 'none', |
15 'dependencies': [ | 15 'dependencies': [ |
16 'bench_pictures', | 16 'bench_pictures', |
17 'filter', | 17 'filter', |
18 'lua_pictures', | 18 'lua_pictures', |
19 'lua_app', | 19 'lua_app', |
20 'pinspect', | 20 'pinspect', |
21 'render_pdfs', | 21 'render_pdfs', |
22 'render_pictures', | 22 'render_pictures', |
23 'skdiff', | 23 'skdiff', |
| 24 'skpdiff', |
24 'skhello', | 25 'skhello', |
25 'skimage', | 26 'skimage', |
26 ], | 27 ], |
27 'conditions': [ | 28 'conditions': [ |
28 ['skia_shared_lib', | 29 ['skia_shared_lib', |
29 { | 30 { |
30 'dependencies': [ | 31 'dependencies': [ |
31 'sklua', # This can only be built if skia is built as a shared lib
rary | 32 'sklua', # This can only be built if skia is built as a shared lib
rary |
32 ], | 33 ], |
33 }, | 34 }, |
(...skipping 10 matching lines...) Expand all Loading... |
44 '../tools/skdiff_html.h', | 45 '../tools/skdiff_html.h', |
45 '../tools/skdiff_main.cpp', | 46 '../tools/skdiff_main.cpp', |
46 '../tools/skdiff_utils.cpp', | 47 '../tools/skdiff_utils.cpp', |
47 '../tools/skdiff_utils.h', | 48 '../tools/skdiff_utils.h', |
48 ], | 49 ], |
49 'dependencies': [ | 50 'dependencies': [ |
50 'skia_lib.gyp:skia_lib', | 51 'skia_lib.gyp:skia_lib', |
51 ], | 52 ], |
52 }, | 53 }, |
53 { | 54 { |
| 55 'target_name': 'skpdiff', |
| 56 'type': 'executable', |
| 57 'sources': [ |
| 58 '../tools/skpdiff/skpdiff_main.cpp', |
| 59 '../tools/skpdiff/SkDiffContext.cpp', |
| 60 '../tools/skpdiff/SkImageDiffer.cpp', |
| 61 '../tools/skpdiff/SkPMetric.cpp', |
| 62 '../tools/skpdiff/skpdiff_util.cpp', |
| 63 '../tools/flags/SkCommandLineFlags.cpp', |
| 64 ], |
| 65 'include_dirs': [ |
| 66 '../tools/flags' |
| 67 ], |
| 68 'dependencies': [ |
| 69 'skia_lib.gyp:skia_lib', |
| 70 ], |
| 71 'cflags': [ |
| 72 '-O3', |
| 73 ], |
| 74 'conditions': [ |
| 75 ['skia_opencl', { |
| 76 'sources': [ |
| 77 '../tools/skpdiff/SkCLImageDiffer.cpp', |
| 78 '../tools/skpdiff/SkDifferentPixelsMetric_opencl.cpp', |
| 79 ], |
| 80 'conditions': [ |
| 81 [ 'skia_os == "mac"', { |
| 82 'link_settings': { |
| 83 'libraries': [ |
| 84 '$(SDKROOT)/System/Library/Frameworks/OpenCL.framework', |
| 85 ] |
| 86 } |
| 87 }, { |
| 88 'link_settings': { |
| 89 'libraries': [ |
| 90 '-lOpenCL', |
| 91 ], |
| 92 }, |
| 93 }], |
| 94 ], |
| 95 }, { # !skia_opencl |
| 96 'sources': [ |
| 97 '../tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp', |
| 98 ], |
| 99 }], |
| 100 ], |
| 101 }, |
| 102 { |
54 'target_name': 'skimagediff', | 103 'target_name': 'skimagediff', |
55 'type': 'executable', | 104 'type': 'executable', |
56 'sources': [ | 105 'sources': [ |
57 '../tools/skdiff.cpp', | 106 '../tools/skdiff.cpp', |
58 '../tools/skdiff.h', | 107 '../tools/skdiff.h', |
59 '../tools/skdiff_html.cpp', | 108 '../tools/skdiff_html.cpp', |
60 '../tools/skdiff_html.h', | 109 '../tools/skdiff_html.h', |
61 '../tools/skdiff_image.cpp', | 110 '../tools/skdiff_image.cpp', |
62 '../tools/skdiff_utils.cpp', | 111 '../tools/skdiff_utils.cpp', |
63 '../tools/skdiff_utils.h', | 112 '../tools/skdiff_utils.h', |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 }, | 438 }, |
390 ], | 439 ], |
391 ], | 440 ], |
392 } | 441 } |
393 | 442 |
394 # Local Variables: | 443 # Local Variables: |
395 # tab-width:2 | 444 # tab-width:2 |
396 # indent-tabs-mode:nil | 445 # indent-tabs-mode:nil |
397 # End: | 446 # End: |
398 # vim: set expandtab tabstop=2 shiftwidth=2: | 447 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |