From 86bbcd15cbf20c739211bbc4023a21824b36526c Mon Sep 17 00:00:00 2001 From: Deve Date: Sat, 11 Jan 2025 22:19:57 +0100 Subject: [PATCH] Initialize shaderc deps for linux build script in the same way as for android. --- tools/linux_builder.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tools/linux_builder.sh b/tools/linux_builder.sh index c71ddb21d6..9c511fdf24 100755 --- a/tools/linux_builder.sh +++ b/tools/linux_builder.sh @@ -395,13 +395,17 @@ build_stk() # Shaderc if [ ! -f "$DEPENDENCIES_DIR/shaderc.stamp" ]; then echo "Compiling shaderc" - - "$DEPENDENCIES_DIR/../lib/shaderc/utils/git-sync-deps" - mkdir -p "$DEPENDENCIES_DIR/shaderc" cp -a -f "$DEPENDENCIES_DIR/../lib/shaderc/"* "$DEPENDENCIES_DIR/shaderc" - + cd "$DEPENDENCIES_DIR/shaderc" + + if [ ! -f "$DEPENDENCIES_DIR/shaderc-deps.stamp" ]; then + ./utils/git-sync-deps + check_error + touch "$DEPENDENCIES_DIR/shaderc-deps.stamp" + fi + cmake . -DCMAKE_FIND_ROOT_PATH="$INSTALL_DIR" \ -DCMAKE_INSTALL_PREFIX="$INSTALL_DIR" \ -DCMAKE_C_FLAGS="-fpic -O3" \