Skip to content

Commit

Permalink
Add shaderc deps initialization to the android build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
deveee committed Jan 11, 2025
1 parent d7981c0 commit b073fb8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions android/make_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,13 @@ build_deps()
cp -a -f "$DIRNAME/../lib/shaderc/"* "$DIRNAME/deps-$ARCH_OPTION/shaderc"

cd "$DIRNAME/deps-$ARCH_OPTION/shaderc"

if [ ! -f "$DIRNAME/deps-$ARCH_OPTION/shaderc-deps.stamp" ]; then
./utils/git-sync-deps
check_error
touch "$DIRNAME/deps-$ARCH_OPTION/shaderc-deps.stamp"
fi

cmake . -DCMAKE_TOOLCHAIN_FILE=../../../cmake/Toolchain-android.cmake \
-DHOST=$HOST -DARCH=$ARCH -DCMAKE_C_FLAGS="-fpic -O3" \
-DCMAKE_CXX_FLAGS="-fpic -O3" -DSHADERC_SKIP_INSTALL=1 \
Expand Down

0 comments on commit b073fb8

Please sign in to comment.