| 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 'bbh_shootout', | 18 'bbh_shootout', |
| 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_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
| 76 'link_settings': { |
| 77 'libraries': [ |
| 78 '-lrt', |
| 79 ], |
| 80 }, |
| 81 }], |
| 82 ['skia_opencl', { |
| 83 'sources': [ |
| 84 '../tools/skpdiff/SkCLImageDiffer.cpp', |
| 85 '../tools/skpdiff/SkDifferentPixelsMetric_opencl.cpp', |
| 86 ], |
| 87 'conditions': [ |
| 88 [ 'skia_os == "mac"', { |
| 89 'link_settings': { |
| 90 'libraries': [ |
| 91 '$(SDKROOT)/System/Library/Frameworks/OpenCL.framework', |
| 92 ] |
| 93 } |
| 94 }, { |
| 95 'link_settings': { |
| 96 'libraries': [ |
| 97 '-lOpenCL', |
| 98 ], |
| 99 }, |
| 100 }], |
| 101 ], |
| 102 }, { # !skia_opencl |
| 103 'sources': [ |
| 104 '../tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp', |
| 105 ], |
| 106 }], |
| 107 ], |
| 108 }, |
| 109 { |
| 54 'target_name': 'skimagediff', | 110 'target_name': 'skimagediff', |
| 55 'type': 'executable', | 111 'type': 'executable', |
| 56 'sources': [ | 112 'sources': [ |
| 57 '../tools/skdiff.cpp', | 113 '../tools/skdiff.cpp', |
| 58 '../tools/skdiff.h', | 114 '../tools/skdiff.h', |
| 59 '../tools/skdiff_html.cpp', | 115 '../tools/skdiff_html.cpp', |
| 60 '../tools/skdiff_html.h', | 116 '../tools/skdiff_html.h', |
| 61 '../tools/skdiff_image.cpp', | 117 '../tools/skdiff_image.cpp', |
| 62 '../tools/skdiff_utils.cpp', | 118 '../tools/skdiff_utils.cpp', |
| 63 '../tools/skdiff_utils.h', | 119 '../tools/skdiff_utils.h', |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 }, | 467 }, |
| 412 ], | 468 ], |
| 413 ], | 469 ], |
| 414 } | 470 } |
| 415 | 471 |
| 416 # Local Variables: | 472 # Local Variables: |
| 417 # tab-width:2 | 473 # tab-width:2 |
| 418 # indent-tabs-mode:nil | 474 # indent-tabs-mode:nil |
| 419 # End: | 475 # End: |
| 420 # vim: set expandtab tabstop=2 shiftwidth=2: | 476 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |