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

Unified Diff: gyp/gputest.gyp

Issue 1903233002: gyp: add osmesa target to factor out common code (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-04-20 (Wednesday) 10:35:53 EDT 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 | gyp/tools.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gyp/gputest.gyp
diff --git a/gyp/gputest.gyp b/gyp/gputest.gyp
index 2e905189cde735b0e1e60d2fa61d647ffa48d9d3..d1067e5f99719ed9b7a96ae54f22f60aa4f6ef66 100644
--- a/gyp/gputest.gyp
+++ b/gyp/gputest.gyp
@@ -32,23 +32,7 @@
'<!@(python find.py ../tools/gpu "*")'
],
'conditions': [
- [ 'skia_mesa and skia_os == "linux"', {
- 'link_settings': {
- 'libraries': [
- '-lOSMesa',
- ],
- },
- }],
- [ 'skia_mesa and skia_os == "mac"', {
- 'link_settings': {
- 'libraries': [
- '/opt/X11/lib/libOSMesa.dylib',
- ],
- },
- 'include_dirs': [
- '/opt/X11/include/',
- ],
- }],
+ [ 'skia_mesa', { 'dependencies': [ 'osmesa' ] } ],
[ 'skia_angle', {
'dependencies': [
'angle.gyp:*',
@@ -121,5 +105,18 @@
}],
],
},
+ {
+ 'target_name': 'osmesa',
+ 'type': 'none',
+ 'direct_dependent_settings': {
+ 'link_settings': { 'libraries': [ '-lOSMesa', ], },
+ 'conditions': [
+ [ 'skia_os == "mac"', {
+ 'link_settings': { 'library_dirs' : [ '/opt/X11/lib' ], },
+ 'include_dirs': [ '/opt/X11/include', ],
+ }],
+ ],
+ },
+ },
],
}
« no previous file with comments | « no previous file | gyp/tools.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698