summaryrefslogtreecommitdiffstats
path: root/webkit/webkit.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/webkit.gyp')
-rw-r--r--webkit/webkit.gyp23
1 files changed, 23 insertions, 0 deletions
diff --git a/webkit/webkit.gyp b/webkit/webkit.gyp
index 81778ba..2597199 100644
--- a/webkit/webkit.gyp
+++ b/webkit/webkit.gyp
@@ -4,6 +4,7 @@
{
'includes': [
+ '../third_party/WebKit/WebKit/chromium/features.gypi',
'../third_party/WebKit/WebCore/WebCore.gypi',
],
'variables': {
@@ -237,6 +238,28 @@
}, { # else: OS!="win"
'sources/': [['exclude', '/win/']],
}],
+ ['"ENABLE_3D_CANVAS=1" in feature_defines', {
+ # Conditionally compile in GLEW and our GraphicsContext3D implementation.
+ 'sources+': [
+ 'api/src/GraphicsContext3D.cpp',
+ '../third_party/glew/src/glew.c'
+ ],
+ 'include_dirs+': [
+ '../third_party/glew/include'
+ ],
+ 'defines+': [
+ 'GLEW_STATIC=1',
+ ],
+ 'conditions': [
+ ['OS=="win"', {
+ 'link_settings': {
+ 'libraries': [
+ '-lopengl32.lib',
+ ]
+ },
+ }],
+ ],
+ }],
],
},
{