summaryrefslogtreecommitdiffstats
path: root/setenv-jogl.macosx.sh
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2009-06-15 23:12:27 +0000
committerKenneth Russel <[email protected]>2009-06-15 23:12:27 +0000
commit41cd6c47b23975098cd155517790e018670785e7 (patch)
tree247333528ad674d427ba96b1e05810f7961d609e /setenv-jogl.macosx.sh
parent935d2596c13371bb745d921dbcb9f05b0c11a010 (diff)
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
Diffstat (limited to 'setenv-jogl.macosx.sh')
-rw-r--r--setenv-jogl.macosx.sh50
1 files changed, 50 insertions, 0 deletions
diff --git a/setenv-jogl.macosx.sh b/setenv-jogl.macosx.sh
new file mode 100644
index 0000000..a2b49e1
--- /dev/null
+++ b/setenv-jogl.macosx.sh
@@ -0,0 +1,50 @@
+#! /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:[email protected]:/cvs"
+THISDIR=`pwd`
+export CVSROOT THISDIR
+
+if [ -x /devtools/etc/profile.ant ] ; then
+ . /devtools/etc/profile.ant
+fi
+
+J2RE_HOME=$(which java)
+JAVA_HOME=$(which javac)
+CP_SEP=:
+
+export LIBXCB_ALLOW_SLOPPY_LOCK=1
+
+. $THISDIR/../jogl/etc/profile.jogl $THISDIR/../jogl/build-macosx $JOGL_PROFILE
+
+GLUEGEN_JAR=$THISDIR/../gluegen/build-macosx/gluegen-rt.jar
+GLUEGEN_OS=$THISDIR/../gluegen/build-macosx/obj
+
+LIB=$THISDIR/lib
+
+# CLASSPATH=$JAVA_HOME/jre/lib/rt.jar:.:build-macosx/classes
+CLASSPATH=.:$THISDIR/build-macosx/jogl-demos.jar:$THISDIR/build-macosx/jogl-demos-util.jar:$THISDIR/build-macosx/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:$JOGL_LIB_DIR
+export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$GLUEGEN_OS:$JOGL_LIB_DIR
+
+echo REMEMBER to add the JVM arguments "-XstartOnFirstThread -Djava.awt.headless=true" for running demos without AWT, e.g. NEWT
+echo JOGL_CLASSPATH: $JOGL_CLASSPATH
+
+PATH=$J2RE_HOME/bin:$JAVA_HOME/bin:$PATH
+export PATH
+
+fi
+
+