aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xget_libwallet_api.sh17
-rw-r--r--monero-core.pro3
2 files changed, 14 insertions, 6 deletions
diff --git a/get_libwallet_api.sh b/get_libwallet_api.sh
index ffc75091..881e0ace 100755
--- a/get_libwallet_api.sh
+++ b/get_libwallet_api.sh
@@ -29,19 +29,18 @@ rm -fr $BITMONERO_DIR/include
mkdir -p $BITMONERO_DIR/build/release
pushd $BITMONERO_DIR/build/release
-
if [ "$(uname)" == "Darwin" ]; then
# Do something under Mac OS X platform
- cmake -D CMAKE_BUILD_TYPE=Release -D STATIC=ON -D CMAKE_INSTALL_PREFIX="$BITMONERO_DIR" ../..
+ cmake -D CMAKE_BUILD_TYPE=Release -D STATIC=ON -D BUILD_GUI_DEPS=ON -D CMAKE_INSTALL_PREFIX="$BITMONERO_DIR" ../..
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
# Do something under GNU/Linux platform
- cmake -D CMAKE_BUILD_TYPE=Release -D STATIC=ON -D CMAKE_INSTALL_PREFIX="$BITMONERO_DIR" ../..
+ cmake -D CMAKE_BUILD_TYPE=Release -D STATIC=ON -D BUILD_GUI_DEPS=ON -D CMAKE_INSTALL_PREFIX="$BITMONERO_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 CMAKE_INSTALL_PREFIX="$BITMONERO_DIR" -G "MSYS Makefiles" ../..
+ cmake -D CMAKE_BUILD_TYPE=Release -D STATIC=ON -D BUILD_GUI_DEPS=ON -D CMAKE_INSTALL_PREFIX="$BITMONERO_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 CMAKE_INSTALL_PREFIX="$BITMONERO_DIR" -G "MSYS Makefiles" ../..
+ cmake -D CMAKE_BUILD_TYPE=Release -D STATIC=ON -D BUILD_GUI_DEPS=ON -D CMAKE_INSTALL_PREFIX="$BITMONERO_DIR" -G "MSYS Makefiles" ../..
fi
@@ -49,6 +48,14 @@ pushd $BITMONERO_DIR/build/release/src/wallet
make -j$CPU_CORE_COUNT
make install -j$CPU_CORE_COUNT
popd
+
+# unbound is one more dependency. can't be merged to the wallet_merged
+# since filename conflict (random.c.obj)
+pushd $BITMONERO_DIR/build/release/external/unbound
+make -j$CPU_CORE_COUNT
+make install -j$CPU_CORE_COUNT
+popd
+
popd
diff --git a/monero-core.pro b/monero-core.pro
index 4b2bbf25..7403cc8f 100644
--- a/monero-core.pro
+++ b/monero-core.pro
@@ -45,7 +45,8 @@ SOURCES = *.qml \
}
LIBS += -L$$WALLET_ROOT/lib \
- -lwallet_merged
+ -lwallet_merged \
+ -lunbound
win32 {
#QMAKE_LFLAGS += -static