mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-13 01:38:15 +03:00
Add SDL3 support alongside SDL2
Centralize the differences between SDL2 and SDL3 behind compatibility interfaces and select the appropriate implementations with the SYSTEM3_SDL_VERSION CMake option. Android remains on SDL2 for now.
This commit is contained in:
+2
-1
@@ -12,7 +12,8 @@ git submodule update --init
|
||||
sudo (dkp-)pacman -S switch-dev switch-sdl2 switch-sdl2_ttf
|
||||
mkdir -p out/debug
|
||||
cd out/debug
|
||||
/opt/devkitpro/portlibs/switch/bin/aarch64-none-elf-cmake -DCMAKE_BUILD_TYPE=Debug ../../
|
||||
/opt/devkitpro/portlibs/switch/bin/aarch64-none-elf-cmake \
|
||||
-DCMAKE_BUILD_TYPE=Debug -DSYSTEM3_SDL_VERSION=2 ../../
|
||||
make
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user