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

Unified Diff: gyp/tools.gyp

Issue 1900173002: fiddle_build_test/gyp: fix mac mesa build (2) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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' ], },
+ }
+ ],
+ ],
},
],
},
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698