rtengine/scripts/download_shaderc.sh
Kevin Trogant 8f52ea3d3a
Some checks failed
Ubuntu Cross to Win64 / Cross Compile with ming64 (1.4.0, ubuntu-latest) (push) Failing after 1m32s
Fixed linux -> windows cross compilation
2024-07-16 11:48:28 +02:00

33 lines
613 B
Bash
Executable File

#!/bin/bash
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Downloads shaderc from github into contrib/
#
# Last changed: 24/11/23 (DD/MM/YY)
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SHADERC_VER=v2023.7
SHADERC_REPO=https://github.com/google/shaderc.git
# Check if we are beeing run from scripts/ or from root
if [ ! -f meson.build ]; then
cd ..
fi
git clone --quiet $SHADERC_REPO contrib/shaderc
pushd contrib/shaderc
git checkout --quiet $SHADERC_VER
python3 ./utils/git-sync-deps
rmdir -rf .git
mkdir build-linux
pushd build-linux
cmake ..
cmake --build . --config Release
popd
popd