build: added "debug" build option

This commit is contained in:
Ilya Kitaev 2016-10-13 15:41:51 +03:00
parent 39d74f1f20
commit 4844bd3171

View file

@ -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