Index: gyp/tools.gyp |
diff --git a/gyp/tools.gyp b/gyp/tools.gyp |
index 6c96ca5c536ad0cd1017fa97f401937b46ede297..190e1fe5a8ce8e2f02b52ee59778b82d75aa62fb 100644 |
--- a/gyp/tools.gyp |
+++ b/gyp/tools.gyp |
@@ -591,7 +591,7 @@ |
], |
}, |
], |
- ['skia_os in ["linux", "mac"]', |
+ ['skia_mesa and skia_os in ["linux", "mac"]', |
{ |
'targets': [ |
{ |
@@ -607,7 +607,16 @@ |
'pdf.gyp:pdf', |
], |
'defines': [ 'FIDDLE_BUILD_TEST' ], |
- 'link_settings': { 'libraries': [ '-lOSMesa' ], }, |
+ 'conditions': [ |
+ [ 'skia_os == "mac"', |
+ { |
+ 'link_settings': { 'libraries': [ '/opt/X11/lib/libOSMesa.dylib', ], }, |
+ 'include_dirs': [ '/opt/X11/include/', ], |
+ }, { |
+ 'link_settings': { 'libraries': [ '-lOSMesa' ], }, |
+ } |
+ ], |
+ ], |
}, |
], |
}, |