diff options
author | Sven Gothel <[email protected]> | 2014-01-26 02:14:26 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-01-26 02:14:26 +0100 |
commit | aac4c5fc4ab7c77eff3b71f518100dd182ec2c33 (patch) | |
tree | 3883e6e9a97146a0cbf503ff67f7b58870fe22dd /make/scripts | |
parent | ac84afd26ad3b34851a423fb90e6c819b9dc9495 (diff) |
Cleanup Build: GlueGen config files, stub_includes; Add JoclVersion, Android JoclVersionActivity
Cleanup Build:
- Move gluegen config files into make/config (cleanup)
- Move stub_includes into respective folder make/stub_includes
and keep resources 'clean'
JoclVersion:
- Analoge to JoglVersion, replaces JOCLVersion (deprecated for now)
- Added text based CL info dump.
JoclVersionActivity:
- Analog to JoclVersionActivity
- Added full launch .. tested on Android (but no OpenCL avail.)
Diffstat (limited to 'make/scripts')
-rwxr-xr-x | make/scripts/adb-install-all-armv6.sh | 4 | ||||
-rwxr-xr-x | make/scripts/adb-logcat.sh | 4 | ||||
-rwxr-xr-x | make/scripts/adb-reinstall-all-armv6.sh | 5 | ||||
-rwxr-xr-x | make/scripts/adb-uninstall-all.sh | 4 | ||||
-rwxr-xr-x | make/scripts/java-win.bat | 5 | ||||
-rwxr-xr-x | make/scripts/make.jocl.all.android-armv6-cross.sh | 4 | ||||
-rwxr-xr-x | make/scripts/setenv-jocl.sh | 131 | ||||
-rwxr-xr-x | make/scripts/tests-osx-x32.sh | 7 | ||||
-rwxr-xr-x | make/scripts/tests-osx-x64.sh | 14 | ||||
-rwxr-xr-x | make/scripts/tests-solx32.sh | 10 | ||||
-rwxr-xr-x | make/scripts/tests-solx64.sh | 10 | ||||
-rwxr-xr-x | make/scripts/tests-win.bat | 1 | ||||
-rwxr-xr-x | make/scripts/tests-x32.bat | 28 | ||||
-rwxr-xr-x | make/scripts/tests-x32.sh | 13 | ||||
-rwxr-xr-x | make/scripts/tests-x64.bat | 25 | ||||
-rwxr-xr-x | make/scripts/tests-x64.sh | 19 | ||||
-rw-r--r-- | make/scripts/tests.sh | 111 |
17 files changed, 394 insertions, 1 deletions
diff --git a/make/scripts/adb-install-all-armv6.sh b/make/scripts/adb-install-all-armv6.sh new file mode 100755 index 00000000..3abd89c6 --- /dev/null +++ b/make/scripts/adb-install-all-armv6.sh @@ -0,0 +1,4 @@ +#adb $* install ../../gluegen/build-android-armv6/jogamp-android-launcher.apk +#adb $* install ../../gluegen/build-android-armv6/gluegen-rt-android-armeabi.apk +adb $* install ../build-android-armv6/jar/jocl-android-armeabi.apk +adb $* install ../build-android-armv6/jar/jocl-test-android.apk diff --git a/make/scripts/adb-logcat.sh b/make/scripts/adb-logcat.sh new file mode 100755 index 00000000..443011f8 --- /dev/null +++ b/make/scripts/adb-logcat.sh @@ -0,0 +1,4 @@ +sdir=`dirname $0` + +adb $* logcat -c +adb $* logcat 2>&1 | tee adb-logcat.log diff --git a/make/scripts/adb-reinstall-all-armv6.sh b/make/scripts/adb-reinstall-all-armv6.sh new file mode 100755 index 00000000..0e62c594 --- /dev/null +++ b/make/scripts/adb-reinstall-all-armv6.sh @@ -0,0 +1,5 @@ +sdir=`dirname $0` + +$sdir/adb-uninstall-all.sh $* +$sdir/adb-install-all-armv6.sh $* + diff --git a/make/scripts/adb-uninstall-all.sh b/make/scripts/adb-uninstall-all.sh new file mode 100755 index 00000000..7a293a9f --- /dev/null +++ b/make/scripts/adb-uninstall-all.sh @@ -0,0 +1,4 @@ +#adb $* uninstall jogamp.android.launcher +#adb $* uninstall com.jogamp.common +adb $* uninstall com.jogamp.opencl +adb $* uninstall com.jogamp.opencl.test diff --git a/make/scripts/java-win.bat b/make/scripts/java-win.bat new file mode 100755 index 00000000..2b45ae51 --- /dev/null +++ b/make/scripts/java-win.bat @@ -0,0 +1,5 @@ +
+REM %J2RE_HOME%\bin\java -classpath %CP_ALL% "-Djava.library.path=%LIB_DIR%" %D_ARGS% %X_ARGS% %* > java-win.log 2>&1
+%J2RE_HOME%\bin\java -classpath %CP_ALL% %D_ARGS% %X_ARGS% %* > java-win.log 2>&1
+tail java-win.log
+
diff --git a/make/scripts/make.jocl.all.android-armv6-cross.sh b/make/scripts/make.jocl.all.android-armv6-cross.sh index 01c87a42..1d6a8396 100755 --- a/make/scripts/make.jocl.all.android-armv6-cross.sh +++ b/make/scripts/make.jocl.all.android-armv6-cross.sh @@ -1,5 +1,7 @@ #! /bin/sh +SDIR=`dirname $0` + if [ -e $SDIR/../../../gluegen/make/scripts/setenv-build-jogl-x86_64.sh ] ; then . $SDIR/../../../gluegen/make/scripts/setenv-build-jogl-x86_64.sh fi @@ -84,7 +86,7 @@ export TARGET_PLATFORM_ROOT=${NDK_ROOT}/platforms/android-${ANDROID_VERSION}/arc # Need to add toolchain bins to the PATH. export PATH="$NDK_TOOLCHAIN_ROOT/$TARGET_TRIPLE/bin:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools/17.0.0:$PATH" -export GLUEGEN_CPPTASKS_FILE=`pwd`/../gluegen/make/lib/gluegen-cpptasks-android-armv6.xml +export GLUEGEN_CPPTASKS_FILE=`pwd`/../../gluegen/make/lib/gluegen-cpptasks-android-armv6.xml #export JUNIT_DISABLED="true" #export JUNIT_RUN_ARG0="-Dnewt.test.Screen.disableScreenMode" diff --git a/make/scripts/setenv-jocl.sh b/make/scripts/setenv-jocl.sh new file mode 100755 index 00000000..72819b4e --- /dev/null +++ b/make/scripts/setenv-jocl.sh @@ -0,0 +1,131 @@ +#! /bin/sh + +function print_usage() { + echo "Usage: $0 jogl-build-dir" +} + +if [ -z "$1" ] ; then + echo JOCL BUILD DIR missing + print_usage + exit +fi + +if [ -e /opt-share/etc/profile.ant ] ; then + . /opt-share/etc/profile.ant +fi + +JOCL_BUILDDIR="$1" +shift + +THISDIR=`pwd` + +if [ -e "$JOCL_BUILDDIR" ] ; then + JOCL_DIR="$JOCL_BUILDDIR/.." + JOCL_BUILDDIR_BASE=`basename "$JOCL_BUILDDIR"` +else + echo JOCL_BUILDDIR "$JOCL_BUILDDIR" not exist or not given + print_usage + exit +fi + +gpf=`find ../../gluegen/make -name jogamp-env.xml` +if [ -z "$gpf" ] ; then + gpf=`find .. -name jogamp-env.xml` +fi +if [ -z "$gpf" ] ; then + echo GLUEGEN_BUILDDIR not found + print_usage + exit +fi + +GLUEGEN_DIR=`dirname $gpf`/.. +GLUEGEN_BUILDDIR="$GLUEGEN_DIR"/"$JOCL_BUILDDIR_BASE" +if [ ! -e "$GLUEGEN_BUILDDIR" ] ; then + echo GLUEGEN_BUILDDIR "$GLUEGEN_BUILDDIR" does not exist + print_usage + exit +fi +GLUEGEN_JAR="$GLUEGEN_BUILDDIR"/gluegen-rt.jar +GLUEGEN_OS="$GLUEGEN_BUILDDIR"/obj +JUNIT_JAR="$GLUEGEN_DIR"/make/lib/junit.jar + +joalpf=`find ../../joal -name joal.iml` +if [ -z "$joalpf" ] ; then + joalpf=`find .. -name joal.iml` +fi +if [ -z "$joalpf" ] ; then + echo JOAL_BUILDDIR not found + print_usage + exit +fi +JOAL_DIR=`dirname $joalpf` +JOAL_BUILDDIR="$JOAL_DIR"/"$JOCL_BUILDDIR_BASE" +if [ ! -e "$JOAL_BUILDDIR" ] ; then + echo JOAL_BUILDDIR "$JOAL_BUILDDIR" does not exist + print_usage + exit +fi +JOAL_JAR="$JOAL_BUILDDIR"/jar/joal.jar + +joglpf=`find ../../jogl -name jogl.iml` +if [ -z "$joglpf" ] ; then + joglpf=`find .. -name jogl.iml` +fi +if [ -z "$joglpf" ] ; then + echo JOGL_BUILDDIR not found + print_usage + exit +fi +JOGL_DIR=`dirname $joglpf` +JOGL_BUILDDIR="$JOGL_DIR"/"$JOCL_BUILDDIR_BASE" +if [ ! -e "$JOGL_BUILDDIR" ] ; then + echo JOGL_BUILDDIR "$JOGL_BUILDDIR" does not exist + print_usage + exit +fi +JOGL_JAR="$JOGL_BUILDDIR"/jar/jogl-all.jar + +if [ -z "$ANT_PATH" ] ; then + ANT_PATH=$(dirname $(dirname $(which ant))) + if [ -e $ANT_PATH/lib/ant.jar ] ; then + export ANT_PATH + echo autosetting ANT_PATH to $ANT_PATH + fi +fi +if [ -z "$ANT_PATH" ] ; then + echo ANT_PATH does not exist, set it + print_usage + exit +fi +ANT_JARS=$ANT_PATH/lib/ant.jar:$ANT_PATH/lib/ant-junit.jar + +JOCL_JAR="$JOCL_BUILDDIR"/jar/jocl.jar + +echo GLUEGEN BUILDDIR: "$GLUEGEN_BUILDDIR" +echo JOAL BUILDDIR: "$JOAL_BUILDDIR" +echo JOGL BUILDDIR: "$JOGL_BUILDDIR" +echo JOCL DIR: "$JOCL_DIR" +echo JOCL BUILDDIR: "$JOCL_BUILDDIR" +echo JOCL BUILDDIR BASE: "$JOCL_BUILDDIR_BASE" + +J2RE_HOME=$(dirname $(dirname $(which java))) +JAVA_HOME=$(dirname $(dirname $(which javac))) +CP_SEP=: + +JOGAMP_ALL_CLASSPATH=.:"$GLUEGEN_JAR":"$JOAL_JAR":"$JOGL_JAR":"$JOCL_JAR":"$JUNIT_JAR":"$ANT_JARS" +CLASSPATH="$JOGAMP_ALL_CLASSPATH" +export JOGAMP_ALL_CLASSPATH CLASSPATH + +# We use TempJarCache per default now! +#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 JOGAMP_ALL_CLASSPATH: "$JOGAMP_ALL_CLASSPATH" +echo CLASSPATH: "$CLASSPATH" +echo +echo MacOSX REMEMBER to add the JVM arguments "-XstartOnFirstThread -Djava.awt.headless=true" for running demos without AWT, e.g. NEWT +echo MacOSX REMEMBER to add the JVM arguments "-XstartOnFirstThread -Djava.awt.headless=true com.jogamp.newt.util.MainThread" for running demos with NEWT + +PATH=$J2RE_HOME/bin:$JAVA_HOME/bin:$PATH +export PATH + diff --git a/make/scripts/tests-osx-x32.sh b/make/scripts/tests-osx-x32.sh new file mode 100755 index 00000000..e7f4f01e --- /dev/null +++ b/make/scripts/tests-osx-x32.sh @@ -0,0 +1,7 @@ +#! /bin/bash + +spath=`dirname $0` + +. $spath/tests.sh /usr/bin/java -d32 ../build-macosx $* + + diff --git a/make/scripts/tests-osx-x64.sh b/make/scripts/tests-osx-x64.sh new file mode 100755 index 00000000..5d9cd6f6 --- /dev/null +++ b/make/scripts/tests-osx-x64.sh @@ -0,0 +1,14 @@ +#! /bin/bash + +export DYLD_LIBRARY_PATH=/usr/local/libav:$DYLD_LIBRARY_PATH + +JAVA_HOME=`/usr/libexec/java_home -version 1.7` +#JAVA_HOME=`/usr/libexec/java_home -version 1.7.0_25` +#JAVA_HOME=`/usr/libexec/java_home -version 1.6.0` +PATH=$JAVA_HOME/bin:$PATH +export JAVA_HOME PATH + +spath=`dirname $0` + +. $spath/tests.sh $JAVA_HOME/bin/java -d64 ../build-macosx $* + diff --git a/make/scripts/tests-solx32.sh b/make/scripts/tests-solx32.sh new file mode 100755 index 00000000..996dcc60 --- /dev/null +++ b/make/scripts/tests-solx32.sh @@ -0,0 +1,10 @@ +#! /bin/bash + +SDIR=`dirname $0` + +if [ -e $SDIR/../../../gluegen/make/scripts/setenv-build-jogl-x86.sh ] ; then + . $SDIR/../../../gluegen/make/scripts/setenv-build-jogl-x86.sh +fi + +. $SDIR/tests.sh `which java` -d32 ../build-solaris-x86 $* + diff --git a/make/scripts/tests-solx64.sh b/make/scripts/tests-solx64.sh new file mode 100755 index 00000000..3500f1b1 --- /dev/null +++ b/make/scripts/tests-solx64.sh @@ -0,0 +1,10 @@ +#! /bin/bash + +SDIR=`dirname $0` + +if [ -e $SDIR/../../../gluegen/make/scripts/setenv-build-jogl-x86_64.sh ] ; then + . $SDIR/../../../gluegen/make/scripts/setenv-build-jogl-x86_64.sh +fi + +. $SDIR/tests.sh `which java` -d64 ../build-solaris-x86_64 $* + diff --git a/make/scripts/tests-win.bat b/make/scripts/tests-win.bat new file mode 100755 index 00000000..583b5cde --- /dev/null +++ b/make/scripts/tests-win.bat @@ -0,0 +1 @@ +scripts\java-win.bat com.jogamp.opencl.JoclVersion %* diff --git a/make/scripts/tests-x32.bat b/make/scripts/tests-x32.bat new file mode 100755 index 00000000..c8ead0ad --- /dev/null +++ b/make/scripts/tests-x32.bat @@ -0,0 +1,28 @@ +
+set BLD_SUB=build-win32
+set J2RE_HOME=c:\jre1.7.0_45_x32
+set JAVA_HOME=c:\jdk1.7.0_45_x32
+set ANT_PATH=C:\apache-ant-1.8.2
+
+set PROJECT_ROOT=D:\projects\jogamp\jogl
+set BLD_DIR=..\%BLD_SUB%
+
+REM set FFMPEG_LIB=C:\ffmpeg_libav\lavc53_lavf53_lavu51-ffmpeg\x32
+set FFMPEG_LIB=C:\ffmpeg_libav\lavc55_lavf55_lavu52-ffmpeg\x32
+REM set FFMPEG_LIB=C:\ffmpeg_libav\lavc54_lavf54_lavu52_lavr01-libav\x32
+
+REM set PATH=%JAVA_HOME%\bin;%ANT_PATH%\bin;%PATH%
+REM set PATH=%JAVA_HOME%\bin;%ANT_PATH%\bin;%PROJECT_ROOT%\make\lib\external\angle\win32\20120127;%PATH%
+REM set PATH=%JAVA_HOME%\bin;%ANT_PATH%\bin;%PROJECT_ROOT%\make\lib\external\angle\win32\20121010-chrome;%PATH%
+REM set PATH=%JAVA_HOME%\bin;%ANT_PATH%\bin;%PROJECT_ROOT%\make\lib\external\PVRVFrame\OGLES-2.0\Windows_x86_32;%PATH%
+set PATH=%JAVA_HOME%\bin;%ANT_PATH%\bin;%FFMPEG_LIB%;%PATH%
+
+set BLD_DIR=..\%BLD_SUB%
+REM set LIB_DIR=..\..\gluegen\%BLD_SUB%\obj;%BLD_DIR%\lib
+set LIB_DIR=
+
+set CP_ALL=.;%BLD_DIR%\jar\jogl-all.jar;%BLD_DIR%\jar\jogl-test.jar;..\..\gluegen\%BLD_SUB%\gluegen-rt.jar;..\..\gluegen\make\lib\junit.jar;%ANT_PATH%\lib\ant.jar;%ANT_PATH%\lib\ant-junit.jar;%BLD_DIR%\..\make\lib\swt\win32-win32-x86\swt-debug.jar
+
+echo CP_ALL %CP_ALL%
+
+scripts\tests-win.bat %*
diff --git a/make/scripts/tests-x32.sh b/make/scripts/tests-x32.sh new file mode 100755 index 00000000..858ed5fd --- /dev/null +++ b/make/scripts/tests-x32.sh @@ -0,0 +1,13 @@ +#! /bin/bash + +SDIR=`dirname $0` + +if [ -e $SDIR/../../../gluegen/make/scripts/setenv-build-jogl-x86.sh ] ; then + . $SDIR/../../../gluegen/make/scripts/setenv-build-jogl-x86.sh +fi + +export SWT_CLASSPATH=`pwd`/lib/swt/gtk-linux-x86/swt-debug.jar + +. $SDIR/tests.sh `which java` -d32 ../build-x86 $* + + diff --git a/make/scripts/tests-x64.bat b/make/scripts/tests-x64.bat new file mode 100755 index 00000000..ac74f4c9 --- /dev/null +++ b/make/scripts/tests-x64.bat @@ -0,0 +1,25 @@ +
+set BLD_SUB=build-win64
+set J2RE_HOME=c:\jre1.7.0_45_x64
+set JAVA_HOME=c:\jdk1.7.0_45_x64
+set ANT_PATH=C:\apache-ant-1.8.2
+
+REM set FFMPEG_LIB=C:\ffmpeg_libav\lavc53_lavf53_lavu51-ffmpeg\x64
+REM set FFMPEG_LIB=C:\ffmpeg_libav\lavc55_lavf55_lavu52-ffmpeg\x64
+set FFMPEG_LIB=C:\ffmpeg_libav\lavc55_lavf55_lavu52-ffmpeg-2013-10-09\x64
+REM set FFMPEG_LIB=C:\ffmpeg_libav\lavc54_lavf54_lavu52_lavr01-libav\x64
+
+REM set PATH=%JAVA_HOME%\bin;%ANT_PATH%\bin;%PROJECT_ROOT%\make\lib\external\PVRVFrame\OGLES-2.0\Windows_x86_64;%PATH%
+set PATH=%JAVA_HOME%\bin;%ANT_PATH%\bin;%FFMPEG_LIB%;%PATH%
+
+set BLD_DIR=..\%BLD_SUB%
+REM set LIB_DIR=%BLD_DIR%\lib;..\..\gluegen\%BLD_SUB%\obj
+set LIB_DIR=
+
+set CP_ALL=.;%BLD_DIR%\jar\jogl-all.jar;%BLD_DIR%\jar\jogl-test.jar;..\..\joal\%BLD_SUB%\joal.jar;..\..\gluegen\%BLD_SUB%\gluegen-rt.jar;..\..\gluegen\make\lib\junit.jar;%ANT_PATH%\lib\ant.jar;%ANT_PATH%\lib\ant-junit.jar;%BLD_DIR%\..\make\lib\swt\win32-win32-x86_64\swt-debug.jar
+echo CP_ALL %CP_ALL%
+
+set X_ARGS="-Dsun.java2d.noddraw=true" "-Dsun.awt.noerasebackground=true"
+
+scripts\tests-win.bat %*
+
diff --git a/make/scripts/tests-x64.sh b/make/scripts/tests-x64.sh new file mode 100755 index 00000000..fe2fc495 --- /dev/null +++ b/make/scripts/tests-x64.sh @@ -0,0 +1,19 @@ +#! /bin/bash + +SDIR=`dirname $0` + +#export LD_LIBRARY_PATH=/home/sven/libav-0.8/lib:$LD_LIBRARY_PATH +#export LD_LIBRARY_PATH=/home/sven/ffmpeg-0.10/lib:$LD_LIBRARY_PATH + +#export LD_LIBRARY_PATH=/home/sven/libav-9.x/lib:$LD_LIBRARY_PATH +export LD_LIBRARY_PATH=/home/sven/ffmpeg-1.2/lib:$LD_LIBRARY_PATH + +#export LD_LIBRARY_PATH=/home/sven/libav-10.x/lib:$LD_LIBRARY_PATH +#export LD_LIBRARY_PATH=/home/sven/ffmpeg-2.x/lib:$LD_LIBRARY_PATH + +if [ -e $SDIR/../../../gluegen/make/scripts/setenv-build-jogl-x86_64.sh ] ; then + . $SDIR/../../../gluegen/make/scripts/setenv-build-jogl-x86_64.sh +fi + +. $SDIR/tests.sh `which java` -d64 ../build-x86_64 $* + diff --git a/make/scripts/tests.sh b/make/scripts/tests.sh new file mode 100644 index 00000000..642985fd --- /dev/null +++ b/make/scripts/tests.sh @@ -0,0 +1,111 @@ +#! /bin/bash + +if [ -z "$1" -o -z "$2" -o -z "$3" ] ; then + echo Usage $0 java-exe java-xargs build-dir + exit 0 +fi + +javaexe="$1" +shift +javaxargs=$1 +shift +bdir="$1" +shift + +if [ ! -x "$javaexe" ] ; then + echo java-exe "$javaexe" is not an executable + exit 1 +fi +if [ ! -d "$bdir" ] ; then + echo build-dir "$bdir" is not a directory + exit 1 +fi + +rm -f java-run.log + +spath=`dirname $0` + +. $spath/setenv-jocl.sh "$bdir" +unset CLASSPATH + +MOSX=0 +MOSX_MT=0 +uname -a | grep -i Darwin && MOSX=1 +if [ $MOSX -eq 1 ] ; then + echo setup OSX environment vars + #export NSZombieEnabled=YES + export NSTraceEvents=YES + #export OBJC_PRINT_EXCEPTIONS=YES + echo NSZombieEnabled $NSZombieEnabled 2>&1 | tee -a java-run.log + echo NSTraceEvents $NSTraceEvents 2>&1 | tee -a java-run.log + echo OBJC_PRINT_EXCEPTIONS $OBJC_PRINT_EXCEPTIONS 2>&1 | tee -a java-run.log + MOSX_MT=1 +fi + +#export LD_LIBRARY_PATH=/opt-linux-x86_64/opencl-lala/lib64:$LD_LIBRARY_PATH + +which "$javaexe" 2>&1 | tee -a java-run.log +"$javaexe" -version 2>&1 | tee -a java-run.log +echo LD_LIBRARY_PATH $LD_LIBRARY_PATH 2>&1 | tee -a java-run.log +echo "$javaexe" $javaxargs $X_ARGS $D_ARGS $* 2>&1 | tee -a java-run.log +echo MacOsX $MOSX + +function jrun() { + awton=$1 + shift + + #D_ARGS="-Djocl.debug.DebugCL -Djocl.debug.TraceCL" + + #D_ARGS="-Djogamp.debug=all" + #D_ARGS="-Dnativewindow.debug=all" + #D_ARGS="-Djogl.debug=all" + #D_ARGS="-Dnewt.debug=all" + #D_ARGS="-Djocl=all" + + #X_ARGS="-verbose:jni" + #X_ARGS="-Xrs" + + if [ $awton -eq 1 ] ; then + export CLASSPATH=$JOGAMP_ALL_CLASSPATH + echo CLASSPATH $CLASSPATH + X_ARGS="-Djava.awt.headless=false $X_ARGS" + else + export CLASSPATH=$JOGAMP_ALL_CLASSPATH + X_ARGS="-Djava.awt.headless=true $X_ARGS" + fi + if [ ! -z "$CUSTOM_CLASSPATH" ] ; then + export CLASSPATH=$CUSTOM_CLASSPATH:$CLASSPATH + fi + echo CLASSPATH $CLASSPATH + if [ $MOSX_MT -eq 1 ] ; then + if [ $awton -eq 0 ] ; then + # No AWT, No SWT -> Preserve Main-Thread + X_ARGS="-XstartOnFirstThread $X_ARGS" + C_ARG="com.jogamp.newt.util.MainThread" + fi + fi + echo + echo "Test Start: $*" + echo + echo "$javaexe" $javaxargs $X_ARGS $D_ARGS $C_ARG $* + #gdb --args "$javaexe" $javaxargs $X_ARGS $D_ARGS $C_ARG $* + "$javaexe" $javaxargs $X_ARGS $D_ARGS $C_ARG $* + echo + echo "Test End: $*" + echo +} + +function testnoawt() { + jrun 0 $* 2>&1 | tee -a java-run.log +} + +function testawt() { + MOSX_MT=0 + jrun 1 $* 2>&1 | tee -a java-run.log +} + +# +# Version +# +testnoawt com.jogamp.opencl.JoclVersion $* + |