Browse Source

Choose number of compile jobs in build.sh #156

no_mining_until_synced
Duke 3 months ago
parent
commit
eea2a9a6bf
  1. 23
      build.sh

23
build.sh

@ -4,18 +4,7 @@
set -e
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
VERSION=$(cat src/version.h |cut -d\" -f2)
VERSION=$(grep APP_VERSION src/version.h |cut -d\" -f2)
CONF=${SDCONF:-silentdragon.pro}
WALLET="SilentDragon"
if [ "$CONF" == "silentdragonx.pro" ] ; then
@ -40,12 +29,12 @@ make --version
qbuild () {
qmake $CONF -spec linux-clang CONFIG+=debug
make -j$JOBS
make -j2 "$@"
}
qbuild_release () {
qmake $CONF -spec linux-clang CONFIG+=release
make -j$JOBS
make -j2 "$@"
}
if [ "$1" == "clean" ]; then
@ -55,9 +44,9 @@ elif [ "$1" == "linguist" ]; then
lrelease $CONF
elif [ "$1" == "cleanbuild" ]; then
make clean
qbuild
qbuild "$@"
elif [ "$1" == "release" ]; then
qbuild_release
qbuild_release "$@"
else
qbuild
qbuild "$@"
fi

Loading…
Cancel
Save