aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh28
1 files changed, 13 insertions, 15 deletions
diff --git a/build.sh b/build.sh
index a8c2a2c3..8d2aebc1 100755
--- a/build.sh
+++ b/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
-
-
-
-
-
-
-
-
-
-
-
-
-