summaryrefslogtreecommitdiff
path: root/update_external_sources.sh
diff options
context:
space:
mode:
authorCody Northrop <cody@lunarg.com>2015-05-12 16:23:59 -0600
committerCody Northrop <cody@lunarg.com>2015-07-07 11:33:46 -0600
commita8ac135a2d6fa09229443f0c27549efe4d649c19 (patch)
treea29dc16b4dda875ca08848b39ae9a53ab8ac9796 /update_external_sources.sh
parenta02b2b926bafb51e2d450c7677f88e03ce1bea01 (diff)
toolchain: Add script to pull and build on Windows
Summary: Add Windows version of update_external_sources, and relocate glslang and LunarGLASS target revisions to external files shared with Linux. Details: On Linux, we've successfully been using update_external_sources.sh to get on the target version of glslang (which generates SPIR-V) and LunarGLASS (which consumes SPIR-V). Both of these components are peers to the typical Vulkan directory structure: /LoaderAndTools /layers /loader /demos /... /glslang /LunarGLASS There hasn't been an equivalent on Windows, so tedious manual steps and GUIs have been used on individual systems. This commit introduces a Windows batch script that automates the process similar to Linux. It detects if you have the required dependendcies and early-outs for any problems. If you are a Windows developer that only wants spirv headers, run: update_external_sources.bat --sync-glslang If you want to build the Windows version of glslangValidator.exe, run: update_external_sources.bat --build-glslang If you want to run LunarGOO with SPIR-V support on Windows, run: update_external_sources.bat --build-LunarGLASS The script builds Debug and Release x64 versions, and should be run from: Developer Command Prompt for VS2013 This commit also relocates the target version of glslang and LunarGLASS to an external shared file that only contains the version number of each. Both scripts read the value from the file, therefore they cannot get out of sync.
Diffstat (limited to 'update_external_sources.sh')
-rwxr-xr-xupdate_external_sources.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/update_external_sources.sh b/update_external_sources.sh
index 7beb68a6..6425e21a 100755
--- a/update_external_sources.sh
+++ b/update_external_sources.sh
@@ -1,8 +1,12 @@
#!/bin/bash
# Update source for glslang and LLVM
-LUNARGLASS_REVISION=1091
-GLSLANG_REVISION=31490
+set -e
+
+LUNARGLASS_REVISION=$(cat $PWD/LunarGLASS_revision)
+GLSLANG_REVISION=$(cat $PWD/glslang_revision)
+echo "LUNARGLASS_REVISION=$LUNARGLASS_REVISION"
+echo "GLSLANG_REVISION=$GLSLANG_REVISION"
BUILDDIR=$PWD
BASEDIR=$BUILDDIR/..