aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp/tools.gyp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-04-19 08:46:50 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-19 08:46:50 -0700
commit7e6695416e20a741dae6db5940aa44a3e099a62d (patch)
treefa95b98d300fcad713606464b48d31f06880a2a8 /gyp/tools.gyp
parentdf082c54257256ca7570fb3a75852d2af4e6a80c (diff)
fiddle_build_test/gyp: fix mac mesa build (2)
TBR= NOTRY=true Review URL: https://codereview.chromium.org/1900173002
Diffstat (limited to 'gyp/tools.gyp')
-rw-r--r--gyp/tools.gyp13
1 files changed, 11 insertions, 2 deletions
diff --git a/gyp/tools.gyp b/gyp/tools.gyp
index 6c96ca5c53..190e1fe5a8 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' ], },
+ }
+ ],
+ ],
},
],
},