Skip to content

Commit

Permalink
Initialize shaderc deps for linux build script in the same way as for…
Browse files Browse the repository at this point in the history
… android.
  • Loading branch information
deveee committed Jan 11, 2025
1 parent b073fb8 commit 86bbcd1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tools/linux_builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down

0 comments on commit 86bbcd1

Please sign in to comment.