-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Restore the clean task calling our script - Renamed our script to `clean_all.sh` - Refactor the script to clean up all our dependencies properly - Clean step in `build.rive.for.sh` is a nicer now and doesn't fail if skia has been downloaded rather than cloned Diffs= b553c8916 Clean builds properly (#5685) Co-authored-by: Umberto Sonnino <[email protected]>
- Loading branch information
1 parent
c0a2cee
commit 335a161
Showing
8 changed files
with
99 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
7add054b0f4a87922eb60719b654446e962749a3 | ||
b553c8916c51b0816d04a4586657d9580e4208ad |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
SCRIPT_HOME="$(cd "$(dirname "$0")" && pwd)" | ||
if [ "$PWD" != "$SCRIPT_HOME" ]; then | ||
echo "Error: This script must be called from its own directory: $SCRIPT_HOME" >&2 | ||
exit 1 | ||
fi | ||
|
||
RUNTIME_ANDROID_HOME=$PWD/../../../.. | ||
|
||
if [ -z "${RIVE_RUNTIME_DIR}" ]; then | ||
echo "RIVE_RUNTIME_DIR is not set" | ||
if [ -d "${RUNTIME_ANDROID_HOME}/submodules/rive-cpp" ]; then | ||
export RIVE_RUNTIME_DIR="$RUNTIME_ANDROID_HOME/submodules/rive-cpp" | ||
else | ||
export RIVE_RUNTIME_DIR="$RUNTIME_ANDROID_HOME/../runtime" | ||
fi | ||
else | ||
echo "RIVE_RUNTIME_DIR already set: $RIVE_RUNTIME_DIR" | ||
fi | ||
|
||
# Android Studio build things. | ||
rm -rf "$RUNTIME_ANDROID_HOME"/kotlin/build/ | ||
rm -rf "$RUNTIME_ANDROID_HOME"/kotlin/.cxx/ | ||
rm -rf "$RUNTIME_ANDROID_HOME"/kotlin/src/main/cpp/build | ||
|
||
# librive | ||
rm -rf ./build | ||
pushd "$RIVE_RUNTIME_DIR" | ||
./build.sh clean | ||
rm -rf ./build/android | ||
popd | ||
|
||
# Rive Renderer | ||
pushd "$RIVE_RUNTIME_DIR"/skia/renderer/ | ||
./build.sh clean | ||
rm -rf ./build/android | ||
popd | ||
|
||
# PLS | ||
pushd "$RIVE_RUNTIME_DIR"/../pls/out | ||
make clean | ||
rm -rf ./android | ||
rm -rf ./dependencies | ||
rm -rf ./obj | ||
popd | ||
|
||
# Skia | ||
pushd "$RIVE_RUNTIME_DIR"/skia/dependencies/ | ||
rm -rf ./skia/out | ||
rm -rf ./skia_debug/out | ||
popd |