appveyor: fix shaderc dependencies

Shaderc comes with a Python script that automatically fetches
"known-good" versions of its dependencies. Use that instead of manually
cloning dependencies to third-party.
This commit is contained in:
James Ross-Gowan 2019-04-16 20:54:05 +10:00 committed by Jan Ekström
parent 7f1d7c38bc
commit 4e9dc60d9e
1 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,8 @@
#!/usr/bin/bash #!/usr/bin/bash
set -e set -e
export PYTHON=/usr/bin/python3
# Write an empty fonts.conf to speed up fc-cache # Write an empty fonts.conf to speed up fc-cache
export FONTCONFIG_FILE=/dummy-fonts.conf export FONTCONFIG_FILE=/dummy-fonts.conf
cat >"$FONTCONFIG_FILE" <<EOF cat >"$FONTCONFIG_FILE" <<EOF
@ -52,15 +54,12 @@ pacman -Sc --noconfirm
# Compile shaderc # Compile shaderc
( (
git clone --depth=1 https://github.com/google/shaderc && cd shaderc git clone --depth=1 https://github.com/google/shaderc && cd shaderc
git clone --depth=1 https://github.com/google/glslang.git third_party/glslang "$PYTHON" utils/git-sync-deps
git clone --depth=1 https://github.com/KhronosGroup/SPIRV-Tools.git third_party/spirv-tools
git clone --depth=1 https://github.com/KhronosGroup/SPIRV-Headers.git third_party/spirv-headers
mkdir build && cd build mkdir build && cd build
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DSHADERC_SKIP_TESTS=ON \ cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DSHADERC_SKIP_TESTS=ON \
-DCMAKE_INSTALL_PREFIX=$MINGW_PREFIX .. -DCMAKE_INSTALL_PREFIX=$MINGW_PREFIX ..
ninja install ninja install
cp -f libshaderc/libshaderc_shared.dll $MINGW_PREFIX/bin/
) )
# Compile crossc # Compile crossc