diff options
| author | GregF <greg@LunarG.com> | 2016-06-17 12:26:49 -0600 |
|---|---|---|
| committer | GregF <greg@LunarG.com> | 2016-06-17 12:29:16 -0600 |
| commit | 009aad10971dcb3c9d8f004d1e941b1d5acf959f (patch) | |
| tree | ab556979bdec0b7c2f4cea3a0de11393b646b21a | |
| parent | 98e416e97e3d060f474ea017722aa81a18ef1413 (diff) | |
| download | usermoji-009aad10971dcb3c9d8f004d1e941b1d5acf959f.tar.xz | |
update_external_sources.sh: now get spirv-tools headers from Khronos/SPIRV-Headers
| -rwxr-xr-x | update_external_sources.sh | 12 |
1 files changed, 12 insertions, 0 deletions
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 () { |
