Files
rive-flutter/update_dependencies.sh
philter 8e7c5dae92 Remove taffy
Removing Taffy. Will be replacing with Yoga shortly.

Diffs=
12cf6b8c3 Remove taffy (#6670)
f2ecb3a22 Implement an MSAA fallback for PLS (#6680)
ffde4f5f6 trigger change when text modifier updates (#6675)
20b585bea add support for text feature in runtime (#6674)

Co-authored-by: Philip Chung <philterdesign@gmail.com>
2024-03-01 22:45:42 +00:00

80 lines
1.9 KiB
Bash
Executable File

#!/bin/bash
set -e
# silence push/pop
pushd() {
command pushd "$@" >/dev/null
}
popd() {
command popd "$@" >/dev/null
}
FORCE=false
for var in "$@"; do
if [[ $var = "force" ]]; then
FORCE=true
fi
done
function installRiveCpp {
if [ $FORCE == "true" ] || [ ! -d rive-cpp ]; then
rm -fR rive-cpp
if [ -d ../../runtime ]; then
echo "Getting rive-cpp from current repo."
export INSTALL_TO=$PWD
mkdir -p rive-cpp
pushd ../../runtime
function copyRepoFile {
mkdir -p $(dirname $INSTALL_TO/rive-cpp/$1)
cp $1 $INSTALL_TO/rive-cpp/$1
echo -en "\r\033[K$1"
}
export -f copyRepoFile
git ls-files | xargs -n1 bash -c 'copyRepoFile "$@"' _
echo -en "\r\033[K"
popd
else
echo "Cloning rive-cpp."
git clone https://github.com/rive-app/rive-cpp
fi
# TODO: Fix this so we build the rive.podspec file based on paths determined
# here (for harfbuzz and sheenbidi)
#
# install dependencies from rive-cpp
# pushd rive-cpp/dependencies/macosx
# source config_directories.sh
# popd
# pushd rive-cpp
# ./build.sh
# popd
fi
# For now just manually install the deps.
if [ $FORCE == "true" ] || [ ! -d harfbuzz ]; then
rm -fR harfbuzz
echo "Cloning Harfbuzz."
git clone https://github.com/harfbuzz/harfbuzz
pushd harfbuzz
git checkout "6.0.0" .
popd
fi
if [ $FORCE == "true" ] || [ ! -d SheenBidi ]; then
rm -fR SheenBidi
echo "Cloning SheenBidi."
git clone https://github.com/Tehreer/SheenBidi.git
pushd SheenBidi
git checkout v2.6 .
popd
fi
}
pushd macos
installRiveCpp
popd
pushd ios
installRiveCpp
popd