blob: 7009a20f19b62fb952f3598e90015575394eb24c [file] [log] [blame]
#!/bin/bash
set -e
cd ../..
./build.sh "$@"
cd skia/renderer
cd build
OPTION=$1
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" = "clean" ]; then
echo Cleaning project ...
premake5 clean
elif [ "$OPTION" = "release" ] || [ "$OPTION" = "android" ]; then
premake5 gmake && make config=release -j7
else
premake5 gmake && make -j7
fi