mingw cross compile
This commit is contained in:
@@ -6,12 +6,14 @@ else
|
|||||||
CFLAGS := ""
|
CFLAGS := ""
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
PWD := $(shell pwd)
|
||||||
|
|
||||||
all: release
|
all: release
|
||||||
|
|
||||||
winrelease: target/x86_64-pc-windows-gnu/release/zecwalletlite.lib
|
winrelease: target/x86_64-pc-windows-gnu/release/zecwalletlite.lib
|
||||||
|
|
||||||
target/x86_64-pc-windows-gnu/release/zecwalletlite.lib: src/lib.rs Cargo.toml
|
target/x86_64-pc-windows-gnu/release/zecwalletlite.lib: src/lib.rs Cargo.toml
|
||||||
cargo build --lib --release --target x86_64-pc-windows-gnu
|
SODIUM_LIB_DIR="$(PWD)/libsodium-mingw/" cargo build --lib --release --target x86_64-pc-windows-gnu
|
||||||
|
|
||||||
release: target/release/zecwalletlite.$(EXT)
|
release: target/release/zecwalletlite.$(EXT)
|
||||||
debug: target/debug/zecwalletlite.$(EXT)
|
debug: target/debug/zecwalletlite.$(EXT)
|
||||||
|
|||||||
BIN
lib/libsodium-mingw/libsodium.a
Normal file
BIN
lib/libsodium-mingw/libsodium.a
Normal file
Binary file not shown.
@@ -1,6 +1,7 @@
|
|||||||
#ifndef CAMOUNT_H
|
#ifndef CAMOUNT_H
|
||||||
#define CAMOUNT_H
|
#define CAMOUNT_H
|
||||||
|
|
||||||
|
#include "precompiled.h"
|
||||||
|
|
||||||
class CAmount {
|
class CAmount {
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ void ConnectionLoader::doAutoConnect() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto connection = makeConnection(config);
|
auto connection = makeConnection(config);
|
||||||
|
auto me = this;
|
||||||
|
|
||||||
// After the lib is initialized, try to do get info
|
// After the lib is initialized, try to do get info
|
||||||
connection->doRPC("info", "", [=](auto) {
|
connection->doRPC("info", "", [=](auto) {
|
||||||
@@ -95,7 +96,7 @@ void ConnectionLoader::doAutoConnect() {
|
|||||||
if (isSyncing != nullptr && reply.find("synced_blocks") != reply.end()) {
|
if (isSyncing != nullptr && reply.find("synced_blocks") != reply.end()) {
|
||||||
qint64 synced = reply["synced_blocks"].get<json::number_unsigned_t>();
|
qint64 synced = reply["synced_blocks"].get<json::number_unsigned_t>();
|
||||||
qint64 total = reply["total_blocks"].get<json::number_unsigned_t>();
|
qint64 total = reply["total_blocks"].get<json::number_unsigned_t>();
|
||||||
showInformation("Synced " + QString::number(synced) + " / " + QString::number(total));
|
me->showInformation("Synced " + QString::number(synced) + " / " + QString::number(total));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[=](QString err) {
|
[=](QString err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user