WIP: [common] port to SDL3 #2645
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "octocar/eden:sdl3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
[common] port to SDL3to WIP: [common] port to SDL3dce3d96aaa
to726fe8cf09
@ -635,16 +635,16 @@ if (ENABLE_SDL2)
if ("${YUZU_SYSTEM_PROFILE}" STREQUAL "steamdeck")
this is now unneeded
@ -645,3 +645,3 @@
endif()
find_package(SDL2 2.26.4 REQUIRED)
find_package(SDL3 3.2.22 REQUIRED)
DO NOT always require the newest, we should use 3.2.12 which is the earliest found in any current distro except Ubuntu (which lacks sdl3 entirely)
@ -184,0 +180,4 @@
"repo": "libsdl-org/SDL3",
"version": "3.2.22",
"min_version": "3.2.0",
"cmake_filename": "sdl3"
This is a special CI repo and should be left as it previously was, I will create an SDL3 CI
@ -33,3 +33,3 @@
* [FFmpeg](https://ffmpeg.org/) (should use `-DYUZU_USE_EXTERNAL_FFMPEG=ON`)
* [SDL2](https://www.libsdl.org/download-2.0.php) 2.0.18+ (should use `-DYUZU_USE_EXTERNAL_SDL2=ON` OR `-DYUZU_USE_BUNDLED_SDL2=ON` to reduce compile time)
* [SDL3](https://github.com/libsdl-org/SDL/releases) 2.0.18+ (should use `-DYUZU_USE_EXTERNAL_SDL3=ON` OR `-DYUZU_USE_BUNDLED_SDL3=ON` to reduce compile time)
change to 3.2.12+
@ -203,3 +203,3 @@
* Open the `MSYS2 MinGW 64-bit` shell (`mingw64.exe`)
* Download and install all dependencies using:
* `pacman -Syu git make mingw-w64-x86_64-SDL2 mingw-w64-x86_64-cmake mingw-w64-x86_64-python-pip mingw-w64-x86_64-qt6 mingw-w64-x86_64-toolchain autoconf libtool automake-wrapper`
* `pacman -Syu git make mingw-w64-x86_64-SDL3 mingw-w64-x86_64-cmake mingw-w64-x86_64-python-pip mingw-w64-x86_64-qt6 mingw-w64-x86_64-toolchain autoconf libtool automake-wrapper`
sdl is now lower case here
@ -251,3 +250,4 @@
if (ENABLE_SDL3)
target_sources(audio_core PRIVATE
sink/sdl2_sink.cpp
sink/sdl2_sink.h
Update filenames to sdl3
@ -8,3 +9,3 @@
#include <vector>
#include <SDL.h>
#include <SDL3/SDL.h>
This shouldn't be necessary
@ -9,3 +9,3 @@
#include "common/settings.h"
#include "common/thread.h"
#include "common/vector_math.h"
// #include "common/vector_math.h" // Not used directly
If it's not used you can remove it, no need for comment
Also, we should update docs to mention that Ubuntu needs to use bundled or external sdl3
@ -0,0 +8,4 @@
#include <span>
#include <vector>
#include <SDL3/SDL.h>
Linking to SDL3::SDL3 should set the include directories to include the
/path/to/include/SDL3
so SDL.h should still work.SDL.h does not seem to work for me on external dependency
af6c90e3ff
to4c5aaf7f13
WIP: [common] port to SDL3to [common] port to SDL3tested:
cpmfile.json may need changes
Build CI failed, check #2645
@DraVee wrote in #2645 (comment):
yeah we just need a bundled sdl3
[common] port to SDL3to WIP: [common] port to SDL302bd53f0e6
to6c0f4a3472
Confirmed that SDL3 works with Gyro + Gamepad and Keyboard + Mouse on system, external, and bundled SDL3 on Linux. Need windows testing
https://cdn.discordapp.com/attachments/1425279065430167644/1425282292317946017/20251008-0041-07.0469107.mp4?ex=68e70512&is=68e5b392&hm=d6b0709c2db8a5f2878bec4553d344fcdf088a776d35859ad40f71c15086fbba&
On Windows, gyro is only working vertically
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.