diff options
author | Sven Gothel <[email protected]> | 2010-05-04 02:43:09 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-05-04 02:43:09 +0200 |
commit | 63916148e837942c9ec996320bda805e80d7e06e (patch) | |
tree | e45c041c05cf1ba33c3cd3af9fc09fdec7eb5ec8 /make/scripts | |
parent | 10c26e556006b5727b0076fc2e486459a63bdf76 (diff) |
Move all scripts to it's folder
Diffstat (limited to 'make/scripts')
-rwxr-xr-x | make/scripts/java-run-newt.sh | 41 | ||||
-rwxr-xr-x | make/scripts/java-run.sh | 37 | ||||
-rw-r--r-- | make/scripts/java-win32-dbg.bat | 16 | ||||
-rw-r--r-- | make/scripts/java-win32.bat | 16 | ||||
-rw-r--r-- | make/scripts/java-win64-dbg.bat | 16 | ||||
-rw-r--r-- | make/scripts/java-win64.bat | 16 | ||||
-rw-r--r-- | make/scripts/make.jogl.all.linux-x86.sh | 51 | ||||
-rw-r--r-- | make/scripts/make.jogl.all.linux-x86_64.sh | 51 | ||||
-rw-r--r-- | make/scripts/make.jogl.all.macosx.sh | 15 | ||||
-rw-r--r-- | make/scripts/make.jogl.all.win32.bat | 17 | ||||
-rw-r--r-- | make/scripts/make.jogl.all.win64.bat | 17 | ||||
-rw-r--r-- | make/scripts/make.jogl.cdcfp.linux-x86.sh | 38 | ||||
-rw-r--r-- | make/scripts/make.jogl.cdcfp.macosx.sh | 27 | ||||
-rw-r--r-- | make/scripts/make.jogl.doc.all.x86_64.sh | 11 | ||||
-rw-r--r-- | make/scripts/make.jogl.doc.x86_64.sh | 11 | ||||
-rw-r--r-- | make/scripts/setenv-jogl.sh | 98 | ||||
-rwxr-xr-x | make/scripts/setvc9-jogl.bat | 9 |
17 files changed, 487 insertions, 0 deletions
diff --git a/make/scripts/java-run-newt.sh b/make/scripts/java-run-newt.sh new file mode 100755 index 000000000..abf57067c --- /dev/null +++ b/make/scripts/java-run-newt.sh @@ -0,0 +1,41 @@ +#! /bin/bash + +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 + +. ./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" + +java $X_ARGS -Djava.awt.headless=true $D_ARGS com.jogamp.newt.util.MainThread $* 2>&1 | tee java-run-newt.log diff --git a/make/scripts/java-run.sh b/make/scripts/java-run.sh new file mode 100755 index 000000000..0246156db --- /dev/null +++ b/make/scripts/java-run.sh @@ -0,0 +1,37 @@ +#! /bin/sh + +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 + +. ./setenv-jogl.sh $1 +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" + +java $X_ARGS $D_ARGS $* 2>&1 | tee java-run.log diff --git a/make/scripts/java-win32-dbg.bat b/make/scripts/java-win32-dbg.bat new file mode 100644 index 000000000..9d9af8262 --- /dev/null +++ b/make/scripts/java-win32-dbg.bat @@ -0,0 +1,16 @@ +
+set BLD_SUB=build-win32
+set J2RE_HOME=c:\jre1.6.0_20_x32
+set JAVA_HOME=c:\jdk1.6.0_20_x32
+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/scripts/java-win32.bat b/make/scripts/java-win32.bat new file mode 100644 index 000000000..dade13565 --- /dev/null +++ b/make/scripts/java-win32.bat @@ -0,0 +1,16 @@ +
+set BLD_SUB=build-win32
+set J2RE_HOME=c:\jre1.6.0_20_x32
+set JAVA_HOME=c:\jdk1.6.0_20_x32
+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/scripts/java-win64-dbg.bat b/make/scripts/java-win64-dbg.bat new file mode 100644 index 000000000..b5ce58fa3 --- /dev/null +++ b/make/scripts/java-win64-dbg.bat @@ -0,0 +1,16 @@ +
+set BLD_SUB=build-win32
+set J2RE_HOME=c:\jre1.6.0_20_x64
+set JAVA_HOME=c:\jdk1.6.0_20_x64
+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/scripts/java-win64.bat b/make/scripts/java-win64.bat new file mode 100644 index 000000000..d0b8536f7 --- /dev/null +++ b/make/scripts/java-win64.bat @@ -0,0 +1,16 @@ +
+set BLD_SUB=build-win32
+set J2RE_HOME=c:\jre1.6.0_20_x64
+set JAVA_HOME=c:\jdk1.6.0_20_x64
+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/scripts/make.jogl.all.linux-x86.sh b/make/scripts/make.jogl.all.linux-x86.sh new file mode 100644 index 000000000..d73d3b7f7 --- /dev/null +++ b/make/scripts/make.jogl.all.linux-x86.sh @@ -0,0 +1,51 @@ +#! /bin/sh + +if [ -e ../../setenv-build-jogl-x86.sh ] ; then + . ../../setenv-build-jogl-x86.sh +fi + +if [ -z "$ANT_PATH" ] ; then + if [ -e /usr/share/ant/bin/ant -a -e /usr/share/ant/lib/ant.jar ] ; then + ANT_PATH=/usr/share/ant + 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 + exit +fi + +if [ "$1" = "-libdir" ] ; then + shift + if [ -z "$1" ] ; then + echo libdir argument missing + print_usage + exit + fi + CUSTOMLIBDIR="-Dcustom.libdir=$1" + shift +fi + + +# -Djogl.cg=1 -Dx11.cg.lib=../../lib-linux-x86_64 +# -Dc.compiler.debug=true +# -DuseOpenMAX=true \ +# -Dbuild.noarchives=true +# -Dgluegen.cpptasks.detected.os=true \ +# -DisUnix=true \ +# -DisLinux=true \ +# -DisLinuxX86=true \ +# -DisX11=true \ +# -Djogl.cg=1 -Dx11.cg.lib=../../lib-linux-x86 \ + +ant \ + $CUSTOMLIBDIR \ + -Dgluegen-cpptasks.file=`pwd`/../../gluegen/make/lib/gluegen-cpptasks-linux-32bit.xml \ + -Dbuild.noarchives=true \ + -Djogl.cg=1 -Dx11.cg.lib=../../lib-linux-x86 \ + -Drootrel.build=build-x86 \ + -Dos.arch=x86 \ + -DuseKD=true \ + -DuseOpenMAX=true \ + $* 2>&1 | tee make.jogl.all.linux-x86.log diff --git a/make/scripts/make.jogl.all.linux-x86_64.sh b/make/scripts/make.jogl.all.linux-x86_64.sh new file mode 100644 index 000000000..b17cd2f15 --- /dev/null +++ b/make/scripts/make.jogl.all.linux-x86_64.sh @@ -0,0 +1,51 @@ +#! /bin/sh + +if [ -e ../../setenv-build-jogl-x86_64.sh ] ; then + . ../../setenv-build-jogl-x86_64.sh +fi + +if [ -z "$ANT_PATH" ] ; then + if [ -e /usr/share/ant/bin/ant -a -e /usr/share/ant/lib/ant.jar ] ; then + ANT_PATH=/usr/share/ant + 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 + exit +fi + +if [ "$1" = "-libdir" ] ; then + shift + if [ -z "$1" ] ; then + echo libdir argument missing + print_usage + exit + fi + CUSTOMLIBDIR="-Dcustom.libdir=$1" + shift +fi + +# -Djogl.cg=1 -Dx11.cg.lib=../../lib-linux-x86_64 +# -Dc.compiler.debug=true \ +# -Dbuild.noarchives=true \ + +# -Dgluegen.cpptasks.detected.os=true \ +# -DisUnix=true \ +# -DisLinux=true \ +# -DisLinuxAMD64=true \ +# -DisX11=true \ +# -Dbuild.noarchives=true \ + +#LD_LIBRARY_PATH=/opt-linux-x86_64/mesa-7.8.1/lib64 +#export LD_LIBRARY_PATH + +ant \ + $CUSTOMLIBDIR \ + -Dbuild.noarchives=true \ + -Djogl.cg=1 -Dx11.cg.lib=../../lib-linux-x86_64 \ + -Drootrel.build=build-x86_64 \ + -DuseKD=true \ + -DuseOpenMAX=true \ + $* 2>&1 | tee make.jogl.all.linux-x86_64.log diff --git a/make/scripts/make.jogl.all.macosx.sh b/make/scripts/make.jogl.all.macosx.sh new file mode 100644 index 000000000..a85f9344f --- /dev/null +++ b/make/scripts/make.jogl.all.macosx.sh @@ -0,0 +1,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 diff --git a/make/scripts/make.jogl.all.win32.bat b/make/scripts/make.jogl.all.win32.bat new file mode 100644 index 000000000..2638ffbac --- /dev/null +++ b/make/scripts/make.jogl.all.win32.bat @@ -0,0 +1,17 @@ +set THISDIR="C:\JOGL"
+
+set J2RE_HOME=c:\jre1.6.0_20_x32
+set JAVA_HOME=c:\jdk1.6.0_20_x32
+set ANT_PATH=C:\apache-ant-1.8.0
+
+set PATH=%JAVA_HOME%\bin;%ANT_PATH%\bin;c:\mingw\bin;%PATH%
+
+set LIB_GEN=%THISDIR%\lib
+set CLASSPATH=.;%THISDIR%\build-win32\classes
+REM -Dc.compiler.debug=true
+REM -DuseOpenMAX=true
+REM -DuseKD=true
+REM -Djogl.cg=1 -D-Dwindows.cg.lib=C:\Cg-2.2
+REM -Dbuild.noarchives=true
+
+ant -Drootrel.build=build-win32 -Djogl.cg=1 -Dwindows.cg.lib=C:\Cg-2.2\lib %1 %2 %3 %4 %5 %6 %7 %8 %9 > make.jogl.all.win32.log 2>&1
diff --git a/make/scripts/make.jogl.all.win64.bat b/make/scripts/make.jogl.all.win64.bat new file mode 100644 index 000000000..d549866ab --- /dev/null +++ b/make/scripts/make.jogl.all.win64.bat @@ -0,0 +1,17 @@ +set THISDIR="C:\JOGL"
+
+set J2RE_HOME=c:\jre1.6.0_20_x64
+set JAVA_HOME=c:\jdk1.6.0_20_x64
+set ANT_PATH=C:\apache-ant-1.8.0
+
+set PATH=%JAVA_HOME%\bin;%ANT_PATH%\bin;c:\mingw-w64\bin;c:\mingw\bin;%PATH%
+
+set LIB_GEN=%THISDIR%\lib
+set CLASSPATH=.;%THISDIR%\build-win64\classes
+REM -Dc.compiler.debug=true
+REM -DuseOpenMAX=true
+REM -DuseKD=true
+REM -Djogl.cg=1 -D-Dwindows.cg.lib=C:\Cg-2.2
+REM -Dbuild.noarchives=true
+
+ant -Drootrel.build=build-win64 -Djogl.cg=1 -Dwindows.cg.lib=C:\Cg-2.2\lib %1 %2 %3 %4 %5 %6 %7 %8 %9 > make.jogl.all.win64.log 2>&1
diff --git a/make/scripts/make.jogl.cdcfp.linux-x86.sh b/make/scripts/make.jogl.cdcfp.linux-x86.sh new file mode 100644 index 000000000..ad80f194d --- /dev/null +++ b/make/scripts/make.jogl.cdcfp.linux-x86.sh @@ -0,0 +1,38 @@ +#! /bin/sh + +if [ -e ../../setenv-build-jogl-x86.sh ] ; then + . ../../setenv-build-jogl-x86.sh +fi + +# -Dc.compiler.debug=true +# +# -Djavacdebug="false" \ +# -Djavacdebuglevel="none" \ +# +# -Djava.generate.skip=true \ +# -Dbuild.noarchives=true + +BUILD_SUBDIR=build-cdcfp-x86 + +ant -v \ + -Dgluegen-cpptasks.file=`pwd`/../../gluegen/make/lib/gluegen-cpptasks-linux-32bit.xml \ + -Dbuild.noarchives=true \ + -Drootrel.build=$BUILD_SUBDIR \ + -Dsetup.cdcfp=true \ + -Dgluegen.cpptasks.detected.os=true \ + -DisUnix=true \ + -DisLinux=true \ + -DisLinuxX86=true \ + -DisX11=true \ + -DuseOpenMAX=true \ + $* 2>&1 | tee make.jogl.cdcfp.linux-x86.log + +rm -rf ../$BUILD_SUBDIR/lib +mkdir -p ../$BUILD_SUBDIR/lib +for i in `find ../$BUILD_SUBDIR/ -name \*so` ; do + cp -v $i ../$BUILD_SUBDIR/lib/$(basename $i .so).so +done +for i in `find ../../gluegen/$BUILD_SUBDIR/ -name \*so` ; do + cp -v $i ../$BUILD_SUBDIR/lib/$(basename $i .so).so +done + diff --git a/make/scripts/make.jogl.cdcfp.macosx.sh b/make/scripts/make.jogl.cdcfp.macosx.sh new file mode 100644 index 000000000..d36f0bb7e --- /dev/null +++ b/make/scripts/make.jogl.cdcfp.macosx.sh @@ -0,0 +1,27 @@ +#! /bin/sh + +if [ -e /devtools/etc/profile.ant ] ; then + . /devtools/etc/profile.ant +fi + + +# -Dc.compiler.debug=true +# -Dbuild.noarchives=true + +BUILD_SUBDIR=build-cdcfp-macosx + +ant \ + -Dbuild.noarchives=true \ + -Dsetup.cdcfp=true \ + -Drootrel.build=$BUILD_SUBDIR \ + $* 2>&1 | tee make.jogl.cdcfp.macosx.log + +rm -rf ../$BUILD_SUBDIR/lib +mkdir -p ../$BUILD_SUBDIR/lib +for i in `find ../$BUILD_SUBDIR/ -name \*jnilib` ; do + cp -v $i ../$BUILD_SUBDIR/lib/$(basename $i .jnilib).so +done +for i in `find ../../gluegen/$BUILD_SUBDIR/ -name \*jnilib` ; do + cp -v $i ../$BUILD_SUBDIR/lib/$(basename $i .jnilib).so +done + diff --git a/make/scripts/make.jogl.doc.all.x86_64.sh b/make/scripts/make.jogl.doc.all.x86_64.sh new file mode 100644 index 000000000..3711171af --- /dev/null +++ b/make/scripts/make.jogl.doc.all.x86_64.sh @@ -0,0 +1,11 @@ +#! /bin/sh + +if [ -e ../../setenv-build-jogl-x86_64.sh ] ; then + . ../../setenv-build-jogl-x86_64.sh +fi + + +ant -v \ + -Dbuild.noarchives=true \ + -Drootrel.build=build-x86_64 \ + javadoc.spec javadoc javadoc.dev $* 2>&1 | tee make.jogl.doc.all.x86_64.log diff --git a/make/scripts/make.jogl.doc.x86_64.sh b/make/scripts/make.jogl.doc.x86_64.sh new file mode 100644 index 000000000..daf09ec33 --- /dev/null +++ b/make/scripts/make.jogl.doc.x86_64.sh @@ -0,0 +1,11 @@ +#! /bin/sh + +if [ -e ../../setenv-build-jogl-x86_64.sh ] ; then + . ../../setenv-build-jogl-x86_64.sh +fi + + +ant -v \ + -Dbuild.noarchives=true \ + -Drootrel.build=build-x86_64 \ + javadoc $* 2>&1 | tee make.jogl.doc.x86_64.log diff --git a/make/scripts/setenv-jogl.sh b/make/scripts/setenv-jogl.sh new file mode 100644 index 000000000..f7d42a193 --- /dev/null +++ b/make/scripts/setenv-jogl.sh @@ -0,0 +1,98 @@ +#! /bin/sh + +function print_usage() { + echo "Usage: $0 jogl-build-dir" +} + +if [ -z "$1" ] ; then + echo JOGL BUILD DIR missing + print_usage + exit +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 + exit +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 + exit +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 + exit +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 + if [ -e /usr/share/ant/bin/ant -a -e /usr/share/ant/lib/ant.jar ] ; then + ANT_PATH=/usr/share/ant + 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 + +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 + diff --git a/make/scripts/setvc9-jogl.bat b/make/scripts/setvc9-jogl.bat new file mode 100755 index 000000000..2e8338374 --- /dev/null +++ b/make/scripts/setvc9-jogl.bat @@ -0,0 +1,9 @@ +
+
+set PATH=C:\cygwin\devtools\share\apache-ant-1.8.0\bin;%PATH%
+set ANT_PATH=C:\cygwin\devtools\share\apache-ant-1.8.0
+
+c:
+cd C:\SUN\JOGL2\jogl\make
+
+"C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"
|