mirror of
https://github.com/rive-app/rive-flutter.git
synced 2025-05-17 21:36:06 +08:00

Uses it in the artboard title but also updates the flutter runtime massively to support FFI & WASM C++ Rive Text. PRing to let the tests run. Diffs= 3be5ff0d8 Text (#4372) 90245a5e1 Fix the Android debug build 0a0f3c267 Fix for missing animation in a blend state. (#4415) 440512dca Add simd::if_then_else (#4403) ec9fb5bfc Revert "Update SIMD booleans to use bitwise logic operators" 701d8dee2 Update SIMD booleans to use bitwise logic operators e98b93a61 Add SIMD fallbacks for missing builtins 466f68e3a Add some more core math and SIMD functions
60 lines
1.4 KiB
Bash
Executable File
60 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
CONFIG=debug
|
|
SINGLE=
|
|
for var in "$@"; do
|
|
if [[ $var = "release" ]]; then
|
|
CONFIG=release
|
|
fi
|
|
done
|
|
|
|
unameOut="$(uname -s)"
|
|
case "${unameOut}" in
|
|
Linux*) MACHINE=linux ;;
|
|
Darwin*) MACHINE=mac ;;
|
|
CYGWIN*) MACHINE=cygwin ;;
|
|
MINGW*) MACHINE=mingw ;;
|
|
*) MACHINE="UNKNOWN:${unameOut}" ;;
|
|
esac
|
|
|
|
pushd ../
|
|
./update_dependencies.sh
|
|
popd
|
|
|
|
if [[ ! -f "bin/premake5" ]]; then
|
|
mkdir -p bin
|
|
pushd bin
|
|
echo Downloading Premake5
|
|
if [ "$MACHINE" = 'mac' ]; then
|
|
PREMAKE_URL=https://github.com/premake/premake-core/releases/download/v5.0.0-beta2/premake-5.0.0-beta2-macosx.tar.gz
|
|
else
|
|
PREMAKE_URL=https://github.com/premake/premake-core/releases/download/v5.0.0-beta2/premake-5.0.0-beta2-linux.tar.gz
|
|
fi
|
|
curl $PREMAKE_URL -L -o premake.tar.gz
|
|
# Export premake5 into bin
|
|
tar -xvf premake.tar.gz 2>/dev/null
|
|
# Delete downloaded archive
|
|
rm premake.tar.gz
|
|
popd
|
|
fi
|
|
|
|
export PREMAKE=bin/premake5
|
|
|
|
$PREMAKE --scripts=../macos/rive-cpp/build --file=../premake5_rive_plugin.lua gmake2 --arch=x86_64
|
|
|
|
cd ..
|
|
for var in "$@"; do
|
|
if [[ $var = "clean" ]]; then
|
|
make clean
|
|
make config=release clean
|
|
fi
|
|
done
|
|
|
|
make config=$CONFIG -j$(($(sysctl -n hw.physicalcpu) + 1))
|
|
if [ "$MACHINE" = 'mac' ]; then
|
|
du -hs shared_lib/build/bin/debug/librive_text.dylib
|
|
else
|
|
du -hs shared_lib/build/bin/debug/librive_text.so
|
|
fi
|