Update OpenAL to 1.24.1 on Windows/macOS.

This commit is contained in:
John Preston 2024-12-18 13:48:14 +04:00
parent 7ea6c6c84b
commit f583879aee

View file

@ -1367,25 +1367,27 @@ depends:yasm/yasm
""")
stage('openal-soft', """
version: 3
win:
git clone -b wasapi_exact_device_time https://github.com/telegramdesktop/openal-soft.git
git clone https://github.com/telegramdesktop/openal-soft.git
cd openal-soft
git checkout 5e9429354d
win:
cmake -B build . ^
-A %WIN32X64% ^
-D LIBTYPE:STRING=STATIC ^
-D FORCE_STATIC_VCRT=ON
-D FORCE_STATIC_VCRT=ON ^
-D ALSOFT_UTILS=OFF ^
-D ALSOFT_EXAMPLES=OFF ^
-D ALSOFT_TESTS=OFF
cmake --build build --config Debug --parallel
release:
cmake --build build --config RelWithDebInfo --parallel
mac:
git clone -b coreaudio_device_uid https://github.com/telegramdesktop/openal-soft.git
cd openal-soft
CFLAGS=$UNGUARDED CPPFLAGS=$UNGUARDED cmake -B build . \\
-D CMAKE_BUILD_TYPE=RelWithDebInfo \\
-D CMAKE_INSTALL_PREFIX:PATH=$USED_PREFIX \\
-D ALSOFT_EXAMPLES=OFF \\
-D ALSOFT_UTILS=OFF \\
-D ALSOFT_TESTS=OFF \\
-D LIBTYPE:STRING=STATIC \\
-D CMAKE_OSX_DEPLOYMENT_TARGET:STRING=$MACOSX_DEPLOYMENT_TARGET \\
-D CMAKE_OSX_ARCHITECTURES="x86_64;arm64"