From 8c9c768e697dfbab8ec92ec9c496a46a617ad8c4 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 4 May 2023 01:37:57 +0200 Subject: Windows: Drop using soft_oal.dll blobs, use own bundled openal-soft instead. Note: This requires mingw-w64 w/ posix-threads to allow using C++ std::mutex etc. --- make/build.xml | 40 +++------------------ make/lib/windows-amd64/soft_oal.dll | Bin 417320 -> 0 bytes make/lib/windows-i586/soft_oal.dll | Bin 402553 -> 0 bytes make/scripts/make.joal.all.win64.bat | 2 +- .../jogamp/openal/ALDynamicLibraryBundleInfo.java | 5 +-- 5 files changed, 9 insertions(+), 38 deletions(-) delete mode 100644 make/lib/windows-amd64/soft_oal.dll delete mode 100644 make/lib/windows-i586/soft_oal.dll diff --git a/make/build.xml b/make/build.xml index 871868b..71d74e2 100755 --- a/make/build.xml +++ b/make/build.xml @@ -478,7 +478,7 @@ nativejarfile="${build}/jar/joal-natives-${os.and.arch}.jar" manifestfile="${build}/tempversion-natives" module="openal" - includelibs="*joal.${native.library.suffix} *soft_oal.${native.library.suffix} *openal.${native.library.suffix} *openal*.1*.${native.library.suffix}" /> + includelibs="*joal.${native.library.suffix} *openal.${native.library.suffix} OpenAL32.${native.library.suffix} *openal*.1*.${native.library.suffix}" /> @@ -541,35 +541,14 @@ - + + - - - - - - - - - - - - - - - - - - - - - - @@ -657,21 +636,12 @@ - - - - - - - - - - + depends="init, gluegen.cpptasks.detect.os, gluegen.cpptasks.setup.compiler, c.build.openal.soft.windows, c.build.openal.soft.android.x86, c.build.openal.soft.android.arm, c.build.openal.soft.android.arm64, c.build.openal.soft.gcc.armv6.hard, c.build.openal.soft.gcc.aarch64, c.build.openal.soft.clang.x86_32, c.build.openal.soft.clang.default, c.build.openal.soft.gcc.x86_32, c.build.openal.soft.gcc.default"> + diff --git a/make/lib/windows-amd64/soft_oal.dll b/make/lib/windows-amd64/soft_oal.dll deleted file mode 100644 index b47ff95..0000000 Binary files a/make/lib/windows-amd64/soft_oal.dll and /dev/null differ diff --git a/make/lib/windows-i586/soft_oal.dll b/make/lib/windows-i586/soft_oal.dll deleted file mode 100644 index 71ced6a..0000000 Binary files a/make/lib/windows-i586/soft_oal.dll and /dev/null differ diff --git a/make/scripts/make.joal.all.win64.bat b/make/scripts/make.joal.all.win64.bat index af6563b..e0a39a7 100755 --- a/make/scripts/make.joal.all.win64.bat +++ b/make/scripts/make.joal.all.win64.bat @@ -6,7 +6,7 @@ set ANT_PATH=C:\apache-ant-1.10.5 set GIT_PATH=C:\cygwin64\bin set SEVENZIP=C:\Program Files\7-Zip -set CMAKE_PATH=C:\make-3.25.1-windows-x64_64 +set CMAKE_PATH=C:\cmake-3.25.1-windows-x86_64 set CMAKE_C_COMPILER=c:\mingw64\bin\gcc set PATH=%J2RE_HOME%\bin;%JAVA_HOME%\bin;%ANT_PATH%\bin;c:\mingw64\bin;%CMAKE_PATH%\bin;%GIT_PATH%;%SEVENZIP%;%PATH% diff --git a/src/java/jogamp/openal/ALDynamicLibraryBundleInfo.java b/src/java/jogamp/openal/ALDynamicLibraryBundleInfo.java index 233f8b1..e58e34c 100644 --- a/src/java/jogamp/openal/ALDynamicLibraryBundleInfo.java +++ b/src/java/jogamp/openal/ALDynamicLibraryBundleInfo.java @@ -113,11 +113,12 @@ public final class ALDynamicLibraryBundleInfo implements DynamicLibraryBundleInf } final List alSoftLibNames = new ArrayList(); { - // This name is in use by the (installed if any) OpenAL-soft - alSoftLibNames.add("soft_oal"); // These names are in use by the bundled OpenAL-soft, also generic ones alSoftLibNames.add("openal"); alSoftLibNames.add("OpenAL"); + alSoftLibNames.add("OpenAL32"); + // This name is in use by the (installed if any) OpenAL-soft + alSoftLibNames.add("soft_oal"); } final List alLibNames = new ArrayList(); -- cgit v1.2.3