You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
510 B
25 lines
510 B
#!/bin/bash
|
|
# Copyright 2019 The Hush Developers
|
|
|
|
UNAME=$(uname)
|
|
|
|
if [ "$UNAME" == "Linux" ] ; then
|
|
JOBS=$(nproc)
|
|
elif [ "$UNAME" == "FreeBSD" ] ; then
|
|
JOBS=$(nproc)
|
|
elif [ "$UNAME" == "Darwin" ] ; then
|
|
JOBS=$(sysctl -n hw.ncpu)
|
|
else
|
|
JOBS=1
|
|
fi
|
|
|
|
echo "Compiling with $JOBS threads..."
|
|
|
|
if [ "$1" == "clean" ]; then
|
|
make clean
|
|
elif [ "$1" == "cleanbuild" ]; then
|
|
make clean
|
|
qmake silentdragon.pro CONFIG+=debug; make -j$JOBS
|
|
else
|
|
qmake silentdragon.pro CONFIG+=debug; make -j$JOBS
|
|
fi
|
|
|