From 41cd6c47b23975098cd155517790e018670785e7 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Mon, 15 Jun 2009 23:12:27 +0000 Subject: Copied JOGL_2_SANDBOX r350 on to trunk; JOGL_2_SANDBOX branch is now closed git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@352 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4 --- setenv-jogl.sh | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 setenv-jogl.sh (limited to 'setenv-jogl.sh') diff --git a/setenv-jogl.sh b/setenv-jogl.sh new file mode 100644 index 0000000..a89dd40 --- /dev/null +++ b/setenv-jogl.sh @@ -0,0 +1,44 @@ +#! /bin/sh + +if [ -z "$1" ] ; then + echo "Usage: $0 {JOGL_ALL|JOGL_ES1_MIN|JOGL_ES1_MAX|JOGL_ES2_MIN|JOGL_ES2_MAX|JOGL_GL2ES12_MIN|JOGL_GL2ES12_MAX|JOGL_GL2_MIN|JOGL_GL2_MAX}" +else + +JOGL_PROFILE=$1 +shift + +echo JOGL PROFILE: $JOGL_PROFILE + +CVSROOT=":pserver:sgoethel@cvs.dev.java.net:/cvs" +THISDIR=`pwd` +export CVSROOT THISDIR + +if [ -x /devtools/etc/profile.ant ] ; then + . /devtools/etc/profile.ant +fi + +J2RE_HOME=$(dirname `which java`) +JAVA_HOME=$(dirname `which javac`) +CP_SEP=: + +export LIBXCB_ALLOW_SLOPPY_LOCK=1 + +. $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/jogl-demos.jar:$THISDIR/build/jogl-demos-util.jar:$THISDIR/build/jogl-demos-data.jar:$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 + +echo JOGL_CLASSPATH: $JOGL_CLASSPATH +fi + + -- cgit v1.2.3