Skip to content

Commit

Permalink
appveyor: fix shaderc dependencies
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rossy authored and jeeb committed Apr 16, 2019
1 parent 7f1d7c3 commit 4e9dc60
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions TOOLS/appveyor-install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/bash
set -e

export PYTHON=/usr/bin/python3

# Write an empty fonts.conf to speed up fc-cache
export FONTCONFIG_FILE=/dummy-fonts.conf
cat >"$FONTCONFIG_FILE" <<EOF
Expand Down Expand Up @@ -52,15 +54,12 @@ pacman -Sc --noconfirm
# Compile 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
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
"$PYTHON" utils/git-sync-deps

mkdir build && cd build
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DSHADERC_SKIP_TESTS=ON \
-DCMAKE_INSTALL_PREFIX=$MINGW_PREFIX ..
ninja install
cp -f libshaderc/libshaderc_shared.dll $MINGW_PREFIX/bin/
)

# Compile crossc
Expand Down

0 comments on commit 4e9dc60

Please sign in to comment.