build working SDL3 for wayland

This commit is contained in:
Krzosa Karol
2026-02-09 21:10:10 +01:00
parent 65ba886ddf
commit fde4e463ad

View File

@@ -12,20 +12,18 @@ if [ ! -e "src/external/SDL" ]; then
cd src/external cd src/external
git clone https://github.com/libsdl-org/SDL.git git clone https://github.com/libsdl-org/SDL.git
cd SDL cd SDL
git checkout release-3.4.0 git checkout release-3.2.30
cmake -S . -B build_linux -DCMAKE_BUILD_TYPE=Release -DSDL_PIPEWIRE=OFF # cmake -S . -B build_linux -DCMAKE_BUILD_TYPE=Release -DSDL_PIPEWIRE=OFF
# cmake -S . -B build_linux -DSDL_PIPEWIRE=OFF -DCMAKE_BUILD_TYPE=Debug cmake -S . -B build_linux -DSDL_PIPEWIRE=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
cd build_linux cd build_linux
make -j16 make -j16
LIB=$(readlink -f libSDL3.so) sudo make install
cp $LIB ../../../../build/libSDL3.so cd ../../../..
cp *.a ../../../../build/.
cd ../../../../
fi fi
cd build cd build
I="-I../src/external/SDL/include -I../src/external/lua/src -I../src/external/glad -I../src" I="-I../src/external/SDL/include -I../src/external/glad -I../src"
flags="-Wall -Wextra -Werror -Wformat=2 -Wundef -Wshadow -Wno-missing-field-initializers -Wno-missing-braces -Wno-writable-strings \ flags="-Wall -Wextra -Werror -Wformat=2 -Wundef -Wshadow -Wno-missing-field-initializers -Wno-missing-braces -Wno-writable-strings \
-g -fdiagnostics-absolute-paths \ -g -fdiagnostics-absolute-paths \
-nostdlib++ -fno-exceptions" -nostdlib++ -fno-exceptions"