From 009aad10971dcb3c9d8f004d1e941b1d5acf959f Mon Sep 17 00:00:00 2001 From: GregF Date: Fri, 17 Jun 2016 12:26:49 -0600 Subject: update_external_sources.sh: now get spirv-tools headers from Khronos/SPIRV-Headers --- update_external_sources.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/update_external_sources.sh b/update_external_sources.sh index 4c1a6f95..b6128f9d 100755 --- a/update_external_sources.sh +++ b/update_external_sources.sh @@ -34,6 +34,9 @@ function create_spirv-tools () { cd $BASEDIR/spirv-tools git clone https://github.com/KhronosGroup/SPIRV-Tools.git . git checkout $SPIRV_TOOLS_REVISION + mkdir -p $BASEDIR/spirv-tools/external/spirv-headers + cd $BASEDIR/spirv-tools/external/spirv-headers + git clone https://github.com/KhronosGroup/SPIRV-Headers . } function update_spirv-tools () { @@ -41,6 +44,15 @@ function update_spirv-tools () { cd $BASEDIR/spirv-tools git fetch --all git checkout $SPIRV_TOOLS_REVISION + if [ ! -d "$BASEDIR/spirv-tools/external/spirv-headers" -o ! -d "$BASEDIR/spirv-tools/external/spirv-headers/.git" ]; then + mkdir -p $BASEDIR/spirv-tools/external/spirv-headers + cd $BASEDIR/spirv-tools/external/spirv-headers + git clone https://github.com/KhronosGroup/SPIRV-Headers . + else + cd $BASEDIR/spirv-tools/external/spirv-headers + git fetch --all + git pull + fi } function build_glslang () { -- cgit v1.2.3