mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-22 02:34:59 +00:00
fixed zano build script
This commit is contained in:
parent
a260d0a599
commit
d5f84fec0f
2 changed files with 16 additions and 10 deletions
|
@ -271,7 +271,7 @@ extern "C"
|
|||
|
||||
char * restore_wallet_from_seed(char *path, char *password, char *seed, int32_t networkType, uint64_t restoreHeight, char *error)
|
||||
{
|
||||
return strdup(restore(seed, path, password, "");
|
||||
return strdup(plain_wallet::restore(seed, path, password, "").c_str());
|
||||
}
|
||||
|
||||
bool restore_wallet_from_keys(char *path, char *password, char *language, char *address, char *viewKey, char *spendKey, int32_t networkType, uint64_t restoreHeight, char *error)
|
||||
|
@ -306,7 +306,7 @@ extern "C"
|
|||
|
||||
char * load_wallet(char *path, char *password, int32_t nettype)
|
||||
{
|
||||
return strdup(open(path, password));
|
||||
return strdup(plain_wallet::open(path, password).c_str());
|
||||
}
|
||||
|
||||
char *error_string() {
|
||||
|
@ -326,7 +326,7 @@ extern "C"
|
|||
|
||||
|
||||
char *get_wallet_info(uint64_t hwallet) {
|
||||
return strdup(plain_wallet::get_wallet_info(hwallet));
|
||||
return strdup(plain_wallet::get_wallet_info(hwallet).c_str());
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -365,21 +365,21 @@ extern "C"
|
|||
|
||||
char* get_wallet_status(uint64_t hwallet)
|
||||
{
|
||||
return strdup(plain_wallet::get_wallet_status(hwallet));
|
||||
return strdup(plain_wallet::get_wallet_status(hwallet).c_str());
|
||||
}
|
||||
|
||||
char* async_call(char* method_name, uint64_t instance_id, char* params)
|
||||
{
|
||||
return strdup(plain_wallet::async_call(method_name, instance_id, params));
|
||||
return strdup(plain_wallet::async_call(method_name, instance_id, params).c_str());
|
||||
}
|
||||
char* try_pull_result(uint64_t job_id)
|
||||
{
|
||||
return strdup(plain_wallet::try_pull_result(job_id));
|
||||
return strdup(plain_wallet::try_pull_result(job_id).c_str());
|
||||
}
|
||||
|
||||
char* get_connectivity_status()
|
||||
{
|
||||
return strdup(plain_wallet::get_connectivity_status());
|
||||
return strdup(plain_wallet::get_connectivity_status().c_str());
|
||||
}
|
||||
|
||||
bool setup_node(char *address, char *login, char *password, bool use_ssl, bool is_light_wallet, char *error)
|
||||
|
@ -419,7 +419,7 @@ extern "C"
|
|||
|
||||
char* set_password(uint64_t hwallet, char *password, Utf8Box &error)
|
||||
{
|
||||
return strdup(plain_wallet::reset_wallet_password(hwallet, password));
|
||||
return strdup(plain_wallet::reset_wallet_password(hwallet, password).c_str());
|
||||
}
|
||||
|
||||
bool transaction_create(char *address, char *asset_type, char *payment_id, char *amount,
|
||||
|
@ -565,6 +565,7 @@ extern "C"
|
|||
|
||||
uint64_t is_needed_to_refresh()
|
||||
{
|
||||
return 0;
|
||||
/*
|
||||
if (m_listener == nullptr) {
|
||||
return false;
|
||||
|
|
|
@ -12,6 +12,10 @@ cd $ZANO_SRC_DIR
|
|||
#git submodule init
|
||||
#git submodule update
|
||||
git pull -r
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Failed to git pull -r"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for arch in "aarch" "aarch64" "i686" "x86_64"
|
||||
do
|
||||
|
@ -63,7 +67,7 @@ cd $ZANO_SRC_DIR
|
|||
rm -rf ./build/release
|
||||
mkdir -p ./build/release
|
||||
cd ./build/release
|
||||
CC=${CLANG} CXX=${CXXLANG} cmake -S../.. -DCMAKE_INSTALL_PREFIX=${DEST_LIB_DIR} -D CAKEWALLET=TRUE -D TESTNET=TRUE -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
|
||||
CC=${CLANG} CXX=${CXXLANG} cmake -S../.. -DCMAKE_INSTALL_PREFIX=./_install -D CAKEWALLET=TRUE -D TESTNET=TRUE -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
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Failed to perform cmake"
|
||||
exit 1
|
||||
|
@ -83,6 +87,7 @@ if [ $? -ne 0 ]; then
|
|||
fi
|
||||
#exit 1
|
||||
|
||||
#cp -r ./lib/* $DEST_LIB_DIR
|
||||
cp -r ./_install/$ARCH_ABI/lib/* $DEST_LIB_DIR
|
||||
#cp ../../src/wallet/api/wallet2_api.h $DEST_INCLUDE_DIR
|
||||
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue