mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-12-03 05:34:13 +01:00
build monero-java on windows using --export-all-symbols
combine build script
This commit is contained in:
@@ -1,10 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
# build monero-project dependencies
|
||||
HOST_NCORES=$(nproc 2>/dev/null || shell nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 1)
|
||||
cd ./external/monero-project/ || exit 1
|
||||
git submodule update --init --force || exit 1
|
||||
make release-static -j$HOST_NCORES || exit 1
|
||||
HOST_NCORES=$(nproc 2>/dev/null || shell nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 1)
|
||||
if [[ "$OSTYPE" == "msys" ]]; then
|
||||
bit=$(getconf LONG_BIT)
|
||||
if [ "$bit" == "64" ]; then
|
||||
make release-static-win64 -j$HOST_NCORES || exit 1
|
||||
else
|
||||
make release-static-win32 -j$HOST_NCORES || exit 1
|
||||
fi
|
||||
elif [[ "$OSTYPE" == "cygwin" ]]; then
|
||||
echo "monero-project supports building on Windows only with MSYS"
|
||||
exit 1
|
||||
else
|
||||
# OS is not windows
|
||||
make release-static -j$HOST_NCORES || exit 1
|
||||
fi
|
||||
cd ../../
|
||||
|
||||
# build libmonero-cpp shared library
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
HOST_NCORES=$(nproc 2>/dev/null || shell nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 1)
|
||||
|
||||
# build libmonero-cpp shared library
|
||||
mkdir -p build &&
|
||||
cd build &&
|
||||
cmake .. &&
|
||||
cmake --build . &&
|
||||
make .
|
||||
Reference in New Issue
Block a user