update_external_sources.bat: now get headers from Khronos/SPIRV-Headers
authorGreg Fischer <greg@lunarg.com>
Fri, 17 Jun 2016 18:19:46 +0000 (12:19 -0600)
committerGreg Fischer <greg@lunarg.com>
Fri, 17 Jun 2016 18:19:46 +0000 (12:19 -0600)
update_external_sources.bat

index afe63d0..b9ff00d 100755 (executable)
@@ -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