mirror of
https://github.com/monero-project/monero-gui
synced 2024-12-28 00:23:44 +01:00
defc2a414a
release is default); extra build script that skips cmake invocations
53 lines
1.0 KiB
Bash
Executable File
53 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
|
|
# MONERO_URL=https://github.com/monero-project/monero.git
|
|
# MONERO_BRANCH=master
|
|
CPU_CORE_COUNT=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || sysctl -n hw.ncpu)
|
|
pushd $(pwd)
|
|
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
source $ROOT_DIR/utils.sh
|
|
|
|
|
|
INSTALL_DIR=$ROOT_DIR/wallet
|
|
MONERO_DIR=$ROOT_DIR/monero
|
|
|
|
|
|
mkdir -p $MONERO_DIR/build/release
|
|
pushd $MONERO_DIR/build/release
|
|
|
|
# reusing function from "utils.sh"
|
|
platform=$(get_platform)
|
|
|
|
pushd $MONERO_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)
|
|
# for Linux, we use libunbound shipped with the system, so we don't need to build it
|
|
|
|
if [ "$platform" != "linux" ]; then
|
|
echo "Building libunbound..."
|
|
pushd $MONERO_DIR/build/release/external/unbound
|
|
# no need to make, it was already built as dependency for libwallet
|
|
# make -j$CPU_CORE_COUNT
|
|
make install -j$CPU_CORE_COUNT
|
|
popd
|
|
fi
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|