Index: experimental/skpdiff/skpdiff.gyp |
diff --git a/experimental/skpdiff/skpdiff.gyp b/experimental/skpdiff/skpdiff.gyp |
index 8083f77ccd67e13181683da19888bf70990bfa45..0a692294a9f8b872be2a7492e52f58daa9e2cdd2 100644 |
--- a/experimental/skpdiff/skpdiff.gyp |
+++ b/experimental/skpdiff/skpdiff.gyp |
@@ -26,17 +26,34 @@ |
'-O3', |
], |
'conditions': [ |
+ [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
+ 'link_settings': { |
+ 'libraries': [ |
+ '-lrt', |
+ ], |
+ }, |
+ }], |
['skia_opencl', { |
'sources': [ |
'SkCLImageDiffer.cpp', |
'SkDifferentPixelsMetric_opencl.cpp', |
], |
- 'link_settings': { |
- 'libraries': [ |
- '-lOpenCL', |
- ], |
- }, |
- }, { |
+ 'conditions': [ |
+ [ 'skia_os == "mac"', { |
+ 'link_settings': { |
+ 'libraries': [ |
+ '$(SDKROOT)/System/Library/Frameworks/OpenCL.framework', |
+ ] |
+ } |
+ }, { |
+ 'link_settings': { |
+ 'libraries': [ |
+ '-lOpenCL', |
+ ], |
+ }, |
+ }], |
+ ], |
+ }, { # !skia_opencl |
'sources': [ |
'SkDifferentPixelsMetric_cpu.cpp', |
], |