forked from sgothel/jogl-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cvm-dbg-newt.sh
executable file
·26 lines (19 loc) · 1.02 KB
/
cvm-dbg-newt.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /bin/sh
CVM=$1
shift
BUILD_SUBDIR=$1
shift
if [ ! -x "$CVM" -o -z "$BUILD_SUBDIR" ] ; then
echo "Usage $0 CVM-Binary BUILD_SUB_PATH [-cpu <arch>] Main-Class"
echo "e.g. $0 ../CVM/bin/cvm build-x86 -cpu x86 test"
exit 1
fi
X_FLAGS=
if [ "$1" = "-cpu" ] ; then
shift
X_FLAGS="-Dos.arch=$1"
shift
fi
# D_ARGS="-Dgluegen.debug.ProcAddressHelper=true -Dgluegen.debug.NativeLibrary=true -Dnativewindow.debug=all -Djogl.debug=all -Dnewt.debug=all"
D_ARGS="-Dgluegen.debug.NativeLibrary=true -Dnativewindow.debug=all -Djogl.debug=all -Dnewt.debug=all"
$CVM $X_FLAGS -Djava.awt.headless=true $D_ARGS -Dsun.boot.library.path=../jogl/$BUILD_SUBDIR/lib -Xbootclasspath/a:../gluegen/$BUILD_SUBDIR/gluegen-rt-cdc.jar -Xbootclasspath/a:../jogl/$BUILD_SUBDIR/nativewindow/nativewindow.all.cdc.jar -Xbootclasspath/a:../jogl/$BUILD_SUBDIR/jogl/jogl.all.cdc.jar -Xbootclasspath/a:../jogl/$BUILD_SUBDIR/newt/newt.all.cdc.jar -Xbootclasspath/a:$BUILD_SUBDIR/jogl-demos.jar com.jogamp.newt.util.MainThread $* 2>&1 | tee cvm-dbg-newt.log