summaryrefslogtreecommitdiffstats
path: root/setenv-jogl.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2008-06-25 09:40:13 +0000
committerSven Gothel <[email protected]>2008-06-25 09:40:13 +0000
commit7c1206b1833d973b30e1b26d978d0d95315b55b6 (patch)
tree1290309417627a3db9c80a0730c52454d0550a23 /setenv-jogl.sh
parent665ee403e75d7024f660993713a537234a2d0826 (diff)
JOGL2 GLES1 NEWT X11 - RedSquare - working
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@245 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'setenv-jogl.sh')
-rw-r--r--setenv-jogl.sh42
1 files changed, 42 insertions, 0 deletions
diff --git a/setenv-jogl.sh b/setenv-jogl.sh
new file mode 100644
index 0000000..3a58512
--- /dev/null
+++ b/setenv-jogl.sh
@@ -0,0 +1,42 @@
+#! /bin/sh
+
+if [ -z "$1" ] ; then
+ echo "Usage: $0 {JOGL_ALL|JOGL_ES1_MIN|JOGL_ES1_MAX|JOGL_ES2_MIN|JOGL_ES2_MAX|JOGL_GL2_MIN|JOGL_GL2_MAX}"
+else
+
+JOGL_PROFILE=$1
+shift
+
+CVSROOT=":pserver:[email protected]:/cvs"
+THISDIR="/usr/local/projects/SUN/JOGL2/jogl-demos"
+export CVSROOT THISDIR
+
+. /devtools/etc/profile.ant
+
+J2RE_HOME=/opt-linux-x86/jre-dev
+JAVA_HOME=/usr/local/projects/SUN/JDK6/control/build/linux-i586/j2sdk-image
+CP_SEP=:
+
+export LIBXCB_ALLOW_SLOPPY_LOCK=1
+
+PATH=/devtools/i686-unknown-linux-gnu/gcc-4.2.1-glibc-2.3.6/i686-unknown-linux-gnu/i686-unknown-linux-gnu/bin:$JAVA_HOME/bin:$PATH
+export PATH
+
+. $THISDIR/../jogl/etc/profile.jogl $THISDIR/../jogl/build $THISDIR/../jogl/build/obj $JOGL_PROFILE
+
+GLUEGEN_JAR=$THISDIR/../gluegen/build/gluegen-rt.jar
+GLUEGEN_OS=$THISDIR/../gluegen/build/obj
+
+LIB=$THISDIR/lib
+
+# CLASSPATH=$JAVA_HOME/jre/lib/rt.jar:.:build/classes
+CLASSPATH=.:$THISDIR/build/classes:$GLUEGEN_JAR:$JOGL_CLASSPATH
+for i in $LIB/*jar ; do
+ CLASSPATH=$CLASSPATH:$i
+done
+export CLASSPATH
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GLUEGEN_OS:$THISDIR/../jogl/build/obj
+
+fi
+
+