From 574a772703531da2854a566662af9c8b8f9770fe Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 5 May 2010 15:14:51 +0200 Subject: Add JOGL_ALLALL profile for scripting, to use the .all.jar bundles --- make/scripts/java-run-all.sh | 41 +++++++++++++++++++++++++++++++++++++++++ make/scripts/java-run-allall.sh | 41 +++++++++++++++++++++++++++++++++++++++++ make/scripts/java-run.sh | 39 --------------------------------------- make/scripts/setenv-jogl.sh | 11 ++++++++--- 4 files changed, 90 insertions(+), 42 deletions(-) create mode 100755 make/scripts/java-run-all.sh create mode 100755 make/scripts/java-run-allall.sh delete mode 100755 make/scripts/java-run.sh (limited to 'make') diff --git a/make/scripts/java-run-all.sh b/make/scripts/java-run-all.sh new file mode 100755 index 000000000..de4fdc3fe --- /dev/null +++ b/make/scripts/java-run-all.sh @@ -0,0 +1,41 @@ +#! /bin/bash + +scriptdir=`dirname $0` + +function print_usage() { + echo "Usage: $0 [-libdir pre-lib-dir] jogl-build-dir ..." +} + +if [ "$1" = "-libdir" ] ; then + shift + if [ -z "$1" ] ; then + echo libdir argument missing + print_usage + exit + fi + PRELIB=$1 + shift + LD_LIBRARY_PATH=$PRELIB:$LD_LIBRARY_PATH + export LD_LIBRARY_PATH +fi + +if [ -z "$1" ] ; then + echo JOGL BUILD DIR missing + print_usage + exit +fi + +. $scriptdir/setenv-jogl.sh $1 JOGL_ALL +shift + +MOSX=0 +uname -a | grep -i Darwin && MOSX=1 + +# D_ARGS="-Dgluegen.debug.ProcAddressHelper=true -Dgluegen.debug.NativeLibrary=true -Dnativewindow.debug=all -Djogl.debug=all -Dnewt.debug=all" +# D_ARGS="-Dnativewindow.debug=all -Djogl.debug=all -Dnewt.debug=all -Djogl.debug.GLSLState" +# D_ARGS="-Dnativewindow.debug.X11Util=true -Djogl.debug.GLDrawableFactory=true" +# D_ARGS="-Dnativewindow.debug.X11Util=true" +# D_ARGS="-Dnewt.debug=all" + +echo java $X_ARGS $D_ARGS $* 2>&1 | tee java-run.log +java $X_ARGS $D_ARGS $* 2>&1 | tee -a java-run.log diff --git a/make/scripts/java-run-allall.sh b/make/scripts/java-run-allall.sh new file mode 100755 index 000000000..16a8f314b --- /dev/null +++ b/make/scripts/java-run-allall.sh @@ -0,0 +1,41 @@ +#! /bin/bash + +scriptdir=`dirname $0` + +function print_usage() { + echo "Usage: $0 [-libdir pre-lib-dir] jogl-build-dir ..." +} + +if [ "$1" = "-libdir" ] ; then + shift + if [ -z "$1" ] ; then + echo libdir argument missing + print_usage + exit + fi + PRELIB=$1 + shift + LD_LIBRARY_PATH=$PRELIB:$LD_LIBRARY_PATH + export LD_LIBRARY_PATH +fi + +if [ -z "$1" ] ; then + echo JOGL BUILD DIR missing + print_usage + exit +fi + +. $scriptdir/setenv-jogl.sh $1 JOGL_ALLALL +shift + +MOSX=0 +uname -a | grep -i Darwin && MOSX=1 + +# D_ARGS="-Dgluegen.debug.ProcAddressHelper=true -Dgluegen.debug.NativeLibrary=true -Dnativewindow.debug=all -Djogl.debug=all -Dnewt.debug=all" +# D_ARGS="-Dnativewindow.debug=all -Djogl.debug=all -Dnewt.debug=all -Djogl.debug.GLSLState" +# D_ARGS="-Dnativewindow.debug.X11Util=true -Djogl.debug.GLDrawableFactory=true" +# D_ARGS="-Dnativewindow.debug.X11Util=true" +# D_ARGS="-Dnewt.debug=all" + +echo java $X_ARGS $D_ARGS $* 2>&1 | tee java-run.log +java $X_ARGS $D_ARGS $* 2>&1 | tee -a java-run.log diff --git a/make/scripts/java-run.sh b/make/scripts/java-run.sh deleted file mode 100755 index fbc06893f..000000000 --- a/make/scripts/java-run.sh +++ /dev/null @@ -1,39 +0,0 @@ -#! /bin/sh - -scriptdir=`dirname $0` - -function print_usage() { - echo "Usage: $0 [-libdir pre-lib-dir] jogl-build-dir ..." -} - -if [ "$1" = "-libdir" ] ; then - shift - if [ -z "$1" ] ; then - echo libdir argument missing - print_usage - exit - fi - PRELIB=$1 - shift - LD_LIBRARY_PATH=$PRELIB:$LD_LIBRARY_PATH - export LD_LIBRARY_PATH -fi - -if [ -z "$1" ] ; then - echo JOGL BUILD DIR missing - print_usage - exit -fi - -. $scriptdir/setenv-jogl.sh $1 -shift - -MOSX=0 -uname -a | grep -i Darwin && MOSX=1 - -# D_ARGS="-Dgluegen.debug.ProcAddressHelper=true -Dgluegen.debug.NativeLibrary=true -Dnativewindow.debug=all -Djogl.debug=all -Dnewt.debug=all" -# D_ARGS="-Dnativewindow.debug=all -Djogl.debug=all -Dnewt.debug=all -Djogl.debug.GLSLState" -# D_ARGS="-Dnativewindow.debug.X11Util=true -Djogl.debug.GLDrawableFactory=true" -# D_ARGS="-Dnativewindow.debug.X11Util=true" - -java $X_ARGS $D_ARGS $* 2>&1 | tee java-run.log diff --git a/make/scripts/setenv-jogl.sh b/make/scripts/setenv-jogl.sh index f7d42a193..a5a5d6adc 100644 --- a/make/scripts/setenv-jogl.sh +++ b/make/scripts/setenv-jogl.sh @@ -1,7 +1,7 @@ #! /bin/sh function print_usage() { - echo "Usage: $0 jogl-build-dir" + echo "Usage: $0 jogl-build-dir [JOGL_PROFILE]" } if [ -z "$1" ] ; then @@ -14,11 +14,16 @@ if [ -e /devtools/etc/profile.ant ] ; then . /devtools/etc/profile.ant fi -JOGL_PROFILE=JOGL_ALL - JOGL_BUILDDIR=$1 shift +if [ -z "$1" ] ; then + JOGL_PROFILE=JOGL_ALL +else + JOGL_PROFILE=$1 + shift +fi + THISDIR=`pwd` if [ -e "$JOGL_BUILDDIR" ] ; then -- cgit v1.2.3