aboutsummaryrefslogtreecommitdiff
path: root/get_libwallet_api.sh
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-09-19 17:47:44 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-09-19 17:47:44 +0300
commit740669a909d55e84e34217b57fd0224bb61bc0f1 (patch)
tree5cfdade5d8c007040607e5880d34c6c731ed9567 /get_libwallet_api.sh
parentc40b094e2c939a09ea8169fceecda0e660bd577a (diff)
downloadmonzero-gui-740669a909d55e84e34217b57fd0224bb61bc0f1.tar.gz
monzero-gui-740669a909d55e84e34217b57fd0224bb61bc0f1.tar.xz
monzero-gui-740669a909d55e84e34217b57fd0224bb61bc0f1.zip
build: Building vendored libunbound for mingw builds
Diffstat (limited to 'get_libwallet_api.sh')
-rwxr-xr-xget_libwallet_api.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/get_libwallet_api.sh b/get_libwallet_api.sh
index a17b0fec..3e6f4933 100755
--- a/get_libwallet_api.sh
+++ b/get_libwallet_api.sh
@@ -38,10 +38,10 @@ elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
cmake -D CMAKE_BUILD_TYPE=Release -D STATIC=ON -D BUILD_GUI_DEPS=ON -D CMAKE_INSTALL_PREFIX="$MONERO_DIR" ../..
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ]; then
# Do something under Windows NT platform
- cmake -D CMAKE_BUILD_TYPE=Release -D STATIC=ON -D BUILD_GUI_DEPS=ON -D CMAKE_INSTALL_PREFIX="$MONERO_DIR" -G "MSYS Makefiles" ../..
+ 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" ../..
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
# Do something under Windows NT platform
- cmake -D CMAKE_BUILD_TYPE=Release -D STATIC=ON -D BUILD_GUI_DEPS=ON -D CMAKE_INSTALL_PREFIX="$MONERO_DIR" -G "MSYS Makefiles" ../..
+ 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" ../..
fi
@@ -53,7 +53,8 @@ popd
# unbound is one more dependency. can't be merged to the wallet_merged
# since filename conflict (random.c.obj)
# for Linux, we use libunbound from repository, so we don't need to build it
-if [ $PLATFORM != "Linux" ]; then
+
+if [ "$PLATFORM" != "Linux" ]; then
echo "Building libunbound..."
pushd $MONERO_DIR/build/release/external/unbound
make -j$CPU_CORE_COUNT