From ae957adfb5feb5c5e67174998d9087e030bb479b Mon Sep 17 00:00:00 2001 From: Greg Fischer Date: Fri, 17 Jun 2016 12:19:46 -0600 Subject: [PATCH] update_external_sources.bat: now get headers from Khronos/SPIRV-Headers --- update_external_sources.bat | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/update_external_sources.bat b/update_external_sources.bat index afe63d0..b9ff00d 100755 --- a/update_external_sources.bat +++ b/update_external_sources.bat @@ -228,6 +228,14 @@ goto:eof echo spirv-tools source download failed! set errorCode=1 ) + mkdir %SPIRV_TOOLS_DIR%\external + mkdir %SPIRV_TOOLS_DIR%\external\spirv-headers + cd %SPIRV_TOOLS_DIR%\external\spirv-headers + git clone https://github.com/KhronosGroup/SPIRV-HEADERS.git . + if not exist %SPIRV_TOOLS_DIR%\external\spirv-headers\README.md ( + echo spirv-headers download failed! + set errorCode=1 + ) goto:eof :update_spirv-tools @@ -236,6 +244,16 @@ goto:eof cd %SPIRV_TOOLS_DIR% git fetch --all git checkout %SPIRV_TOOLS_REVISION% + if not exist %SPIRV_TOOLS_DIR%\external\spirv-headers\README.md ( + mkdir %SPIRV_TOOLS_DIR%\external + mkdir %SPIRV_TOOLS_DIR%\external\spirv-headers + cd %SPIRV_TOOLS_DIR%\external\spirv-headers + git clone https://github.com/KhronosGroup/SPIRV-HEADERS.git . + goto:eof + ) + cd %SPIRV_TOOLS_DIR%\external\spirv-headers + git fetch --all + git pull goto:eof :build_glslang -- 2.7.4