From a54aaf7fba0dae99305715b8f9d46a875eb6b5a6 Mon Sep 17 00:00:00 2001 From: "zachr@google.com" Date: Mon, 22 Jul 2013 13:14:04 +0000 Subject: migrate skpdiff to tools R=djsollen@google.com Review URL: https://codereview.chromium.org/19671002 git-svn-id: http://skia.googlecode.com/svn/trunk@10225 2bbb7eff-a529-9590-31e7-b0007b416f81 --- gyp/tools.gyp | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'gyp') diff --git a/gyp/tools.gyp b/gyp/tools.gyp index 4cbdf4b1ba..6387fc0aea 100644 --- a/gyp/tools.gyp +++ b/gyp/tools.gyp @@ -21,6 +21,7 @@ 'render_pdfs', 'render_pictures', 'skdiff', + 'skpdiff', 'skhello', 'skimage', ], @@ -50,6 +51,54 @@ 'skia_lib.gyp:skia_lib', ], }, + { + 'target_name': 'skpdiff', + 'type': 'executable', + 'sources': [ + '../tools/skpdiff/skpdiff_main.cpp', + '../tools/skpdiff/SkDiffContext.cpp', + '../tools/skpdiff/SkImageDiffer.cpp', + '../tools/skpdiff/SkPMetric.cpp', + '../tools/skpdiff/skpdiff_util.cpp', + '../tools/flags/SkCommandLineFlags.cpp', + ], + 'include_dirs': [ + '../tools/flags' + ], + 'dependencies': [ + 'skia_lib.gyp:skia_lib', + ], + 'cflags': [ + '-O3', + ], + 'conditions': [ + ['skia_opencl', { + 'sources': [ + '../tools/skpdiff/SkCLImageDiffer.cpp', + '../tools/skpdiff/SkDifferentPixelsMetric_opencl.cpp', + ], + 'conditions': [ + [ 'skia_os == "mac"', { + 'link_settings': { + 'libraries': [ + '$(SDKROOT)/System/Library/Frameworks/OpenCL.framework', + ] + } + }, { + 'link_settings': { + 'libraries': [ + '-lOpenCL', + ], + }, + }], + ], + }, { # !skia_opencl + 'sources': [ + '../tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp', + ], + }], + ], + }, { 'target_name': 'skimagediff', 'type': 'executable', -- cgit v1.2.3