From 65882ae14d700d369dc746f49310f59173d33954 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 5 Feb 2024 00:52:00 +1000 Subject: [PATCH] deps: Bump to SDL2 2.30.0 --- .../scripts/linux/build-dependencies-qt.sh | 4 ++-- .../linux/flatpak/modules/20-sdl2.json | 4 ++-- .../scripts/macos/build-dependencies.sh | 22 ++----------------- .../scripts/windows/build-dependencies.bat | 4 ++-- cmake/SearchForStuff.cmake | 2 +- 5 files changed, 9 insertions(+), 27 deletions(-) diff --git a/.github/workflows/scripts/linux/build-dependencies-qt.sh b/.github/workflows/scripts/linux/build-dependencies-qt.sh index 67abcdeb09..f7fa1b6615 100755 --- a/.github/workflows/scripts/linux/build-dependencies-qt.sh +++ b/.github/workflows/scripts/linux/build-dependencies-qt.sh @@ -9,7 +9,7 @@ fi INSTALLDIR="$1" NPROCS="$(getconf _NPROCESSORS_ONLN)" -SDL=SDL2-2.28.5 +SDL=SDL2-2.30.0 QT=6.6.1 LIBBACKTRACE=ad106d5fdd5d960bd33fae1c48a351af567fd075 @@ -17,7 +17,7 @@ mkdir -p deps-build cd deps-build cat > SHASUMS < SHASUMS < - #import - int main() { return 0; }" HAVE_FRAMEWORK_COREHAPTICS) -- if(HAVE_FRAMEWORK_GAMECONTROLLER AND HAVE_FRAMEWORK_COREHAPTICS) -+ if(HAVE_FRAMEWORK_GAMECONTROLLER AND HAVE_FRAMEWORK_COREHAPTICS AND FALSE) - # Only enable MFI if we also have CoreHaptics to ensure rumble works - set(SDL_JOYSTICK_MFI 1) - set(SDL_FRAMEWORK_GAMECONTROLLER 1) - -EOF - cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="$INSTALLDIR" -DCMAKE_INSTALL_PREFIX="$INSTALLDIR" -DCMAKE_OSX_ARCHITECTURES="x86_64" -DSDL_X11=OFF -DBUILD_SHARED_LIBS=ON make -C build "-j$NPROCS" make -C build install diff --git a/.github/workflows/scripts/windows/build-dependencies.bat b/.github/workflows/scripts/windows/build-dependencies.bat index c664d66c8e..64978f286c 100644 --- a/.github/workflows/scripts/windows/build-dependencies.bat +++ b/.github/workflows/scripts/windows/build-dependencies.bat @@ -39,9 +39,9 @@ cd "%BUILDDIR%" set QT=6.6.1 set QTMINOR=6.6 -set SDL=SDL2-2.28.5 +set SDL=SDL2-2.30.0 -call :downloadfile "%SDL%.zip" "https://libsdl.org/release/%SDL%.zip" 97bd14ee0ec67494d2b93f1a4f7da2bf891103c57090d96fdcc2b019d885c76a || goto error +call :downloadfile "%SDL%.zip" "https://libsdl.org/release/%SDL%.zip" 80b0c02b6018630cd40639ac9fc8e5c1d8eec14d8fe3e6dfa76343e3ba8b78d9 || goto error call :downloadfile "qtbase-everywhere-src-%QT%.zip" "https://download.qt.io/official_releases/qt/%QTMINOR%/%QT%/submodules/qtbase-everywhere-src-%QT%.zip" 818f92518d1a89ee98ae818891a7d2f0e41aa45b933d55215da2df6d5459428e || goto error call :downloadfile "qtimageformats-everywhere-src-%QT%.zip" "https://download.qt.io/official_releases/qt/%QTMINOR%/%QT%/submodules/qtimageformats-everywhere-src-%QT%.zip" 03f01042f86b4dbf7329a179f20835817c660a183178c11570cc0535b3c3ba58 || goto error call :downloadfile "qtsvg-everywhere-src-%QT%.zip" "https://download.qt.io/official_releases/qt/%QTMINOR%/%QT%/submodules/qtsvg-everywhere-src-%QT%.zip" d44d5ead8d4682f54c91687b5e32f2735f086419e3889e05609feae1a7f02da9 || goto error diff --git a/cmake/SearchForStuff.cmake b/cmake/SearchForStuff.cmake index a9f82c361e..9ddaea692c 100644 --- a/cmake/SearchForStuff.cmake +++ b/cmake/SearchForStuff.cmake @@ -90,7 +90,7 @@ endif(WIN32) find_package(Threads REQUIRED) # Also need SDL2. -find_package(SDL2 2.28.5 REQUIRED) +find_package(SDL2 2.30.0 REQUIRED) set(ACTUALLY_ENABLE_TESTS ${ENABLE_TESTS}) if(ENABLE_TESTS)