File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010output
1111spm-artifacts
1212submodules /* .log
13- submodules /angle-prebuilt
14- submodules /klightmapper-prebuilt
Original file line number Diff line number Diff line change @@ -56,13 +56,8 @@ cd submodules
5656./build_curl_ios.sh 2>&1 | tee ./build_curl_ios.log
5757./build_shader_translate_ios.sh 2>&1 | tee ./build_shader_translate_ios.log
5858
59-
60- ./build_angle.sh 2>&1 | tee ./build_angle.log
61-
62-
6359cd ..
6460
65-
6661rm -rf output
6762mkdir -p output
6863
Load diff This file was deleted.
Original file line number Diff line number Diff line change @@ -13,9 +13,10 @@ BASE_DEPS_DIR=$( dirname -- "${SCRIPT_DIR}" )
1313STAGE=" ${SCRIPT_DIR} /.shader_translate_stage"
1414rm -rf " ${STAGE} " ; mkdir -p " ${STAGE} "
1515
16- # glslang carries version-matched SPIRV-Tools + SPIRV-Headers via its updater.
17- [ -d glslang ] || git clone --depth 1 https://github.com/KhronosGroup/glslang.git
18- [ -d SPIRV-Cross ] || git clone --depth 1 https://github.com/KhronosGroup/SPIRV-Cross.git
16+ # glslang carries version-matched SPIRV-Tools + SPIRV-Headers via its updater
17+ # (fetched into glslang/External each run; cleaned up below).
18+ [ -f glslang/CMakeLists.txt ] || git clone --depth 1 https://github.com/KhronosGroup/glslang.git
19+ [ -f SPIRV-Cross/CMakeLists.txt ] || git clone --depth 1 https://github.com/KhronosGroup/SPIRV-Cross.git
1920( cd glslang && python3 update_glslang_sources.py )
2021
2122COMMON=(
@@ -52,4 +53,9 @@ cp -R "${STAGE}/include/glslang" "${BASE_DEPS_DIR}/include/"
5253cp -R " ${STAGE} /include/spirv-tools" " ${BASE_DEPS_DIR} /include/"
5354cp -R " ${STAGE} /include/spirv_cross" " ${BASE_DEPS_DIR} /include/"
5455rm -rf " ${STAGE} "
56+
57+ # Leave the checkouts pristine so the parent repo's git status stays clean
58+ # (removes build dirs and glslang/External; both are re-created on next run).
59+ ( cd glslang && git clean -dffx -q )
60+ ( cd SPIRV-Cross && git clean -dffx -q )
5561echo " shader-translate deps installed."
Original file line number Diff line number Diff line change 99SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
1010BASE_DEPS_DIR=$( dirname -- " ${SCRIPT_DIR} " )
1111
12- # Sources are cloned/updated by build_shader_translate.sh (run it first).
13- [ -d glslang ] || { echo " run build_shader_translate.sh first (clones sources)" ; exit 1; }
12+ # Self-contained: sources come from the submodules (or build_shader_translate.sh's
13+ # clones); glslang's External deps are re-fetched if a prior cleanup removed them.
14+ [ -f glslang/CMakeLists.txt ] || { echo " glslang sources missing (init submodules or run build_shader_translate.sh)" ; exit 1; }
15+ [ -d glslang/External/spirv-tools ] || ( cd glslang && python3 update_glslang_sources.py )
1416
1517LIBS=" libglslang.a libSPIRV.a libMachineIndependent.a libGenericCodeGen.a \
1618 libglslang-default-resource-limits.a libOSDependent.a \
@@ -50,3 +52,7 @@ build_variant() { # $1=tag $2=sysroot("" for device) $3=libtree $4=dbgtree
5052
5153build_variant device " " lib-ios libdbg-ios
5254build_variant sim iphonesimulator lib-ios-sim libdbg-ios-sim
55+
56+ # Leave the checkouts pristine so the parent repo's git status stays clean.
57+ ( cd glslang && git clean -dffx -q )
58+ ( cd SPIRV-Cross && git clean -dffx -q )
You can’t perform that action at this time.
0 commit comments