build working SDL3 for wayland
This commit is contained in:
14
build.sh
14
build.sh
@@ -12,20 +12,18 @@ if [ ! -e "src/external/SDL" ]; then
|
||||
cd src/external
|
||||
git clone https://github.com/libsdl-org/SDL.git
|
||||
cd SDL
|
||||
git checkout release-3.4.0
|
||||
cmake -S . -B build_linux -DCMAKE_BUILD_TYPE=Release -DSDL_PIPEWIRE=OFF
|
||||
# cmake -S . -B build_linux -DSDL_PIPEWIRE=OFF -DCMAKE_BUILD_TYPE=Debug
|
||||
git checkout release-3.2.30
|
||||
# cmake -S . -B build_linux -DCMAKE_BUILD_TYPE=Release -DSDL_PIPEWIRE=OFF
|
||||
cmake -S . -B build_linux -DSDL_PIPEWIRE=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
|
||||
cd build_linux
|
||||
make -j16
|
||||
LIB=$(readlink -f libSDL3.so)
|
||||
cp $LIB ../../../../build/libSDL3.so
|
||||
cp *.a ../../../../build/.
|
||||
cd ../../../../
|
||||
sudo make install
|
||||
cd ../../../..
|
||||
fi
|
||||
|
||||
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 \
|
||||
-g -fdiagnostics-absolute-paths \
|
||||
-nostdlib++ -fno-exceptions"
|
||||
|
||||
Reference in New Issue
Block a user