mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-06 02:49:27 +00:00
Fir for android build
This commit is contained in:
parent
d4b59d97de
commit
61e87d3f61
5 changed files with 12 additions and 5 deletions
|
@ -11,7 +11,7 @@
|
||||||
void __clear_cache(void* start, void* end) { }
|
void __clear_cache(void* start, void* end) { }
|
||||||
#include "../External/ios/include/wallet2_api.h"
|
#include "../External/ios/include/wallet2_api.h"
|
||||||
#else
|
#else
|
||||||
#include "../External/android/x86/include/wallet2_api.h"
|
#include "../External/include/wallet2_api.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using namespace std::chrono_literals;
|
using namespace std::chrono_literals;
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
void __clear_cache(void* start, void* end) { }
|
void __clear_cache(void* start, void* end) { }
|
||||||
#include "../External/ios/include/wallet2_api.h"
|
#include "../External/ios/include/wallet2_api.h"
|
||||||
#else
|
#else
|
||||||
#include "../External/android/x86/include/wallet2_api.h"
|
#include "../External/include/wallet2_api.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using namespace std::chrono_literals;
|
using namespace std::chrono_literals;
|
||||||
|
|
|
@ -15,7 +15,7 @@ do
|
||||||
FLAGS=""
|
FLAGS=""
|
||||||
PREFIX=${WORKDIR}/prefix_${arch}
|
PREFIX=${WORKDIR}/prefix_${arch}
|
||||||
DEST_LIB_DIR=${PREFIX}/lib/haven
|
DEST_LIB_DIR=${PREFIX}/lib/haven
|
||||||
DEST_INCLUDE_DIR=${PREFIX}/include
|
DEST_INCLUDE_DIR=${PREFIX}/include/haven
|
||||||
export CMAKE_INCLUDE_PATH="${PREFIX}/include"
|
export CMAKE_INCLUDE_PATH="${PREFIX}/include"
|
||||||
export CMAKE_LIBRARY_PATH="${PREFIX}/lib"
|
export CMAKE_LIBRARY_PATH="${PREFIX}/lib"
|
||||||
ANDROID_STANDALONE_TOOLCHAIN_PATH="${TOOLCHAIN_BASE_DIR}_${arch}"
|
ANDROID_STANDALONE_TOOLCHAIN_PATH="${TOOLCHAIN_BASE_DIR}_${arch}"
|
||||||
|
|
|
@ -14,7 +14,7 @@ do
|
||||||
FLAGS=""
|
FLAGS=""
|
||||||
PREFIX=${WORKDIR}/prefix_${arch}
|
PREFIX=${WORKDIR}/prefix_${arch}
|
||||||
DEST_LIB_DIR=${PREFIX}/lib/monero
|
DEST_LIB_DIR=${PREFIX}/lib/monero
|
||||||
DEST_INCLUDE_DIR=${PREFIX}/include
|
DEST_INCLUDE_DIR=${PREFIX}/include/monero
|
||||||
export CMAKE_INCLUDE_PATH="${PREFIX}/include"
|
export CMAKE_INCLUDE_PATH="${PREFIX}/include"
|
||||||
export CMAKE_LIBRARY_PATH="${PREFIX}/lib"
|
export CMAKE_LIBRARY_PATH="${PREFIX}/lib"
|
||||||
ANDROID_STANDALONE_TOOLCHAIN_PATH="${TOOLCHAIN_BASE_DIR}_${arch}"
|
ANDROID_STANDALONE_TOOLCHAIN_PATH="${TOOLCHAIN_BASE_DIR}_${arch}"
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
WORKDIR=/opt/android
|
WORKDIR=/opt/android
|
||||||
CW_DIR=${WORKDIR}/cake_wallet
|
CW_DIR=${WORKDIR}/cake_wallet
|
||||||
CW_EXRTERNAL_DIR=${CW_DIR}/cw_shared_external/ios/External/android
|
CW_EXRTERNAL_DIR=${CW_DIR}/cw_shared_external/ios/External/android
|
||||||
|
CW_HAVEN_EXTERNAL_DIR=${CW_DIR}/cw_haven/ios/External
|
||||||
|
CW_MONERO_EXTERNAL_DIR=${CW_DIR}/cw_monero/ios/External
|
||||||
for arch in "aarch" "aarch64" "i686" "x86_64"
|
for arch in "aarch" "aarch64" "i686" "x86_64"
|
||||||
do
|
do
|
||||||
|
|
||||||
|
@ -32,3 +33,9 @@ cp -r ${PREFIX}/include/* $INCLUDE_DIR
|
||||||
|
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
mkdir -p ${CW_HAVEN_EXTERNAL_DIR}/include
|
||||||
|
mkdir -p ${CW_MONERO_EXTERNAL_DIR}/include
|
||||||
|
|
||||||
|
cp $CW_EXRTERNAL_DIR/x86/include/monero/wallet2_api.h ${CW_MONERO_EXTERNAL_DIR}/include
|
||||||
|
cp $CW_EXRTERNAL_DIR/x86/include/haven/wallet2_api.h ${CW_HAVEN_EXTERNAL_DIR}/include
|
||||||
|
|
Loading…
Reference in a new issue