Install SDL 2.0.18 #46

Merged
qurious-pixel merged 2 commits from patch-5 into main 2021-12-08 16:43:07 +01:00
Showing only changes of commit 3470d01744 - Show all commits

View file

@ -14,6 +14,12 @@ find . -name "CMakeLists.txt" ! -path "*/externals/*" -exec sed -i 's/^.*-Werror
find . -name "CMakeLists.txt" ! -path "*/externals/*" -exec sed -i 's/^.*-Werror=.*$/ /g' {} + find . -name "CMakeLists.txt" ! -path "*/externals/*" -exec sed -i 's/^.*-Werror=.*$/ /g' {} +
find . -name "CMakeLists.txt" ! -path "*/externals/*" -exec sed -i 's/-Werror/-W/g' {} + find . -name "CMakeLists.txt" ! -path "*/externals/*" -exec sed -i 's/-Werror/-W/g' {} +
# Add cache if does not exist
if [[ ! -e ~/.ccache ]]; then
mkdir ~/.ccache
fi
CACHEDIR=~/.ccache
ls -al $CACHEDIR
############################################### ###############################################
# Install SDL # Install SDL
SDL2VER=2.0.18 SDL2VER=2.0.18
@ -27,7 +33,7 @@ if [[ ! -e SDL2-${SDL2VER} ]]; then
make && cd ../ make && cd ../
rm SDL2-${SDL2VER}.tar.gz rm SDL2-${SDL2VER}.tar.gz
fi fi
sudo make -C SDL2-${SDL2VER} install make -C SDL2-${SDL2VER} install
sdl2-config --version sdl2-config --version
cd /yuzu cd /yuzu
############################################### ###############################################
@ -49,7 +55,7 @@ cmake .. \
-DENABLE_QT_TRANSLATION=ON \ -DENABLE_QT_TRANSLATION=ON \
-DBUILD_DATE="$build_date" \ -DBUILD_DATE="$build_date" \
-DYUZU_USE_QT_WEB_ENGINE=OFF \ -DYUZU_USE_QT_WEB_ENGINE=OFF \
-DYUZU_USE_EXTERNAL_SDL2=OFF \ -DYUZU_USE_EXTERNAL_SDL2=OFF \
-G Ninja -G Ninja
ninja ninja