aboutsummaryrefslogtreecommitdiffstats
path: root/make/scripts/gluegen-gl.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-02-15 13:56:43 +0100
committerSven Gothel <[email protected]>2012-02-15 13:56:43 +0100
commit7d87ace890d584675081eaade3b0685dc52bf8a5 (patch)
tree6d7af10e3982be0c00059ac7af2efa56b888a32c /make/scripts/gluegen-gl.sh
parentfb31bd24d8f607b18ab3eef6b90a1e1e20a5ec82 (diff)
OpenGL EGL, ES1 and ES2 Header Sync incl. subsuming common extensions.
- New EGL/ES headers from 2012-01-xx - Subsuming ES extensions to core, allowing aliasing of more enums/funcs to GL or GL2ES1/GL2ES2: GL_EXT_color_buffer_half_float GL_EXT_occlusion_query_boolean GL_EXT_robustness GL_ARB_robustness GL_EXT_separate_shader_objects GL_EXT_shadow_samplers GL_EXT_sRGB GL_EXT_texture_array GL_EXT_texture_rg GL_EXT_texture_type_2_10_10_10_REV GL_NV_draw_buffers GL_NV_fbo_color_attachments GL_EXT_packed_float GL_EXT_texture_storage
Diffstat (limited to 'make/scripts/gluegen-gl.sh')
-rw-r--r--make/scripts/gluegen-gl.sh93
1 files changed, 93 insertions, 0 deletions
diff --git a/make/scripts/gluegen-gl.sh b/make/scripts/gluegen-gl.sh
new file mode 100644
index 000000000..111b70710
--- /dev/null
+++ b/make/scripts/gluegen-gl.sh
@@ -0,0 +1,93 @@
+#! /bin/bash
+
+rootrel=build-x86_64
+
+builddir=../$rootrel
+buildtmp=../build-temp
+
+function copy_temp() {
+ mkdir -p $buildtmp/gensrc/classes
+ cp -a $builddir/jogl/gensrc/classes/* $buildtmp/gensrc/classes/
+}
+
+function gluegen_if_gl() {
+java \
+-classpath \
+../../gluegen/$rootrel/gluegen.jar:../$rootrel/jogl/gluegen-gl.jar \
+com.jogamp.gluegen.GlueGen \
+--debug \
+--dumpCPP \
+-O../$rootrel/jogl \
+-Ecom.jogamp.gluegen.opengl.GLEmitter \
+-C./config/jogl/gl-if-gl.cfg \
+-Istub_includes/jni \
+-Istub_includes/jni/macosx \
+-Istub_includes/jni/win32 \
+-Istub_includes/jni/x11 \
+-Istub_includes/khr \
+-Istub_includes/khr/KD \
+-Istub_includes/khr/KHR \
+-Istub_includes/macosx \
+-Istub_includes/macosx/AppKit \
+-Istub_includes/macosx/OpenGL \
+-Istub_includes/macosx/QuartzCore \
+-Istub_includes/opengl \
+-Istub_includes/opengl/GL \
+-Istub_includes/opengl/GL3 \
+-Istub_includes/opengl/GLES \
+-Istub_includes/opengl/GLES2 \
+-Istub_includes/win32 \
+-Istub_includes/x11 \
+-Istub_includes/x11/X11 \
+-Istub_includes/x11/X11/extensions \
+-I../../gluegen/make/stub_includes/gluegen \
+stub_includes/opengl/gles2.c \
+
+copy_temp
+
+}
+
+function gluegen_es2() {
+java \
+-classpath \
+../../gluegen/$rootrel/gluegen.jar:../$rootrel/jogl/gluegen-gl.jar \
+com.jogamp.gluegen.GlueGen \
+--debug \
+--dumpCPP \
+-O../$rootrel/jogl \
+-Ecom.jogamp.gluegen.opengl.GLEmitter \
+-C./config/jogl/gl-es2.cfg \
+-Istub_includes/jni \
+-Istub_includes/jni/macosx \
+-Istub_includes/jni/win32 \
+-Istub_includes/jni/x11 \
+-Istub_includes/khr \
+-Istub_includes/khr/KD \
+-Istub_includes/khr/KHR \
+-Istub_includes/macosx \
+-Istub_includes/macosx/AppKit \
+-Istub_includes/macosx/OpenGL \
+-Istub_includes/macosx/QuartzCore \
+-Istub_includes/opengl \
+-Istub_includes/opengl/GL \
+-Istub_includes/opengl/GL3 \
+-Istub_includes/opengl/GLES \
+-Istub_includes/opengl/GLES2 \
+-Istub_includes/win32 \
+-Istub_includes/x11 \
+-Istub_includes/x11/X11 \
+-Istub_includes/x11/X11/extensions \
+-I../../gluegen/make/stub_includes/gluegen \
+stub_includes/opengl/gles2.c \
+
+copy_temp
+
+}
+
+function gluegen_all() {
+ gluegen_if_gl
+# gluegen_es2
+}
+
+gluegen_all 2>&1 | tee $(basename $0 .sh).log
+