Update docker.sh

build with externals
exclude externals from error suppression
This commit is contained in:
qurious-pixel 2021-05-10 17:43:31 -07:00 committed by GitHub
parent 0301e95e45
commit 3530fd224f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,22 +7,13 @@ title="yuzu Early Access $ver"
ln -s /home/yuzu/.conan /root ln -s /home/yuzu/.conan /root
#SDL-2.0.15-14858.tar.gz
mkdir SDL2 && cd SDL2
curl -sLO http://libsdl.org/tmp/SDL-2.0.15-14858.tar.gz
tar -xzf SDL-2.0.15-14858.tar.gz
cd SDL-2.0.15-14858
./configure --prefix=/usr
make && make install
cd ../../
yuzupatch=( $(ls -d patches/* ) ) yuzupatch=( $(ls -d patches/* ) )
for i in "${yuzupatch[@]}"; do patch -p1 < "$i"; done for i in "${yuzupatch[@]}"; do patch -p1 < "$i"; done
find . -name "CMakeLists.txt" -exec sed -i 's/^.*-Werror$/-W/g' {} + find . -name "CMakeLists.txt" ! -path "*/externals/*" -exec sed -i 's/^.*-Werror$/-W/g' {} +
find . -name "CMakeLists.txt" -exec sed -i 's/^.*-Werror=.*)$/ )/g' {} + find . -name "CMakeLists.txt" ! -path "*/externals/*" -exec sed -i 's/^.*-Werror=.*)$/ )/g' {} +
find . -name "CMakeLists.txt" -exec sed -i 's/^.*-Werror=.*$/ /g' {} + find . -name "CMakeLists.txt" ! -path "*/externals/*" -exec sed -i 's/^.*-Werror=.*$/ /g' {} +
find . -name "CMakeLists.txt" -exec sed -i 's/-Werror/-W/g' {} + find . -name "CMakeLists.txt" ! -path "*/externals/*" -exec sed -i 's/-Werror/-W/g' {} +
mkdir build && cd build mkdir build && cd build