| OLD | NEW |
| 1 # GYP file to build skpdiff. | 1 # GYP file to build skpdiff. |
| 2 # | 2 # |
| 3 # To build on Linux: | 3 # To build on Linux: |
| 4 # ./gyp_skia skpdiff.gyp && make skpdiff | 4 # ./gyp_skia skpdiff.gyp && make skpdiff |
| 5 # | 5 # |
| 6 { | 6 { |
| 7 'targets': [ | 7 'targets': [ |
| 8 { | 8 { |
| 9 'target_name': 'skpdiff', | 9 'target_name': 'skpdiff', |
| 10 'type': 'executable', | 10 'type': 'executable', |
| 11 'sources': [ | 11 'sources': [ |
| 12 'main.cpp', | 12 'main.cpp', |
| 13 'SkDiffContext.cpp', | 13 'SkDiffContext.cpp', |
| 14 'SkImageDiffer.cpp', | 14 'SkImageDiffer.cpp', |
| 15 'SkPMetric.cpp', | 15 'SkPMetric.cpp', |
| 16 'skpdiff_util.cpp', | 16 'skpdiff_util.cpp', |
| 17 '../../tools/flags/SkCommandLineFlags.cpp', | 17 '../../tools/flags/SkCommandLineFlags.cpp', |
| 18 ], | 18 ], |
| 19 'include_dirs': [ | 19 'include_dirs': [ |
| 20 '../../tools/flags' | 20 '../../tools/flags' |
| 21 ], | 21 ], |
| 22 'dependencies': [ | 22 'dependencies': [ |
| 23 '../../gyp/skia_lib.gyp:skia_lib', | 23 '../../gyp/skia_lib.gyp:skia_lib', |
| 24 ], | 24 ], |
| 25 'cflags': [ | 25 'cflags': [ |
| 26 '-O3', | 26 '-O3', |
| 27 ], | 27 ], |
| 28 'conditions': [ | 28 'conditions': [ |
| 29 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
| 30 'link_settings': { |
| 31 'libraries': [ |
| 32 '-lrt', |
| 33 ], |
| 34 }, |
| 35 }], |
| 29 ['skia_opencl', { | 36 ['skia_opencl', { |
| 30 'sources': [ | 37 'sources': [ |
| 31 'SkCLImageDiffer.cpp', | 38 'SkCLImageDiffer.cpp', |
| 32 'SkDifferentPixelsMetric_opencl.cpp', | 39 'SkDifferentPixelsMetric_opencl.cpp', |
| 33 ], | 40 ], |
| 34 'link_settings': { | 41 'conditions': [ |
| 35 'libraries': [ | 42 [ 'skia_os == "mac"', { |
| 36 '-lOpenCL', | 43 'link_settings': { |
| 37 ], | 44 'libraries': [ |
| 38 }, | 45 '$(SDKROOT)/System/Library/Frameworks/OpenCL.framework', |
| 39 }, { | 46 ] |
| 47 } |
| 48 }, { |
| 49 'link_settings': { |
| 50 'libraries': [ |
| 51 '-lOpenCL', |
| 52 ], |
| 53 }, |
| 54 }], |
| 55 ], |
| 56 }, { # !skia_opencl |
| 40 'sources': [ | 57 'sources': [ |
| 41 'SkDifferentPixelsMetric_cpu.cpp', | 58 'SkDifferentPixelsMetric_cpu.cpp', |
| 42 ], | 59 ], |
| 43 }], | 60 }], |
| 44 ], | 61 ], |
| 45 }, | 62 }, |
| 46 ], | 63 ], |
| 47 } | 64 } |
| 48 | 65 |
| 49 # Local Variables: | 66 # Local Variables: |
| 50 # tab-width:2 | 67 # tab-width:2 |
| 51 # indent-tabs-mode:nil | 68 # indent-tabs-mode:nil |
| 52 # End: | 69 # End: |
| 53 # vim: set expandtab tabstop=2 shiftwidth=2: | 70 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |