diff options
| author | Ilya Kitaev <mbg033@gmail.com> | 2016-10-07 00:46:42 +0300 |
|---|---|---|
| committer | Ilya Kitaev <mbg033@gmail.com> | 2016-10-10 00:18:27 +0300 |
| commit | defc2a414abe6df837682d1472db0272f0b55eca (patch) | |
| tree | 232053c0a889c103197d0e7c01d7dc0ffc8fed48 /get_libwallet_api.sh | |
| parent | 2966b0db698eabfff79a461c20f2f37f53ba3666 (diff) | |
| download | monzero-gui-defc2a414abe6df837682d1472db0272f0b55eca.tar.gz monzero-gui-defc2a414abe6df837682d1472db0272f0b55eca.tar.xz monzero-gui-defc2a414abe6df837682d1472db0272f0b55eca.zip | |
build: get_libwallet_api.sh accepts build type ("Debug" or "Release",
release is default); extra build script that skips cmake invocations
Diffstat (limited to 'get_libwallet_api.sh')
| -rwxr-xr-x | get_libwallet_api.sh | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/get_libwallet_api.sh b/get_libwallet_api.sh index 0cc850ed..d46b9910 100755 --- a/get_libwallet_api.sh +++ b/get_libwallet_api.sh @@ -5,6 +5,11 @@ # MONERO_BRANCH=master MONERO_URL=https://github.com/mbg033/monero.git MONERO_BRANCH=develop +# Buidling "debug" build optionally +BUILD_TYPE=$1 +if [ -z $BUILD_TYPE ]; then + BUILD_TYPE=Release +fi # thanks to SO: http://stackoverflow.com/a/20283965/4118915 CPU_CORE_COUNT=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || sysctl -n hw.ncpu) pushd $(pwd) @@ -39,19 +44,19 @@ platform=$(get_platform) if [ "$platform" == "darwin" ]; then # Do something under Mac OS X platform echo "Configuring build for MacOS.." - cmake -D CMAKE_BUILD_TYPE=Release -D STATIC=ON -D BUILD_GUI_DEPS=ON -D INSTALL_VENDORED_LIBUNBOUND=ON -D CMAKE_INSTALL_PREFIX="$MONERO_DIR" ../.. + cmake -D CMAKE_BUILD_TYPE=$BUILD_TYPE -D STATIC=ON -D BUILD_GUI_DEPS=ON -D INSTALL_VENDORED_LIBUNBOUND=ON -D CMAKE_INSTALL_PREFIX="$MONERO_DIR" ../.. elif [ "$platform" == "linux" ]; then # Do something under GNU/Linux platform echo "Configuring build for Linux.." - cmake -D CMAKE_BUILD_TYPE=Release -D STATIC=ON -D BUILD_GUI_DEPS=ON -D CMAKE_INSTALL_PREFIX="$MONERO_DIR" ../.. + cmake -D CMAKE_BUILD_TYPE=$BUILD_TYPE -D STATIC=ON -D BUILD_GUI_DEPS=ON -D CMAKE_INSTALL_PREFIX="$MONERO_DIR" ../.. elif [ "$platform" == "mingw64" ]; then # Do something under Windows NT platform echo "Configuring build for MINGW64.." - cmake -D CMAKE_BUILD_TYPE=Release -D STATIC=ON -D BUILD_GUI_DEPS=ON -D INSTALL_VENDORED_LIBUNBOUND=ON -D CMAKE_INSTALL_PREFIX="$MONERO_DIR" -G "MSYS Makefiles" ../.. + cmake -D CMAKE_BUILD_TYPE=$BUILD_TYPE -D STATIC=ON -D BUILD_GUI_DEPS=ON -D INSTALL_VENDORED_LIBUNBOUND=ON -D CMAKE_INSTALL_PREFIX="$MONERO_DIR" -G "MSYS Makefiles" ../.. elif [ "$platform" == "mingw32" ]; then # Do something under Windows NT platform echo "Configuring build for MINGW32.." - cmake -D CMAKE_BUILD_TYPE=Release -D STATIC=ON -D BUILD_GUI_DEPS=ON -D INSTALL_VENDORED_LIBUNBOUND=ON -D CMAKE_INSTALL_PREFIX="$MONERO_DIR" -G "MSYS Makefiles" ../.. + cmake -D CMAKE_BUILD_TYPE=$BUILD_TYPE -D STATIC=ON -D BUILD_GUI_DEPS=ON -D INSTALL_VENDORED_LIBUNBOUND=ON -D CMAKE_INSTALL_PREFIX="$MONERO_DIR" -G "MSYS Makefiles" ../.. else echo "Unsupported platform: $platform" popd |
