Merge pull request #19 from qurious-pixel/patch-4

build with externals
This commit is contained in:
MGThePro 2021-05-13 11:47:46 +02:00 committed by GitHub
commit b195744abc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 13 deletions

View file

@ -12,6 +12,8 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v2
with:
submodules: recursive
- name: Prepare ccache timestamp - name: Prepare ccache timestamp
id: ccache_cache_timestamp id: ccache_cache_timestamp
shell: cmake -P {0} shell: cmake -P {0}

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