summaryrefslogtreecommitdiff
path: root/common.gypi
diff options
context:
space:
mode:
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-10-19 20:43:20 +0000
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-10-19 20:43:20 +0000
commit54ca6fdc05ba4ec7af6cc08db936d7545a8f403a (patch)
tree4dc0584cb7ee71be68f61ef930c852c2df1ad3e8 /common.gypi
parent0053ee48e272a98b4395487522cb24e1e28749bd (diff)
downloadgyp-54ca6fdc05ba4ec7af6cc08db936d7545a8f403a.tar.gz
Virtualize SkGLContext with subclasses SkNativeGLContext and SkMesaGLContext, allow both in gm
Review URL: http://codereview.appspot.com/5307045/ git-svn-id: http://skia.googlecode.com/svn/trunk/gyp@2499 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'common.gypi')
-rw-r--r--common.gypi12
1 files changed, 12 insertions, 0 deletions
diff --git a/common.gypi b/common.gypi
index 51d68e8..30424de 100644
--- a/common.gypi
+++ b/common.gypi
@@ -15,6 +15,8 @@
'conditions': [
['skia_os != OS and not (skia_os == "ios" and OS == "mac")',
{'error': '<!(Cannot build with skia_os=<(skia_os) on OS=<(OS))'}],
+ ['skia_mesa and skia_os not in ["mac", "linux"]',
+ {'error': '<!(skia_mesa=1 only supported with skia_os="mac" or "linux".)'}],
],
},
'includes': [
@@ -34,6 +36,16 @@
],
}
],
+ [ 'skia_mesa', {
+ 'defines': [
+ 'SK_MESA',
+ ],
+ 'direct_dependent_settings': {
+ 'defines': [
+ 'SK_MESA',
+ ],
+ },
+ }],
],
'configurations': {
'Debug': {