Index: experimental/skpdiff/skpdiff.gyp |
diff --git a/experimental/skpdiff/skpdiff.gyp b/experimental/skpdiff/skpdiff.gyp |
index 39e4094fe3bae7dfb916edfd835bd987af740e16..8083f77ccd67e13181683da19888bf70990bfa45 100644 |
--- a/experimental/skpdiff/skpdiff.gyp |
+++ b/experimental/skpdiff/skpdiff.gyp |
@@ -12,7 +12,6 @@ |
'main.cpp', |
'SkDiffContext.cpp', |
'SkImageDiffer.cpp', |
- 'SkCLImageDiffer.cpp', |
'SkPMetric.cpp', |
'skpdiff_util.cpp', |
'../../tools/flags/SkCommandLineFlags.cpp', |
@@ -26,15 +25,25 @@ |
'cflags': [ |
'-O3', |
], |
- 'link_settings': { |
- 'libraries': [ |
- '-lOpenCL', |
- ], |
- }, |
+ 'conditions': [ |
+ ['skia_opencl', { |
+ 'sources': [ |
+ 'SkCLImageDiffer.cpp', |
+ 'SkDifferentPixelsMetric_opencl.cpp', |
+ ], |
+ 'link_settings': { |
+ 'libraries': [ |
+ '-lOpenCL', |
+ ], |
+ }, |
+ }, { |
+ 'sources': [ |
+ 'SkDifferentPixelsMetric_cpu.cpp', |
+ ], |
+ }], |
+ ], |
}, |
], |
- 'conditions': [ |
- ], |
} |
# Local Variables: |