blob: 4b4c292212900c88207cb625ce1ee105f3386720 [file] [log] [blame]
OPTION=$1
unameSystem="$(uname -s)"
case "${unameSystem}" in
Linux*) system=linux;;
Darwin*) system=macosx;;
*) system="unknown:${unameSystem}"
esac
if [ "$OPTION" = 'help' ]; then
echo build.sh - build debug library
echo build.sh clean - clean the build
echo build.sh release - build release library
elif [ "$OPTION" = "release" ]; then
./build/$system/bin/release/rive_viewer
elif [ "$OPTION" = "lldb" ]; then
lldb build/$system/bin/debug/rive_viewer
else
./build/$system/bin/debug/rive_viewer
fi