summaryrefslogtreecommitdiffstats
path: root/o3d/build
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/build')
-rw-r--r--o3d/build/common.gypi21
-rw-r--r--o3d/build/libs.gyp55
-rw-r--r--o3d/build/o3d_all.gyp1
3 files changed, 77 insertions, 0 deletions
diff --git a/o3d/build/common.gypi b/o3d/build/common.gypi
index e03653d..765f7d2 100644
--- a/o3d/build/common.gypi
+++ b/o3d/build/common.gypi
@@ -113,6 +113,13 @@
],
},
],
+ ['renderer == "gles2"',
+ {
+ 'defines': [
+ 'RENDERER_GLES2',
+ ],
+ },
+ ],
],
},
},
@@ -152,6 +159,13 @@
],
},
],
+ ['renderer == "gles2"',
+ {
+ 'defines': [
+ 'RENDERER_GLES2',
+ ],
+ },
+ ],
],
},
},
@@ -180,6 +194,13 @@
],
},
],
+ ['renderer == "gles2"',
+ {
+ 'defines': [
+ 'RENDERER_GLES2',
+ ],
+ },
+ ],
],
},
},
diff --git a/o3d/build/libs.gyp b/o3d/build/libs.gyp
index 32e5f42..315ce7c 100644
--- a/o3d/build/libs.gyp
+++ b/o3d/build/libs.gyp
@@ -73,6 +73,61 @@
],
},
{
+ 'target_name': 'gles2_libs',
+ 'type': 'none',
+ 'all_dependent_settings': {
+ 'include_dirs': [
+ '../../<(glewdir)/include',
+ ],
+ },
+ 'conditions': [
+ [ 'OS=="linux"',
+ {
+ 'all_dependent_settings': {
+ 'defines': [
+ 'GL_GLEXT_PROTOTYPES',
+ ],
+ 'ldflags': [
+ '-L<(PRODUCT_DIR)',
+ ],
+ 'libraries': [
+ '-lGL',
+ '-lGLEW',
+ '-lX11',
+ ],
+ },
+ },
+ ],
+ [ 'OS=="mac"',
+ {
+ 'direct_dependent_settings': {
+ 'libraries': [
+ '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
+ ],
+ },
+ },
+ ],
+ [ 'OS=="win"',
+ {
+ 'all_dependent_settings': {
+ 'libraries': [
+ '-lOpenGL32.lib',
+ '../../<(glewdir)/lib/glew32.lib',
+ ],
+ },
+ 'copies': [
+ {
+ 'destination': '<(PRODUCT_DIR)',
+ 'files': [
+ "../../<(glewdir)/bin/glew32.dll",
+ ]
+ },
+ ],
+ },
+ ],
+ ],
+ },
+ {
'target_name': 'cg_libs',
'type': 'none',
'hard_dependency': 1,
diff --git a/o3d/build/o3d_all.gyp b/o3d/build/o3d_all.gyp
index 9901e71..e172ed2 100644
--- a/o3d/build/o3d_all.gyp
+++ b/o3d/build/o3d_all.gyp
@@ -28,6 +28,7 @@
'../plugin/idl/idl.gyp:o3dNpnApi',
'../plugin/plugin.gyp:npo3dautoplugin',
'../samples/samples.gyp:*',
+ '../standalone/standalone.gyp:*',
'../tests/selenium/selenium.gyp:*',
'../tests/tests.gyp:unit_tests',
'../utils/utils.gyp:o3dUtils',