mirror of
https://github.com/rive-app/rive-cpp.git
synced 2026-01-18 21:21:17 +01:00
20 lines
499 B
Bash
Executable File
20 lines
499 B
Bash
Executable File
#!/bin/bash
|
|
|
|
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 ...
|
|
# TODO: fix premake5 clean to bubble the clean command to dependent projects
|
|
premake5 gmake && make clean
|
|
elif [ "$OPTION" = "release" ]; then
|
|
premake5 gmake && make config=release -j7
|
|
else
|
|
premake5 gmake && make -j7
|
|
fi
|