mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 21:04:32 +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
|
#!/bin/bash
|
||||||
|
|
||||||
|
BUILD_TYPE=$1
|
||||||
|
if [ -z $BUILD_TYPE ]; then
|
||||||
|
BUILD_TYPE=Release
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
source ./utils.sh
|
source ./utils.sh
|
||||||
pushd $(pwd)
|
pushd $(pwd)
|
||||||
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
MONERO_DIR=monero
|
MONERO_DIR=monero
|
||||||
|
|
||||||
if [ ! -d $MONERO_DIR ]; then
|
if [ ! -d $MONERO_DIR ]; then
|
||||||
$SHELL get_libwallet_api.sh
|
$SHELL get_libwallet_api.sh $BUILD_TYPE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d build ]; then mkdir build; 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)
|
platform=$(get_platform)
|
||||||
if [ "$platform" == "linux" ]; then
|
if [ "$platform" == "linux" ]; then
|
||||||
|
@ -27,16 +38,3 @@ make
|
||||||
make deploy
|
make deploy
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue