From 5254fe67ca8cfb9867184a9abdfcd19fb829c14a Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 13 Dec 2010 18:03:12 +0100 Subject: enable joal-demos --- jnlp-files/placeholder | 0 make/build.xml | 108 +++++++++++++++------ make/scripts/make.joal-demos.all.linux-x86_64.sh | 23 +++++ make/scripts/make.joal-demos.all.win32.bat | 12 +++ make/scripts/make.joal-demos.all.win64.bat | 12 +++ .../devmaster/lesson1/SingleStaticSource.java | 4 +- .../devmaster/lesson2/LoopingAndFadeaway.java | 4 +- .../demos/devmaster/lesson3/MultipleSources.java | 4 +- .../devmaster/lesson5/SourcesSharingBuffers.java | 4 +- src/java/demos/devmaster/lesson8/OggStreamer.java | 8 +- src/java/demos/efx/EFXFilter.java | 14 +-- 11 files changed, 143 insertions(+), 50 deletions(-) create mode 100644 jnlp-files/placeholder create mode 100644 make/scripts/make.joal-demos.all.linux-x86_64.sh create mode 100755 make/scripts/make.joal-demos.all.win32.bat create mode 100755 make/scripts/make.joal-demos.all.win64.bat diff --git a/jnlp-files/placeholder b/jnlp-files/placeholder new file mode 100644 index 0000000..e69de29 diff --git a/make/build.xml b/make/build.xml index fad000d..73e9321 100755 --- a/make/build.xml +++ b/make/build.xml @@ -10,11 +10,29 @@ - built into its build directory. --> - + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + @@ -69,15 +114,15 @@ - - - + + + - - + + @@ -94,8 +139,8 @@ - - + + @@ -103,8 +148,8 @@ - - + + @@ -112,8 +157,8 @@ - - + + @@ -121,8 +166,8 @@ - - + + @@ -130,11 +175,12 @@ - - - - + + + + + diff --git a/make/scripts/make.joal-demos.all.linux-x86_64.sh b/make/scripts/make.joal-demos.all.linux-x86_64.sh new file mode 100644 index 0000000..746cf2d --- /dev/null +++ b/make/scripts/make.joal-demos.all.linux-x86_64.sh @@ -0,0 +1,23 @@ +#! /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 + +# -Drootrel.build=build-x86_64 \ + +ant \ + -Drootrel.build=build-x86_64 \ + $* 2>&1 | tee make.joal-demos.all.linux-x86_64.log diff --git a/make/scripts/make.joal-demos.all.win32.bat b/make/scripts/make.joal-demos.all.win32.bat new file mode 100755 index 0000000..49c5b45 --- /dev/null +++ b/make/scripts/make.joal-demos.all.win32.bat @@ -0,0 +1,12 @@ +set J2RE_HOME=c:\jre1.6.0_22_x32 +set JAVA_HOME=c:\jdk1.6.0_22_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 -Dbuild.noarchives=true + +ant -Dbuild.noarchives=true -Drootrel.build=build-win32 %1 %2 %3 %4 %5 %6 %7 %8 %9 > make.joal-demos.all.win32.log 2>&1 diff --git a/make/scripts/make.joal-demos.all.win64.bat b/make/scripts/make.joal-demos.all.win64.bat new file mode 100755 index 0000000..75de379 --- /dev/null +++ b/make/scripts/make.joal-demos.all.win64.bat @@ -0,0 +1,12 @@ +set J2RE_HOME=c:\jre1.6.0_22_x64 +set JAVA_HOME=c:\jdk1.6.0_22_x64 +set ANT_PATH=C:\apache-ant-1.8.0 + +set PATH=%JAVA_HOME%\bin;%ANT_PATH%\bin;c:\mingw64\bin;c:\mingw\bin;%PATH% + +set LIB_GEN=%THISDIR%\lib +set CLASSPATH=.;%THISDIR%\build-win64\classes +REM -Dc.compiler.debug=true +REM -Dbuild.noarchives=true + +ant -Dc.compiler.debug=true -Dbuild.noarchives=true -Drootrel.build=build-win64 %1 %2 %3 %4 %5 %6 %7 %8 %9 > make.joal-demos.all.win64.log 2>&1 diff --git a/src/java/demos/devmaster/lesson1/SingleStaticSource.java b/src/java/demos/devmaster/lesson1/SingleStaticSource.java index 97be01a..b1e4846 100755 --- a/src/java/demos/devmaster/lesson1/SingleStaticSource.java +++ b/src/java/demos/devmaster/lesson1/SingleStaticSource.java @@ -37,8 +37,8 @@ package demos.devmaster.lesson1; import java.io.*; import java.nio.ByteBuffer; -import net.java.games.joal.*; -import net.java.games.joal.util.*; +import com.jogamp.openal.*; +import com.jogamp.openal.util.*; // For the GUI import java.awt.*; diff --git a/src/java/demos/devmaster/lesson2/LoopingAndFadeaway.java b/src/java/demos/devmaster/lesson2/LoopingAndFadeaway.java index 115be24..6541a2a 100755 --- a/src/java/demos/devmaster/lesson2/LoopingAndFadeaway.java +++ b/src/java/demos/devmaster/lesson2/LoopingAndFadeaway.java @@ -37,8 +37,8 @@ package demos.devmaster.lesson2; import java.io.*; import java.nio.*; -import net.java.games.joal.*; -import net.java.games.joal.util.*; +import com.jogamp.openal.*; +import com.jogamp.openal.util.*; /** * Adapted from DevMaster diff --git a/src/java/demos/devmaster/lesson3/MultipleSources.java b/src/java/demos/devmaster/lesson3/MultipleSources.java index 508844b..549ddb5 100755 --- a/src/java/demos/devmaster/lesson3/MultipleSources.java +++ b/src/java/demos/devmaster/lesson3/MultipleSources.java @@ -37,8 +37,8 @@ package demos.devmaster.lesson3; import java.nio.ByteBuffer; import java.util.Random; -import net.java.games.joal.*; -import net.java.games.joal.util.*; +import com.jogamp.openal.*; +import com.jogamp.openal.util.*; /** * Adapted from DevMaster diff --git a/src/java/demos/devmaster/lesson5/SourcesSharingBuffers.java b/src/java/demos/devmaster/lesson5/SourcesSharingBuffers.java index 6e3e3a9..5dcb7bd 100755 --- a/src/java/demos/devmaster/lesson5/SourcesSharingBuffers.java +++ b/src/java/demos/devmaster/lesson5/SourcesSharingBuffers.java @@ -44,8 +44,8 @@ import java.awt.event.*; import javax.swing.*; -import net.java.games.joal.*; -import net.java.games.joal.util.*; +import com.jogamp.openal.*; +import com.jogamp.openal.util.*; /** * Adapted from DevMaster diff --git a/src/java/demos/devmaster/lesson8/OggStreamer.java b/src/java/demos/devmaster/lesson8/OggStreamer.java index 4d62c36..c6b1399 100644 --- a/src/java/demos/devmaster/lesson8/OggStreamer.java +++ b/src/java/demos/devmaster/lesson8/OggStreamer.java @@ -38,10 +38,10 @@ import java.io.File; import java.net.URL; import java.nio.ByteBuffer; import java.util.Arrays; -import net.java.games.joal.AL; -import net.java.games.joal.ALException; -import net.java.games.joal.ALFactory; -import net.java.games.joal.util.ALut; +import com.jogamp.openal.AL; +import com.jogamp.openal.ALException; +import com.jogamp.openal.ALFactory; +import com.jogamp.openal.util.ALut; /** * * This is a translation of the OggVorbis streamer OpenAL tutorial diff --git a/src/java/demos/efx/EFXFilter.java b/src/java/demos/efx/EFXFilter.java index 39867a4..c66ab2f 100755 --- a/src/java/demos/efx/EFXFilter.java +++ b/src/java/demos/efx/EFXFilter.java @@ -1,12 +1,12 @@ package demos.efx; -import net.java.games.joal.AL; -import net.java.games.joal.ALC; -import net.java.games.joal.ALCcontext; -import net.java.games.joal.ALCdevice; -import net.java.games.joal.ALFactory; -import net.java.games.joal.util.WAVData; -import net.java.games.joal.util.WAVLoader; +import com.jogamp.openal.AL; +import com.jogamp.openal.ALC; +import com.jogamp.openal.ALCcontext; +import com.jogamp.openal.ALCdevice; +import com.jogamp.openal.ALFactory; +import com.jogamp.openal.util.WAVData; +import com.jogamp.openal.util.WAVLoader; /** * OpenAL 1.1 EFX test class, a translation of the C++ EFXFilter demo from the -- cgit v1.2.3