diff --git a/build.sh b/build.sh index 79ddd3f..0751625 100755 --- a/build.sh +++ b/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"