mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-16 17:27:37 +00:00
f6670c0236
* Added CoinsInfo to monero_api_cpp * Add struct on dart * Add struct on dart * Set coins value * CW-415 Use add-coin-to-monero branch * CW-415 Add get Coin and build Monero Deps using Docker * CW-415 Fix Typo * CW-415 add debug log info * CW-415 Add preferred key Images for coin control to Monero * CW-415 Fix generation * CW-415 Skip GA Cache Externals * CW-415 Skip GA Cache Externals * CW-415 Coin Control: remove Block Explorer for Monero, Add Tx hash, save note on field exit * CW-415 Coin Control: Throw Exception when all outputs are deselected * CW-415 Coin Control: Show Frozen Balance on Dashboard * CW-415 Coin Control: Show Frozen Balance on Dashboard * CW-415 Ignore cached Monero deps in Workflow * CW-415 Fix displaying frozen Balance * Use own Translator with http 1.1.0 * CW-415 Resolve requested Changes * CW-415 Resolve requested Changes * CW-415 Resolve requested Changes * CW-415 Apply requested Changes * CW-415 Apply requested Changes * CW-415 Ensure opening of UnspentCoinsInfo Box, even for Monero.com --------- Co-authored-by: Konstantin Ullrich <konstantinullrich12@gmail.com>
1 line
No EOL
2.1 KiB
Bash
1 line
No EOL
2.1 KiB
Bash
#!/bin/sh
|
|
|
|
. ./config.sh
|
|
HAVEN_VERSION=tags/v3.0.7
|
|
HAVEN_SRC_DIR=${WORKDIR}/haven
|
|
|
|
git clone https://github.com/haven-protocol-org/haven-main.git ${HAVEN_SRC_DIR}
|
|
git checkout ${HAVEN_VERSION}
|
|
cd $HAVEN_SRC_DIR
|
|
git submodule init
|
|
git submodule update
|
|
|
|
for arch in "aarch" "aarch64" "i686" "x86_64"
|
|
do
|
|
FLAGS=""
|
|
PREFIX=${WORKDIR}/prefix_${arch}
|
|
DEST_LIB_DIR=${PREFIX}/lib/haven
|
|
DEST_INCLUDE_DIR=${PREFIX}/include/haven
|
|
export CMAKE_INCLUDE_PATH="${PREFIX}/include"
|
|
export CMAKE_LIBRARY_PATH="${PREFIX}/lib"
|
|
ANDROID_STANDALONE_TOOLCHAIN_PATH="${TOOLCHAIN_BASE_DIR}_${arch}"
|
|
PATH="${ANDROID_STANDALONE_TOOLCHAIN_PATH}/bin:${ORIGINAL_PATH}"
|
|
|
|
mkdir -p $DEST_LIB_DIR
|
|
mkdir -p $DEST_INCLUDE_DIR
|
|
|
|
case $arch in
|
|
"aarch" )
|
|
CLANG=arm-linux-androideabi-clang
|
|
CXXLANG=arm-linux-androideabi-clang++
|
|
BUILD_64=OFF
|
|
TAG="android-armv7"
|
|
ARCH="armv7-a"
|
|
ARCH_ABI="armeabi-v7a"
|
|
FLAGS="-D CMAKE_ANDROID_ARM_MODE=ON -D NO_AES=true";;
|
|
"aarch64" )
|
|
CLANG=aarch64-linux-androideabi-clang
|
|
CXXLANG=aarch64-linux-androideabi-clang++
|
|
BUILD_64=ON
|
|
TAG="android-armv8"
|
|
ARCH="armv8-a"
|
|
ARCH_ABI="arm64-v8a";;
|
|
"i686" )
|
|
CLANG=i686-linux-androideabi-clang
|
|
CXXLANG=i686-linux-androideabi-clang++
|
|
BUILD_64=OFF
|
|
TAG="android-x86"
|
|
ARCH="i686"
|
|
ARCH_ABI="x86";;
|
|
"x86_64" )
|
|
CLANG=x86_64-linux-androideabi-clang
|
|
CXXLANG=x86_64-linux-androideabi-clang++
|
|
BUILD_64=ON
|
|
TAG="android-x86_64"
|
|
ARCH="x86-64"
|
|
ARCH_ABI="x86_64";;
|
|
esac
|
|
|
|
cd $HAVEN_SRC_DIR
|
|
rm -rf ./build/release
|
|
mkdir -p ./build/release
|
|
cd ./build/release
|
|
CC=${CLANG} CXX=${CXXLANG} cmake -D USE_DEVICE_TREZOR=OFF -D BUILD_GUI_DEPS=1 -D BUILD_TESTS=OFF -D ARCH=${ARCH} -D STATIC=ON -D BUILD_64=${BUILD_64} -D CMAKE_BUILD_TYPE=release -D ANDROID=true -D INSTALL_VENDORED_LIBUNBOUND=ON -D BUILD_TAG=${TAG} -D CMAKE_SYSTEM_NAME="Android" -D CMAKE_ANDROID_STANDALONE_TOOLCHAIN="${ANDROID_STANDALONE_TOOLCHAIN_PATH}" -D CMAKE_ANDROID_ARCH_ABI=${ARCH_ABI} $FLAGS ../..
|
|
|
|
make wallet_api -j$THREADS
|
|
find . -path ./lib -prune -o -name '*.a' -exec cp '{}' lib \;
|
|
|
|
cp -r ./lib/* $DEST_LIB_DIR
|
|
cp ../../src/wallet/api/wallet2_api.h $DEST_INCLUDE_DIR
|
|
done
|