2014-07-07 20:08:30 +03:00
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
QT += qml quick widgets
|
|
|
|
|
2016-09-19 16:45:34 +03:00
|
|
|
WALLET_ROOT=$$PWD/monero
|
2016-05-17 16:03:59 +03:00
|
|
|
|
2016-03-08 11:08:24 +02:00
|
|
|
CONFIG += c++11
|
2016-02-23 17:59:26 +02:00
|
|
|
|
2016-07-22 15:50:51 +03:00
|
|
|
# cleaning "auto-generated" bitmonero directory on "make distclean"
|
|
|
|
QMAKE_DISTCLEAN += -r $$WALLET_ROOT
|
2016-07-21 12:47:53 +03:00
|
|
|
|
2016-06-03 17:30:19 +03:00
|
|
|
INCLUDEPATH += $$WALLET_ROOT/include \
|
2016-10-02 21:40:40 +03:00
|
|
|
$$PWD/src/libwalletqt \
|
2016-11-20 14:36:14 +02:00
|
|
|
$$PWD/src/QR-Code-generator \
|
2016-10-02 21:40:40 +03:00
|
|
|
$$PWD/src
|
2016-05-17 16:03:59 +03:00
|
|
|
|
2016-01-25 20:36:33 +02:00
|
|
|
HEADERS += \
|
|
|
|
filter.h \
|
2016-02-03 17:37:10 +02:00
|
|
|
clipboardAdapter.h \
|
2016-02-23 17:59:26 +02:00
|
|
|
oscursor.h \
|
2016-06-03 17:30:19 +03:00
|
|
|
src/libwalletqt/WalletManager.h \
|
2016-06-08 13:53:24 +03:00
|
|
|
src/libwalletqt/Wallet.h \
|
|
|
|
src/libwalletqt/PendingTransaction.h \
|
|
|
|
src/libwalletqt/TransactionHistory.h \
|
2016-06-10 16:41:13 +03:00
|
|
|
src/libwalletqt/TransactionInfo.h \
|
2016-11-20 14:36:14 +02:00
|
|
|
src/libwalletqt/QRCodeImageProvider.h \
|
2016-07-19 23:31:09 +03:00
|
|
|
oshelper.h \
|
2016-10-02 21:40:40 +03:00
|
|
|
TranslationManager.h \
|
2016-10-07 23:05:51 +03:00
|
|
|
src/model/TransactionHistoryModel.h \
|
2016-11-20 14:36:14 +02:00
|
|
|
src/model/TransactionHistorySortFilterModel.h \
|
|
|
|
src/QR-Code-generator/BitBuffer.hpp \
|
|
|
|
src/QR-Code-generator/QrCode.hpp \
|
|
|
|
src/QR-Code-generator/QrSegment.hpp
|
2016-01-25 20:36:33 +02:00
|
|
|
|
|
|
|
|
2014-07-07 20:08:30 +03:00
|
|
|
SOURCES += main.cpp \
|
2014-07-16 15:40:09 +03:00
|
|
|
filter.cpp \
|
2016-02-03 17:37:10 +02:00
|
|
|
clipboardAdapter.cpp \
|
2016-02-23 17:59:26 +02:00
|
|
|
oscursor.cpp \
|
2016-06-03 17:30:19 +03:00
|
|
|
src/libwalletqt/WalletManager.cpp \
|
2016-06-08 13:53:24 +03:00
|
|
|
src/libwalletqt/Wallet.cpp \
|
|
|
|
src/libwalletqt/PendingTransaction.cpp \
|
|
|
|
src/libwalletqt/TransactionHistory.cpp \
|
2016-06-10 16:41:13 +03:00
|
|
|
src/libwalletqt/TransactionInfo.cpp \
|
2016-11-20 14:36:14 +02:00
|
|
|
src/libwalletqt/QRCodeImageProvider.cpp \
|
2016-07-19 23:31:09 +03:00
|
|
|
oshelper.cpp \
|
2016-10-02 21:40:40 +03:00
|
|
|
TranslationManager.cpp \
|
2016-10-07 23:05:51 +03:00
|
|
|
src/model/TransactionHistoryModel.cpp \
|
2016-11-20 14:36:14 +02:00
|
|
|
src/model/TransactionHistorySortFilterModel.cpp \
|
|
|
|
src/QR-Code-generator/BitBuffer.cpp \
|
|
|
|
src/QR-Code-generator/QrCode.cpp \
|
|
|
|
src/QR-Code-generator/QrSegment.cpp
|
2014-07-07 20:08:30 +03:00
|
|
|
|
2016-01-29 21:01:52 +02:00
|
|
|
lupdate_only {
|
|
|
|
SOURCES = *.qml \
|
|
|
|
components/*.qml \
|
|
|
|
pages/*.qml \
|
2016-09-05 22:07:53 +03:00
|
|
|
wizard/*.qml \
|
|
|
|
wizard/*js
|
2016-01-29 21:01:52 +02:00
|
|
|
}
|
|
|
|
|
2016-05-27 11:00:26 +03:00
|
|
|
LIBS += -L$$WALLET_ROOT/lib \
|
2016-09-03 13:06:44 +03:00
|
|
|
-lwallet_merged \
|
|
|
|
-lunbound
|
2016-07-04 18:17:26 +03:00
|
|
|
|
2016-10-22 00:28:49 +03:00
|
|
|
|
|
|
|
# currently we only support x86 build as qt.io only provides prebuilt qt for x86 mingw
|
|
|
|
|
2016-07-04 18:17:26 +03:00
|
|
|
win32 {
|
2016-11-09 09:55:31 +02:00
|
|
|
|
2016-10-22 00:28:49 +03:00
|
|
|
contains(QMAKE_HOST.arch, x86_64) {
|
|
|
|
message("Host is 64bit")
|
|
|
|
MSYS_PATH=c:/msys64/mingw32
|
|
|
|
} else {
|
|
|
|
message("Host is 32bit")
|
|
|
|
MSYS_PATH=c:/msys32/mingw32
|
|
|
|
}
|
|
|
|
|
|
|
|
!contains(QMAKE_TARGET.arch, x86_64) {
|
|
|
|
message("Target is 32bit")
|
|
|
|
## Windows x86 (32bit) specific build here
|
|
|
|
## there's 2Mb stack in libwallet allocated internally, so we set stack=4Mb
|
|
|
|
## this fixes app crash for x86 Windows build
|
|
|
|
QMAKE_LFLAGS += -Wl,--stack,4194304
|
|
|
|
} else {
|
|
|
|
message("Target is 64bit")
|
|
|
|
}
|
|
|
|
|
|
|
|
LIBS+=-L$$MSYS_PATH/lib
|
2016-11-09 09:55:31 +02:00
|
|
|
|
2016-07-04 18:17:26 +03:00
|
|
|
LIBS+= \
|
|
|
|
-Wl,-Bstatic \
|
|
|
|
-lboost_serialization-mt \
|
|
|
|
-lboost_thread-mt \
|
|
|
|
-lboost_system-mt \
|
|
|
|
-lboost_date_time-mt \
|
|
|
|
-lboost_filesystem-mt \
|
|
|
|
-lboost_regex-mt \
|
|
|
|
-lboost_chrono-mt \
|
|
|
|
-lboost_program_options-mt \
|
|
|
|
-lssl \
|
|
|
|
-lcrypto \
|
|
|
|
-Wl,-Bdynamic \
|
|
|
|
-lws2_32 \
|
|
|
|
-lwsock32 \
|
|
|
|
-lIphlpapi \
|
|
|
|
-lgdi32
|
2016-10-19 15:44:03 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
2016-07-04 18:17:26 +03:00
|
|
|
}
|
|
|
|
|
2016-07-14 16:05:40 +03:00
|
|
|
linux {
|
2016-09-03 08:57:26 +03:00
|
|
|
CONFIG(static) {
|
|
|
|
LIBS+= -Wl,-Bstatic
|
|
|
|
}
|
2016-07-04 18:17:26 +03:00
|
|
|
LIBS+= \
|
2016-05-27 11:00:26 +03:00
|
|
|
-lboost_serialization \
|
|
|
|
-lboost_thread \
|
|
|
|
-lboost_system \
|
|
|
|
-lboost_date_time \
|
|
|
|
-lboost_filesystem \
|
2016-07-04 18:17:26 +03:00
|
|
|
-lboost_regex \
|
|
|
|
-lboost_chrono \
|
2016-07-13 10:30:12 +03:00
|
|
|
-lboost_program_options \
|
|
|
|
-lssl \
|
|
|
|
-lcrypto \
|
|
|
|
-Wl,-Bdynamic \
|
|
|
|
-ldl
|
2016-09-22 21:39:43 +03:00
|
|
|
# currently monero has an issue with "static" build and linunwind-dev,
|
|
|
|
# so we link libunwind-dev only for non-Ubuntu distros
|
|
|
|
CONFIG(libunwind_off) {
|
|
|
|
message(Building without libunwind)
|
|
|
|
} else {
|
|
|
|
message(Building with libunwind)
|
|
|
|
LIBS += -Wl,-Bdynamic -lunwind
|
|
|
|
}
|
2016-07-04 18:17:26 +03:00
|
|
|
}
|
2016-05-27 11:00:26 +03:00
|
|
|
|
2016-07-14 16:05:40 +03:00
|
|
|
macx {
|
|
|
|
LIBS+= \
|
2016-11-09 09:55:31 +02:00
|
|
|
-L/usr/local/lib \
|
|
|
|
-L/usr/local/opt/openssl/lib \
|
|
|
|
-L/usr/local/opt/boost/lib \
|
|
|
|
-lboost_serialization \
|
2016-07-21 16:29:37 +03:00
|
|
|
-lboost_thread-mt \
|
2016-07-14 16:05:40 +03:00
|
|
|
-lboost_system \
|
|
|
|
-lboost_date_time \
|
|
|
|
-lboost_filesystem \
|
|
|
|
-lboost_regex \
|
|
|
|
-lboost_chrono \
|
|
|
|
-lboost_program_options \
|
|
|
|
-lssl \
|
|
|
|
-lcrypto \
|
|
|
|
-ldl
|
2016-07-25 16:24:07 +03:00
|
|
|
|
2016-07-14 16:05:40 +03:00
|
|
|
}
|
|
|
|
|
2016-05-27 11:00:26 +03:00
|
|
|
|
2016-07-27 22:32:33 +03:00
|
|
|
# translation stuff
|
|
|
|
TRANSLATIONS = \ # English is default language, no explicit translation file
|
|
|
|
$$PWD/translations/monero-core_de.ts \ # Deutsch
|
|
|
|
$$PWD/translations/monero-core_zh.ts \ # Chineese
|
|
|
|
$$PWD/translations/monero-core_ru.ts \ # Russian
|
|
|
|
$$PWD/translations/monero-core_it.ts \ # Italian
|
|
|
|
$$PWD/translations/monero-core_pl.ts \ # Polish
|
2016-07-22 15:50:51 +03:00
|
|
|
|
2016-07-27 22:32:33 +03:00
|
|
|
CONFIG(release, debug|release) {
|
2016-08-03 15:59:42 +03:00
|
|
|
DESTDIR = release/bin
|
2016-07-27 22:32:33 +03:00
|
|
|
LANGUPD_OPTIONS = -locations relative -no-ui-lines
|
|
|
|
LANGREL_OPTIONS = -compress -nounfinished -removeidentical
|
|
|
|
|
|
|
|
} else {
|
2016-08-03 15:59:42 +03:00
|
|
|
DESTDIR = debug/bin
|
2016-07-27 22:32:33 +03:00
|
|
|
LANGUPD_OPTIONS =
|
|
|
|
LANGREL_OPTIONS = -markuntranslated "MISS_TR "
|
|
|
|
}
|
2016-07-25 16:24:07 +03:00
|
|
|
|
2016-07-27 22:32:33 +03:00
|
|
|
TARGET_FULL_PATH = $$OUT_PWD/$$DESTDIR
|
2016-08-03 15:59:42 +03:00
|
|
|
TRANSLATION_TARGET_DIR = $$TARGET_FULL_PATH/translations
|
2016-07-15 11:03:18 +03:00
|
|
|
|
2016-07-27 22:32:33 +03:00
|
|
|
macx {
|
|
|
|
TARGET_FULL_PATH = $$sprintf("%1/%2/%3.app", $$OUT_PWD, $$DESTDIR, $$TARGET)
|
2016-08-03 15:59:42 +03:00
|
|
|
TRANSLATION_TARGET_DIR = $$TARGET_FULL_PATH/Contents/Resources/translations
|
2016-07-27 22:32:33 +03:00
|
|
|
}
|
2016-07-15 11:03:18 +03:00
|
|
|
|
2016-08-03 15:59:42 +03:00
|
|
|
|
2016-01-29 21:01:52 +02:00
|
|
|
|
2016-07-27 22:32:33 +03:00
|
|
|
isEmpty(QMAKE_LUPDATE) {
|
|
|
|
win32:LANGUPD = $$[QT_INSTALL_BINS]\lupdate.exe
|
|
|
|
else:LANGUPD = $$[QT_INSTALL_BINS]/lupdate
|
2016-01-25 20:36:33 +02:00
|
|
|
}
|
|
|
|
|
2016-07-27 22:32:33 +03:00
|
|
|
isEmpty(QMAKE_LRELEASE) {
|
|
|
|
win32:LANGREL = $$[QT_INSTALL_BINS]\lrelease.exe
|
|
|
|
else:LANGREL = $$[QT_INSTALL_BINS]/lrelease
|
2016-01-25 20:36:33 +02:00
|
|
|
}
|
|
|
|
|
2016-07-27 22:32:33 +03:00
|
|
|
langupd.command = \
|
|
|
|
$$LANGUPD $$LANGUPD_OPTIONS $$shell_path($$_PRO_FILE) -ts $$_PRO_FILE_PWD/$$TRANSLATIONS
|
|
|
|
|
2016-08-17 15:14:43 +03:00
|
|
|
|
|
|
|
|
2016-07-27 22:32:33 +03:00
|
|
|
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
|
|
|
|
|
2016-08-04 13:56:49 +03:00
|
|
|
QMAKE_EXTRA_TARGETS += langupd deploy deploy_win
|
2016-07-27 22:32:33 +03:00
|
|
|
QMAKE_EXTRA_COMPILERS += langrel
|
2016-08-16 23:21:46 +03:00
|
|
|
|
|
|
|
|
2016-08-17 15:14:43 +03:00
|
|
|
|
2016-11-16 01:33:19 +02:00
|
|
|
# Update: no issues with the "slow link process" anymore,
|
|
|
|
# for development, just build debug version of libwallet_merged lib
|
|
|
|
# by invoking 'get_libwallet_api.sh Debug'
|
|
|
|
# so we update translations everytime even for debug build
|
|
|
|
|
|
|
|
PRE_TARGETDEPS += langupd compiler_langrel_make_all
|
|
|
|
|
2016-01-25 20:36:33 +02:00
|
|
|
|
2014-07-07 20:08:30 +03:00
|
|
|
RESOURCES += qml.qrc
|
|
|
|
|
|
|
|
# Additional import path used to resolve QML modules in Qt Creator's code model
|
|
|
|
QML_IMPORT_PATH =
|
|
|
|
|
|
|
|
# Default rules for deployment.
|
|
|
|
include(deployment.pri)
|
2016-07-27 22:32:33 +03:00
|
|
|
macx {
|
2016-07-27 23:17:21 +03:00
|
|
|
deploy.commands += macdeployqt $$sprintf("%1/%2/%3.app", $$OUT_PWD, $$DESTDIR, $$TARGET) -qmldir=$$PWD
|
2016-07-27 22:32:33 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
win32 {
|
2016-10-11 18:58:58 +03:00
|
|
|
deploy.commands += windeployqt $$sprintf("%1/%2/%3.exe", $$OUT_PWD, $$DESTDIR, $$TARGET) -release -qmldir=$$PWD
|
2016-07-27 22:32:33 +03:00
|
|
|
}
|
|
|
|
|
2014-07-07 20:08:30 +03:00
|
|
|
|
2016-02-06 18:19:54 +02:00
|
|
|
|
2016-02-06 14:58:55 +02:00
|
|
|
OTHER_FILES += \
|
2016-02-06 14:49:31 +02:00
|
|
|
.gitignore \
|
2016-07-15 11:03:18 +03:00
|
|
|
$$TRANSLATIONS
|
2016-02-06 14:58:55 +02:00
|
|
|
|
2016-02-23 17:59:26 +02:00
|
|
|
DISTFILES += \
|
2016-08-17 15:14:43 +03:00
|
|
|
notes.txt
|
|
|
|
|
2016-08-04 14:16:38 +03:00
|
|
|
|
2016-08-04 14:52:33 +03:00
|
|
|
# windows application icon
|
2016-08-04 14:16:38 +03:00
|
|
|
RC_FILE = monero-core.rc
|
2016-08-04 14:52:33 +03:00
|
|
|
|
|
|
|
# mac application icon
|
|
|
|
ICON = $$PWD/images/appicon.icns
|