Skip to content

Commit f20b98d

Browse files
committed
Remove angle
1 parent a73a956 commit f20b98d

5 files changed

Lines changed: 17 additions & 186 deletions

File tree

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,3 @@ bin
1010
output
1111
spm-artifacts
1212
submodules/*.log
13-
submodules/angle-prebuilt
14-
submodules/klightmapper-prebuilt

build.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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-
6359
cd ..
6460

65-
6661
rm -rf output
6762
mkdir -p output
6863

submodules/build_angle.sh

Lines changed: 0 additions & 174 deletions
This file was deleted.

submodules/build_shader_translate.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ BASE_DEPS_DIR=$( dirname -- "${SCRIPT_DIR}" )
1313
STAGE="${SCRIPT_DIR}/.shader_translate_stage"
1414
rm -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

2122
COMMON=(
@@ -52,4 +53,9 @@ cp -R "${STAGE}/include/glslang" "${BASE_DEPS_DIR}/include/"
5253
cp -R "${STAGE}/include/spirv-tools" "${BASE_DEPS_DIR}/include/"
5354
cp -R "${STAGE}/include/spirv_cross" "${BASE_DEPS_DIR}/include/"
5455
rm -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 )
5561
echo "shader-translate deps installed."

submodules/build_shader_translate_ios.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ set -e
99
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
1010
BASE_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

1517
LIBS="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

5153
build_variant device "" lib-ios libdbg-ios
5254
build_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 )

0 commit comments

Comments
 (0)