aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp/tools.gyp
diff options
context:
space:
mode:
authorGravatar zachr@google.com <zachr@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-22 18:46:45 +0000
committerGravatar zachr@google.com <zachr@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-22 18:46:45 +0000
commit5b3e2b96227f21d9643ca1678d777fd23767756d (patch)
treec678f3e44284d8027aac57e81dd2c89fe2545659 /gyp/tools.gyp
parentfc1666707700e386746c1713077af2f9123aa267 (diff)
move skpdiff into tools
R=djsollen@google.com Review URL: https://codereview.chromium.org/19608005 git-svn-id: http://skia.googlecode.com/svn/trunk@10249 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gyp/tools.gyp')
-rw-r--r--gyp/tools.gyp56
1 files changed, 56 insertions, 0 deletions
diff --git a/gyp/tools.gyp b/gyp/tools.gyp
index 4cbdf4b1ba..f460ee38ae 100644
--- a/gyp/tools.gyp
+++ b/gyp/tools.gyp
@@ -21,6 +21,7 @@
'render_pdfs',
'render_pictures',
'skdiff',
+ 'skpdiff',
'skhello',
'skimage',
],
@@ -51,6 +52,61 @@
],
},
{
+ '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_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
+ 'link_settings': {
+ 'libraries': [
+ '-lrt',
+ ],
+ },
+ }],
+ ['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',
'sources': [