8 changed files with 163 additions and 2128 deletions
@ -0,0 +1,38 @@ |
|||
#!/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 |
|||
|
|||
VERSION=$(cat src/version.h |cut -d\" -f2) |
|||
echo "Compiling SilentDragonLite $VERSION with $JOBS threads..." |
|||
CONF=silentdragon-lite.pro |
|||
|
|||
set -e |
|||
qbuild () { |
|||
qmake $CONF CONFIG+=debug |
|||
#lupdate $CONF |
|||
#lrelease $CONF |
|||
make -j$JOBS |
|||
} |
|||
|
|||
if [ "$1" == "clean" ]; then |
|||
make clean |
|||
elif [ "$1" == "linguist" ]; then |
|||
lupdate $CONF |
|||
lrelease $CONF |
|||
elif [ "$1" == "cleanbuild" ]; then |
|||
make clean |
|||
qbuild |
|||
else |
|||
qbuild |
|||
fi |
@ -0,0 +1,39 @@ |
|||
#!/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 |
|||
|
|||
|
|||
VERSION=$(cat src/version.h |cut -d\" -f2) |
|||
echo "Compiling SilentDragonLite $VERSION with $JOBS threads..." |
|||
CONF=silentdragon-lite.pro |
|||
|
|||
set -e |
|||
qbuild () { |
|||
/home/$USER/Qt/5.11.2/static/bin/qmake $CONF CONFIG+=debug |
|||
#lupdate $CONF |
|||
#lrelease $CONF |
|||
make -j$JOBS |
|||
} |
|||
|
|||
if [ "$1" == "clean" ]; then |
|||
make clean |
|||
elif [ "$1" == "linguist" ]; then |
|||
lupdate $CONF |
|||
lrelease $CONF |
|||
elif [ "$1" == "cleanbuild" ]; then |
|||
make clean |
|||
qbuild |
|||
else |
|||
qbuild |
|||
fi |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 401 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 18 KiB |
File diff suppressed because it is too large
@ -0,0 +1,33 @@ |
|||
#!/bin/bash |
|||
# Copyright 2019 The Hush Developers |
|||
|
|||
|
|||
|
|||
VERSION=$(cat src/version.h |cut -d\" -f2) |
|||
echo "Compiling SilentDragonLite $VERSION .exe with $JOBS threads..." |
|||
CONF=silentdragon-lite.pro |
|||
|
|||
set -e |
|||
CC_x86_64_pc_windows_gnu="x86_64-w64-mingw32.static-gcc" |
|||
PATH="/home/$USER/github/mxe/usr/bin:${PATH}" |
|||
mkdir release |
|||
cp src/precompiled.h release/ |
|||
qbuild () { |
|||
/home/$USER/github/mxe/usr/bin/x86_64-w64-mingw32.static-qmake-qt5 $CONF CONFIG+=release |
|||
|
|||
#lupdate $CONF |
|||
#lrelease $CONF |
|||
make -j$JOBS |
|||
} |
|||
|
|||
if [ "$1" == "clean" ]; then |
|||
make clean |
|||
elif [ "$1" == "linguist" ]; then |
|||
lupdate $CONF |
|||
lrelease $CONF |
|||
elif [ "$1" == "cleanbuild" ]; then |
|||
make clean |
|||
qbuild |
|||
else |
|||
qbuild |
|||
fi |
Loading…
Reference in new issue