Browse Source

Teach build.sh about release vs debug builds

pull/140/head
Duke Leto 4 years ago
parent
commit
d323f75e8c
  1. 16
      build.sh

16
build.sh

@ -1,6 +1,8 @@
#!/bin/bash #!/bin/bash
# Copyright 2019 The Hush Developers # Copyright 2019-2020 The Hush Developers
# Released under the GPLv3
set -e
UNAME=$(uname) UNAME=$(uname)
if [ "$UNAME" == "Linux" ] ; then if [ "$UNAME" == "Linux" ] ; then
@ -17,11 +19,13 @@ VERSION=$(cat src/version.h |cut -d\" -f2)
echo "Compiling SilentDragon $VERSION with $JOBS threads..." echo "Compiling SilentDragon $VERSION with $JOBS threads..."
CONF=silentdragon.pro CONF=silentdragon.pro
set -e
qbuild () { qbuild () {
qmake $CONF CONFIG+=debug qmake $CONF -spec linux-clang CONFIG+=debug
#lupdate $CONF make -j$JOBS
#lrelease $CONF }
qbuild_release () {
qmake $CONF -spec linux-clang CONFIG+=release
make -j$JOBS make -j$JOBS
} }
@ -33,6 +37,8 @@ elif [ "$1" == "linguist" ]; then
elif [ "$1" == "cleanbuild" ]; then elif [ "$1" == "cleanbuild" ]; then
make clean make clean
qbuild qbuild
elif [ "$1" == "release" ]; then
qbuild_release
else else
qbuild qbuild
fi fi

Loading…
Cancel
Save