mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-11 05:14:34 +00:00
IOS build settings
This commit is contained in:
parent
979acf774a
commit
c6dc9a20e7
1 changed files with 71 additions and 24 deletions
|
@ -34,7 +34,6 @@ HEADERS += \
|
||||||
src/QR-Code-generator/BitBuffer.hpp \
|
src/QR-Code-generator/BitBuffer.hpp \
|
||||||
src/QR-Code-generator/QrCode.hpp \
|
src/QR-Code-generator/QrCode.hpp \
|
||||||
src/QR-Code-generator/QrSegment.hpp \
|
src/QR-Code-generator/QrSegment.hpp \
|
||||||
src/daemon/DaemonManager.h \
|
|
||||||
src/model/AddressBookModel.h \
|
src/model/AddressBookModel.h \
|
||||||
src/libwalletqt/AddressBook.h \
|
src/libwalletqt/AddressBook.h \
|
||||||
src/zxcvbn-c/zxcvbn.h \
|
src/zxcvbn-c/zxcvbn.h \
|
||||||
|
@ -58,13 +57,17 @@ SOURCES += main.cpp \
|
||||||
src/QR-Code-generator/BitBuffer.cpp \
|
src/QR-Code-generator/BitBuffer.cpp \
|
||||||
src/QR-Code-generator/QrCode.cpp \
|
src/QR-Code-generator/QrCode.cpp \
|
||||||
src/QR-Code-generator/QrSegment.cpp \
|
src/QR-Code-generator/QrSegment.cpp \
|
||||||
src/daemon/DaemonManager.cpp \
|
|
||||||
src/model/AddressBookModel.cpp \
|
src/model/AddressBookModel.cpp \
|
||||||
src/libwalletqt/AddressBook.cpp \
|
src/libwalletqt/AddressBook.cpp \
|
||||||
src/zxcvbn-c/zxcvbn.c \
|
src/zxcvbn-c/zxcvbn.c \
|
||||||
src/libwalletqt/UnsignedTransaction.cpp \
|
src/libwalletqt/UnsignedTransaction.cpp \
|
||||||
src/QR-Code-scanner/QrCodeScanner.cpp
|
src/QR-Code-scanner/QrCodeScanner.cpp
|
||||||
|
|
||||||
|
!ios {
|
||||||
|
HEADERS += src/daemon/DaemonManager.h
|
||||||
|
SOURCES += src/daemon/DaemonManager.cpp
|
||||||
|
}
|
||||||
|
|
||||||
lupdate_only {
|
lupdate_only {
|
||||||
SOURCES = *.qml \
|
SOURCES = *.qml \
|
||||||
components/*.qml \
|
components/*.qml \
|
||||||
|
@ -73,10 +76,49 @@ SOURCES = *.qml \
|
||||||
wizard/*js
|
wizard/*js
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ios:armv7 {
|
||||||
|
message("target is armv7")
|
||||||
|
LIBS += \
|
||||||
|
-L$$PWD/ofxiOSBoost/build/libs/boost/lib/armv7 \
|
||||||
|
}
|
||||||
|
ios:arm64 {
|
||||||
|
message("target is arm64")
|
||||||
|
LIBS += \
|
||||||
|
-L$$PWD/ofxiOSBoost/build/libs/boost/lib/arm64 \
|
||||||
|
}
|
||||||
|
!ios {
|
||||||
LIBS += -L$$WALLET_ROOT/lib \
|
LIBS += -L$$WALLET_ROOT/lib \
|
||||||
-lwallet_merged \
|
-lwallet_merged \
|
||||||
$$WALLET_ROOT/build/release/contrib/epee/src/libepee.a \
|
-lepee \
|
||||||
-lunbound
|
-lunbound
|
||||||
|
}
|
||||||
|
|
||||||
|
ios {
|
||||||
|
message("Host is IOS")
|
||||||
|
|
||||||
|
QMAKE_LFLAGS += -v
|
||||||
|
QMAKE_IOS_DEVICE_ARCHS = arm64
|
||||||
|
CONFIG += arm64
|
||||||
|
LIBS += -L$$WALLET_ROOT/lib-ios \
|
||||||
|
-lwallet_merged \
|
||||||
|
-lepee \
|
||||||
|
-lunbound
|
||||||
|
|
||||||
|
LIBS+= \
|
||||||
|
-L$$PWD/OpenSSL-for-iPhone/lib \
|
||||||
|
-lboost_serialization \
|
||||||
|
-lboost_thread \
|
||||||
|
-lboost_system \
|
||||||
|
-lboost_date_time \
|
||||||
|
-lboost_filesystem \
|
||||||
|
-lboost_regex \
|
||||||
|
-lboost_chrono \
|
||||||
|
-lboost_program_options \
|
||||||
|
-lssl \
|
||||||
|
-lcrypto \
|
||||||
|
-ldl
|
||||||
|
}
|
||||||
|
|
||||||
CONFIG(WITH_SCANNER) {
|
CONFIG(WITH_SCANNER) {
|
||||||
if( greaterThan(QT_MINOR_VERSION, 5) ) {
|
if( greaterThan(QT_MINOR_VERSION, 5) ) {
|
||||||
|
@ -95,6 +137,7 @@ CONFIG(WITH_SCANNER) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# currently we only support x86 build as qt.io only provides prebuilt qt for x86 mingw
|
# currently we only support x86 build as qt.io only provides prebuilt qt for x86 mingw
|
||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
|
@ -153,7 +196,7 @@ win32 {
|
||||||
linux {
|
linux {
|
||||||
CONFIG(static) {
|
CONFIG(static) {
|
||||||
message("using static libraries")
|
message("using static libraries")
|
||||||
LIBS+= -Wl,-Bstatic
|
LIBS+= -Wl,-Bstatic
|
||||||
}
|
}
|
||||||
LIBS+= \
|
LIBS+= \
|
||||||
-lboost_serialization \
|
-lboost_serialization \
|
||||||
|
@ -242,32 +285,36 @@ macx {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
!ios {
|
||||||
|
isEmpty(QMAKE_LUPDATE) {
|
||||||
|
win32:LANGUPD = $$[QT_INSTALL_BINS]\lupdate.exe
|
||||||
|
else:LANGUPD = $$[QT_INSTALL_BINS]/lupdate
|
||||||
|
}
|
||||||
|
|
||||||
isEmpty(QMAKE_LUPDATE) {
|
isEmpty(QMAKE_LRELEASE) {
|
||||||
win32:LANGUPD = $$[QT_INSTALL_BINS]\lupdate.exe
|
win32:LANGREL = $$[QT_INSTALL_BINS]\lrelease.exe
|
||||||
else:LANGUPD = $$[QT_INSTALL_BINS]/lupdate
|
else:LANGREL = $$[QT_INSTALL_BINS]/lrelease
|
||||||
|
}
|
||||||
|
|
||||||
|
langupd.command = \
|
||||||
|
$$LANGUPD $$LANGUPD_OPTIONS $$shell_path($$_PRO_FILE) -ts $$_PRO_FILE_PWD/$$TRANSLATIONS
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
langrel.depends = langupd
|
||||||
|
langrel.input = TRANSLATIONS
|
||||||
|
langrel.output = $$TRANSLATION_TARGET_DIR/${QMAKE_FILE_BASE}.qm
|
||||||
|
langrel.commands = \
|
||||||
|
$$LANGREL $$LANGREL_OPTIONS ${QMAKE_FILE_IN} -qm $$TRANSLATION_TARGET_DIR/${QMAKE_FILE_BASE}.qm
|
||||||
|
langrel.CONFIG += no_link
|
||||||
|
|
||||||
|
QMAKE_EXTRA_TARGETS += langupd deploy deploy_win
|
||||||
|
QMAKE_EXTRA_COMPILERS += langrel
|
||||||
}
|
}
|
||||||
|
|
||||||
isEmpty(QMAKE_LRELEASE) {
|
|
||||||
win32:LANGREL = $$[QT_INSTALL_BINS]\lrelease.exe
|
|
||||||
else:LANGREL = $$[QT_INSTALL_BINS]/lrelease
|
|
||||||
}
|
|
||||||
|
|
||||||
langupd.command = \
|
|
||||||
$$LANGUPD $$LANGUPD_OPTIONS $$shell_path($$_PRO_FILE) -ts $$_PRO_FILE_PWD/$$TRANSLATIONS
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
langrel.depends = langupd
|
|
||||||
langrel.input = TRANSLATIONS
|
|
||||||
langrel.output = $$TRANSLATION_TARGET_DIR/${QMAKE_FILE_BASE}.qm
|
|
||||||
langrel.commands = \
|
|
||||||
$$LANGREL $$LANGREL_OPTIONS ${QMAKE_FILE_IN} -qm $$TRANSLATION_TARGET_DIR/${QMAKE_FILE_BASE}.qm
|
|
||||||
langrel.CONFIG += no_link
|
|
||||||
|
|
||||||
QMAKE_EXTRA_TARGETS += langupd deploy deploy_win
|
|
||||||
QMAKE_EXTRA_COMPILERS += langrel
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Update: no issues with the "slow link process" anymore,
|
# Update: no issues with the "slow link process" anymore,
|
||||||
|
|
Loading…
Reference in a new issue