diff options
author | Cody Northrop <cody@lunarg.com> | 2015-05-12 16:23:59 -0600 |
---|---|---|
committer | Cody Northrop <cody@lunarg.com> | 2015-07-07 11:33:46 -0600 |
commit | a8ac135a2d6fa09229443f0c27549efe4d649c19 (patch) | |
tree | a29dc16b4dda875ca08848b39ae9a53ab8ac9796 /update_external_sources.sh | |
parent | a02b2b926bafb51e2d450c7677f88e03ce1bea01 (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-x | update_external_sources.sh | 8 |
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/.. |