mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-05 13:28:01 +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:
@@ -5,6 +5,7 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container: devkitpro/devkita64:latest
|
||||
name: Nintendo Switch SDL2
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
@@ -15,7 +16,8 @@ jobs:
|
||||
run: |
|
||||
mkdir -p out/switch
|
||||
cd out/switch
|
||||
/opt/devkitpro/portlibs/switch/bin/aarch64-none-elf-cmake -DCMAKE_BUILD_TYPE=Release ../../
|
||||
/opt/devkitpro/portlibs/switch/bin/aarch64-none-elf-cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release -DSYSTEM3_SDL_VERSION=2 ../../
|
||||
make -j4
|
||||
mkdir system3
|
||||
mv system3.* system3/
|
||||
|
||||
Reference in New Issue
Block a user