Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3258)

Unified Diff: experimental/skpdiff/skpdiff.gyp

Issue 19787006: ports for mac, ios, android, linux, windows (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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',
],

Powered by Google App Engine
This is Rietveld 408576698