aboutsummaryrefslogtreecommitdiffstats
path: root/make/scripts/java-run-allall.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-05-05 15:14:51 +0200
committerSven Gothel <[email protected]>2010-05-05 15:14:51 +0200
commit574a772703531da2854a566662af9c8b8f9770fe (patch)
tree7c885e097e82f0eb4eed56980b8fc65e49e013f6 /make/scripts/java-run-allall.sh
parent862c0e0301f5d18f246019a5261c3265143c0d3d (diff)
Add JOGL_ALLALL profile for scripting, to use the <module>.all.jar bundles
Diffstat (limited to 'make/scripts/java-run-allall.sh')
-rwxr-xr-xmake/scripts/java-run-allall.sh41
1 files changed, 41 insertions, 0 deletions
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