mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-24 12:39:25 +00:00
build: added "debug" build option
This commit is contained in:
parent
39d74f1f20
commit
4844bd3171
1 changed files with 13 additions and 15 deletions
28
build.sh
28
build.sh
|
@ -1,17 +1,28 @@
|
|||
#!/bin/bash
|
||||
|
||||
BUILD_TYPE=$1
|
||||
if [ -z $BUILD_TYPE ]; then
|
||||
BUILD_TYPE=Release
|
||||
fi
|
||||
|
||||
|
||||
source ./utils.sh
|
||||
pushd $(pwd)
|
||||
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
MONERO_DIR=monero
|
||||
|
||||
if [ ! -d $MONERO_DIR ]; then
|
||||
$SHELL get_libwallet_api.sh
|
||||
$SHELL get_libwallet_api.sh $BUILD_TYPE
|
||||
fi
|
||||
|
||||
if [ ! -d build ]; then mkdir build; fi
|
||||
|
||||
CONFIG="CONFIG+=release"
|
||||
if [ $BUILD_TYPE == "Release" ]; then
|
||||
CONFIG="CONFIG+=release";
|
||||
else
|
||||
CONFIG="CONFIG+=debug"
|
||||
fi
|
||||
|
||||
|
||||
platform=$(get_platform)
|
||||
if [ "$platform" == "linux" ]; then
|
||||
|
@ -27,16 +38,3 @@ make
|
|||
make deploy
|
||||
popd
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue