Updated SDL from 2.26.1 to 2.26.3

This commit is contained in:
Leon Styhre 2023-02-18 22:46:23 +01:00
parent 29830bd88a
commit 16099aef58
6 changed files with 21 additions and 21 deletions

View file

@ -438,7 +438,7 @@ elseif(WIN32)
${CMAKE_CURRENT_SOURCE_DIR}/external/FreeImage/Dist/x64
${CMAKE_CURRENT_SOURCE_DIR}/external/freetype/include
${CMAKE_CURRENT_SOURCE_DIR}/external/pugixml/src
${CMAKE_CURRENT_SOURCE_DIR}/external/SDL2-2.26.1)
${CMAKE_CURRENT_SOURCE_DIR}/external/SDL2-2.26.3)
elseif(EMSCRIPTEN)
set(COMMON_INCLUDE_DIRS ${COMMON_INCLUDE_DIRS}
${CMAKE_CURRENT_SOURCE_DIR}/external/curl/include

View file

@ -140,26 +140,26 @@ cd ..
echo:
echo Setting up SDL
if exist SDL2-2.26.1\ (
rmdir /S /Q SDL2-2.26.1
if exist SDL2-2.26.3\ (
rmdir /S /Q SDL2-2.26.3
)
curl -LO https://libsdl.org/release/SDL2-devel-2.26.1-VC.zip
curl -LO https://libsdl.org/release/SDL2-devel-2.26.3-VC.zip
7z x SDL2-devel-2.26.1-VC.zip
7z x SDL2-devel-2.26.3-VC.zip
if not exist SDL2-2.26.1\ (
if not exist SDL2-2.26.3\ (
echo SDL directory is missing, aborting.
cd ..
goto end
)
cd SDL2-2.26.1
cd SDL2-2.26.3
rename include SDL2
cd ..
copy /Y SDL2-2.26.1\lib\x64\SDL2.dll ..
copy /Y SDL2-2.26.1\lib\x64\SDL2.lib ..
copy /Y SDL2-2.26.1\lib\x64\SDL2main.lib ..
copy /Y SDL2-2.26.3\lib\x64\SDL2.dll ..
copy /Y SDL2-2.26.3\lib\x64\SDL2.lib ..
copy /Y SDL2-2.26.3\lib\x64\SDL2main.lib ..
echo:
echo Setting up FFmpeg

View file

@ -88,20 +88,20 @@ cd ..
echo -e "\nSetting up SDL"
rm -rf SDL2-*
curl -O https://libsdl.org/release/SDL2-devel-2.26.1-mingw.tar.gz
curl -O https://libsdl.org/release/SDL2-devel-2.26.3-mingw.tar.gz
tar xvzf SDL2-devel-2.26.1-mingw.tar.gz
tar xvzf SDL2-devel-2.26.3-mingw.tar.gz
# Needed due to some kind of file system race condition that sometimes occurs on Windows.
sleep 1
if [ ! -d SDL2-2.26.1 ]; then
if [ ! -d SDL2-2.26.3 ]; then
echo "SDL directory is missing, aborting."
exit
fi
mv SDL2-2.26.1/x86_64-w64-mingw32/include/SDL2 SDL2-2.26.1/
cp -p SDL2-2.26.1/x86_64-w64-mingw32/lib/libSDL2main.a ..
cp -p SDL2-2.26.1/x86_64-w64-mingw32/bin/SDL2.dll ..
mv SDL2-2.26.3/x86_64-w64-mingw32/include/SDL2 SDL2-2.26.3/
cp -p SDL2-2.26.3/x86_64-w64-mingw32/lib/libSDL2main.a ..
cp -p SDL2-2.26.3/x86_64-w64-mingw32/bin/SDL2.dll ..
echo -e "\nSetting up FFmpeg"
rm -rf ffmpeg-*

View file

@ -17,8 +17,8 @@
# How many CPU threads to use for the compilation.
JOBS=4
SDL_RELEASE_TAG=release-2.26.1
SDL_SHARED_LIBRARY=libSDL2-2.0.so.0.2600.1
SDL_RELEASE_TAG=release-2.26.3
SDL_SHARED_LIBRARY=libSDL2-2.0.so.0.2600.3
echo "Building AppImage..."

View file

@ -13,8 +13,8 @@
# How many CPU threads to use for the compilation.
JOBS=4
SDL_RELEASE_TAG=release-2.26.1
SDL_SHARED_LIBRARY=libSDL2-2.0.so.0.2600.1
SDL_RELEASE_TAG=release-2.26.3
SDL_SHARED_LIBRARY=libSDL2-2.0.so.0.2600.3
echo "Building Steam Deck AppImage..."

View file

@ -187,7 +187,7 @@ if [ ! -d SDL ]; then
fi
cd SDL
git checkout release-2.26.1
git checkout release-2.26.3
ln -s include SDL2
mkdir build
cd ..