1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-04 15:26:00 +02:00

Add Ninja as a optional CMake Generator

Ninja:
real	2m25.508s
user	9m52.981s
sys	0m32.548s

Without ninja:
real	8m38.425s
user	8m5.723s
sys	0m30.840s
This commit is contained in:
disarray2077 2022-07-07 21:22:08 -03:00
parent 69739d9329
commit 2bedd687db
2 changed files with 14 additions and 4 deletions

View file

@ -7,6 +7,11 @@ ROOTPATH="$(dirname "$SCRIPTPATH")"
echo Building from from $SCRIPTPATH
cd $SCRIPTPATH
USE_NINJA=""
if command -v ninja >/dev/null 2>&1 ; then
USE_NINJA="-GNinja"
fi
# exit when any command fails
set -e
@ -35,10 +40,10 @@ if [ ! -d jbuild_d ]; then
mkdir jbuild
fi
cd jbuild_d
cmake -DCMAKE_BUILD_TYPE=Debug ../
cmake $USE_NINJA -DCMAKE_BUILD_TYPE=Debug ../
cmake --build .
cd ../jbuild
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ../
cmake $USE_NINJA -DCMAKE_BUILD_TYPE=RelWithDebInfo ../
cmake --build .
cd ../IDE/dist