#! /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
shift
MOSX=0
uname -a | grep -i Darwin && MOSX=1
if [ $MOSX -eq 1 ] ; then
X_ARGS="-XstartOnFirstThread"
fi
# 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 -Dnewt.debug.Display=true"
# D_ARGS="-Dnewt.debug=all"
# D_ARGS="-Dnativewindow.debug=all -Djogl.debug=all -Dnewt.debug=all"
java $X_ARGS -Djava.awt.headless=true $D_ARGS com.jogamp.newt.util.MainThread $* 2>&1 | tee java-run-newt.log
1'>JSR-231
blob: a85f9344f886fc0314a97ae384fcab728defe799 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#! /bin/sh
if [ -e /devtools/etc/profile.ant ] ; then
. /devtools/etc/profile.ant
fi
# -Dc.compiler.debug=true
# -Dbuild.noarchives=true
ant \
-Dbuild.noarchives=true \
-Djogl.cg=1 \
-Drootrel.build=build-macosx \
$* 2>&1 | tee make.jogl.all.macosx.log
|