aboutsummaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-04-15 07:24:20 +0200
committerSven Gothel <[email protected]>2010-04-15 07:24:20 +0200
commitbd4904fb04ab2168aeaf76e74385b3991429289a (patch)
treec21cc1e959caecbeaed109506acbfb8b853eeda2 /make
parent2ae28d54858ff684bc2368e0476a7a357dc63432 (diff)
JOGL (Windows):
- WindowsWGLDrawableFactory is using [singleton] shared dummy resources for - Drawable and Context which are utilized in case they are needed .. They are removed at shutdown call - GLCapabilities - Set pbuffer as the HW capabilities show, hence onscreen && pbuffer is valid - DefaultGLCapabilitiesChooser: Respect PBuffer selection (fixed) Only skip a config, if request is !onscreen && pbuffer, but pbuffer n/a Tests: - JUnit Passed (Windows32: Chromium - Except PBuffer (n/a)
Diffstat (limited to 'make')
-rwxr-xr-xmake/java-run-newt.sh23
-rwxr-xr-xmake/java-run.sh19
-rw-r--r--make/java-win32-dbg.bat16
-rw-r--r--make/java-win32.bat16
-rw-r--r--make/setenv-jogl.sh92
5 files changed, 166 insertions, 0 deletions
diff --git a/make/java-run-newt.sh b/make/java-run-newt.sh
new file mode 100755
index 000000000..39654d03b
--- /dev/null
+++ b/make/java-run-newt.sh
@@ -0,0 +1,23 @@
+#! /bin/sh
+
+function print_usage() {
+ echo "Usage: $0 jogl-build-dir ..."
+}
+
+if [ -z "$1" ] ; then
+ echo JOGL BUILD DIR missing
+ print_usage
+ return
+fi
+
+. ./setenv-jogl.sh $1
+shift
+
+MOSX=0
+uname -a | grep -i Darwin && MOSX=1
+
+if [ $MOSX -eq 1 ] ; then
+ X_ARGS="-XstartOnFirstThread"
+fi
+
+java $X_ARGS -Djava.awt.headless=true com.jogamp.newt.util.MainThread $* 2>&1 | tee java-run-newt.log
diff --git a/make/java-run.sh b/make/java-run.sh
new file mode 100755
index 000000000..63fb6d3e9
--- /dev/null
+++ b/make/java-run.sh
@@ -0,0 +1,19 @@
+#! /bin/sh
+
+function print_usage() {
+ echo "Usage: $0 jogl-build-dir ..."
+}
+
+if [ -z "$1" ] ; then
+ echo JOGL BUILD DIR missing
+ print_usage
+ return
+fi
+
+. ./setenv-jogl.sh $1
+shift
+
+MOSX=0
+uname -a | grep -i Darwin && MOSX=1
+
+java $X_ARGS $* 2>&1 | tee java-run.log
diff --git a/make/java-win32-dbg.bat b/make/java-win32-dbg.bat
new file mode 100644
index 000000000..69287f8e9
--- /dev/null
+++ b/make/java-win32-dbg.bat
@@ -0,0 +1,16 @@
+
+set BLD_SUB=build-win32
+set J2RE_HOME=c:\jre1.6.0_19
+set JAVA_HOME=c:\jdk1.6.0_19
+set ANT_PATH=C:\apache-ant-1.8.0
+
+set PATH=%JAVA_HOME%\bin;%ANT_PATH%\bin;c:\mingw\bin;%PATH%
+
+set BLD_DIR=..\%BLD_SUB%
+set LIB_DIR=%BLD_DIR%\lib;..\..\gluegen\%BLD_SUB%\obj
+
+set CP_ALL=.;%BLD_DIR%\jogl\jogl.all.jar;%BLD_DIR%\nativewindow\nativewindow.all.jar;%BLD_DIR%\newt\newt.all.jar;%BLD_DIR%\jogl\jogl.test.jar;..\..\gluegen\%BLD_SUB%\gluegen-rt.jar;..\..\gluegen\make\lib\junit-4.5.jar;%ANT_PATH%\lib\ant.jar;%ANT_PATH%\lib\ant-junit.jar
+
+echo CP_ALL %CP_ALL%
+
+%J2RE_HOME%\bin\java -classpath %CP_ALL% "-Djava.library.path=%LIB_DIR%" "-Dnativewindow.debug=all" "-Djogl.debug=all" "-Dnewt.debug=all" "-Dsun.java2d.noddraw=true" "-Dsun.awt.noerasebackground=true" %1 %2 %3 %4 %5 %6 %7 %8 %9 > java-win32-dbg.log 2>&1
diff --git a/make/java-win32.bat b/make/java-win32.bat
new file mode 100644
index 000000000..5f731a14d
--- /dev/null
+++ b/make/java-win32.bat
@@ -0,0 +1,16 @@
+
+set BLD_SUB=build-win32
+set J2RE_HOME=c:\jre1.6.0_19
+set JAVA_HOME=c:\jdk1.6.0_19
+set ANT_PATH=C:\apache-ant-1.8.0
+
+set PATH=%JAVA_HOME%\bin;%ANT_PATH%\bin;c:\mingw\bin;%PATH%
+
+set BLD_DIR=..\%BLD_SUB%
+set LIB_DIR=%BLD_DIR%\lib;..\..\gluegen\%BLD_SUB%\obj
+
+set CP_ALL=.;%BLD_DIR%\jogl\jogl.all.jar;%BLD_DIR%\nativewindow\nativewindow.all.jar;%BLD_DIR%\newt\newt.all.jar;%BLD_DIR%\jogl\jogl.test.jar;..\..\gluegen\%BLD_SUB%\gluegen-rt.jar;..\..\gluegen\make\lib\junit-4.5.jar;%ANT_PATH%\lib\ant.jar;%ANT_PATH%\lib\ant-junit.jar
+
+echo CP_ALL %CP_ALL%
+
+%J2RE_HOME%\bin\java -classpath %CP_ALL% "-Djava.library.path=%LIB_DIR%" "-Dsun.java2d.noddraw=true" "-Dsun.awt.noerasebackground=true" %1 %2 %3 %4 %5 %6 %7 %8 %9 > java-win32.log 2>&1
diff --git a/make/setenv-jogl.sh b/make/setenv-jogl.sh
new file mode 100644
index 000000000..49c584459
--- /dev/null
+++ b/make/setenv-jogl.sh
@@ -0,0 +1,92 @@
+#! /bin/sh
+
+function print_usage() {
+ echo "Usage: $0 jogl-build-dir"
+}
+
+if [ -z "$1" ] ; then
+ echo JOGL BUILD DIR missing
+ print_usage
+ return
+fi
+
+if [ -e /devtools/etc/profile.ant ] ; then
+ . /devtools/etc/profile.ant
+fi
+
+JOGL_PROFILE=JOGL_ALL
+
+JOGL_BUILDDIR=$1
+shift
+
+THISDIR=`pwd`
+
+if [ -e "$JOGL_BUILDDIR" ] ; then
+ JOGL_DIR=$JOGL_BUILDDIR/..
+ JOGL_BUILDDIR_BASE=`basename $JOGL_BUILDDIR`
+else
+ echo JOGL_BUILDDIR $JOGL_BUILDDIR not exist or not given
+ print_usage
+ return
+fi
+
+gpf=`find ../../gluegen/make -name dynlink-unix.cfg`
+if [ -z "$gpf" ] ; then
+ gpf=`find .. -name dynlink-unix.cfg`
+fi
+if [ -z "$gpf" ] ; then
+ echo GLUEGEN_BUILDDIR not found
+ print_usage
+ return
+fi
+
+GLUEGEN_DIR=`dirname $gpf`/..
+GLUEGEN_BUILDDIR=$GLUEGEN_DIR/$JOGL_BUILDDIR_BASE
+if [ ! -e "$GLUEGEN_BUILDDIR" ] ; then
+ echo GLUEGEN_BUILDDIR $GLUEGEN_BUILDDIR does not exist
+ print_usage
+ return
+fi
+GLUEGEN_JAR=$GLUEGEN_BUILDDIR/gluegen-rt.jar
+GLUEGEN_OS=$GLUEGEN_BUILDDIR/obj
+JUNIT_JAR=$GLUEGEN_DIR/make/lib/junit-4.5.jar
+
+if [ -z "$ANT_PATH" ] ; then
+ echo ANT_PATH does not exist, set it
+ print_usage
+ return
+else
+ ANT_JARS=$ANT_PATH/lib/ant.jar:$ANT_PATH/lib/ant-junit.jar
+fi
+
+echo GLUEGEN BUILDDIR: $GLUEGEN_BUILDDIR
+echo JOGL DIR: $JOGL_DIR
+echo JOGL BUILDDIR: $JOGL_BUILDDIR
+echo JOGL BUILDDIR BASE: $JOGL_BUILDDIR_BASE
+echo JOGL PROFILE: $JOGL_PROFILE
+
+J2RE_HOME=$(which java)
+JAVA_HOME=$(which javac)
+CP_SEP=:
+
+. $JOGL_DIR/etc/profile.jogl $JOGL_PROFILE $JOGL_BUILDDIR
+
+SWT_CLASSPATH=$HOME/.java/swt.jar
+LIB=$THISDIR/lib
+
+CLASSPATH=.:$GLUEGEN_JAR:$JOGL_CLASSPATH:$SWT_CLASSPATH:$JUNIT_JAR:$ANT_JARS
+for i in $LIB/*jar ; do
+ CLASSPATH=$CLASSPATH:$i
+done
+export CLASSPATH
+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 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
+