2014-07-07 17:08:30 +00:00
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
QT += qml quick widgets
|
|
|
|
|
2016-05-17 13:03:59 +00:00
|
|
|
WALLET_ROOT=$$PWD/bitmonero
|
|
|
|
|
2016-03-08 09:08:24 +00:00
|
|
|
CONFIG += c++11
|
2016-02-23 15:59:26 +00:00
|
|
|
|
2016-07-22 12:50:51 +00:00
|
|
|
# cleaning "auto-generated" bitmonero directory on "make distclean"
|
|
|
|
QMAKE_DISTCLEAN += -r $$WALLET_ROOT
|
2016-07-21 09:47:53 +00:00
|
|
|
|
2016-06-03 14:30:19 +00:00
|
|
|
INCLUDEPATH += $$WALLET_ROOT/include \
|
|
|
|
$$PWD/src/libwalletqt
|
2016-05-17 13:03:59 +00:00
|
|
|
|
|
|
|
|
2016-07-21 09:47:53 +00:00
|
|
|
|
2016-01-25 18:36:33 +00:00
|
|
|
HEADERS += \
|
|
|
|
filter.h \
|
2016-02-03 15:37:10 +00:00
|
|
|
clipboardAdapter.h \
|
2016-02-23 15:59:26 +00:00
|
|
|
oscursor.h \
|
2016-06-03 14:30:19 +00:00
|
|
|
src/libwalletqt/WalletManager.h \
|
2016-06-08 10:53:24 +00:00
|
|
|
src/libwalletqt/Wallet.h \
|
|
|
|
src/libwalletqt/PendingTransaction.h \
|
|
|
|
src/libwalletqt/TransactionHistory.h \
|
2016-06-10 13:41:13 +00:00
|
|
|
src/libwalletqt/TransactionInfo.h \
|
2016-07-19 20:31:09 +00:00
|
|
|
oshelper.h \
|
|
|
|
TranslationManager.h
|
2016-01-25 18:36:33 +00:00
|
|
|
|
|
|
|
|
2014-07-07 17:08:30 +00:00
|
|
|
SOURCES += main.cpp \
|
2014-07-16 12:40:09 +00:00
|
|
|
filter.cpp \
|
2016-02-03 15:37:10 +00:00
|
|
|
clipboardAdapter.cpp \
|
2016-02-23 15:59:26 +00:00
|
|
|
oscursor.cpp \
|
2016-06-03 14:30:19 +00:00
|
|
|
src/libwalletqt/WalletManager.cpp \
|
2016-06-08 10:53:24 +00:00
|
|
|
src/libwalletqt/Wallet.cpp \
|
|
|
|
src/libwalletqt/PendingTransaction.cpp \
|
|
|
|
src/libwalletqt/TransactionHistory.cpp \
|
2016-06-10 13:41:13 +00:00
|
|
|
src/libwalletqt/TransactionInfo.cpp \
|
2016-07-19 20:31:09 +00:00
|
|
|
oshelper.cpp \
|
|
|
|
TranslationManager.cpp
|
2014-07-07 17:08:30 +00:00
|
|
|
|
2016-01-29 19:01:52 +00:00
|
|
|
lupdate_only {
|
|
|
|
SOURCES = *.qml \
|
|
|
|
components/*.qml \
|
|
|
|
pages/*.qml \
|
|
|
|
wizard/*.qml
|
|
|
|
}
|
|
|
|
|
2016-05-27 08:00:26 +00:00
|
|
|
LIBS += -L$$WALLET_ROOT/lib \
|
|
|
|
-lwallet_merged \
|
2016-07-04 15:17:26 +00:00
|
|
|
-lwallet_merged2
|
|
|
|
|
|
|
|
win32 {
|
|
|
|
#QMAKE_LFLAGS += -static
|
|
|
|
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-07-14 13:05:40 +00:00
|
|
|
linux {
|
2016-07-04 15:17:26 +00:00
|
|
|
LIBS+= \
|
2016-07-13 07:30:12 +00:00
|
|
|
-Wl,-Bstatic \
|
2016-05-27 08:00:26 +00:00
|
|
|
-lboost_serialization \
|
|
|
|
-lboost_thread \
|
|
|
|
-lboost_system \
|
|
|
|
-lboost_date_time \
|
|
|
|
-lboost_filesystem \
|
2016-07-04 15:17:26 +00:00
|
|
|
-lboost_regex \
|
|
|
|
-lboost_chrono \
|
2016-07-13 07:30:12 +00:00
|
|
|
-lboost_program_options \
|
|
|
|
-lssl \
|
|
|
|
-lcrypto \
|
|
|
|
-Wl,-Bdynamic \
|
|
|
|
-ldl
|
2016-07-04 15:17:26 +00:00
|
|
|
}
|
2016-05-27 08:00:26 +00:00
|
|
|
|
2016-07-14 13:05:40 +00:00
|
|
|
macx {
|
|
|
|
LIBS+= \
|
2016-07-21 13:29:37 +00:00
|
|
|
-L/usr/local/lib \
|
|
|
|
-lboost_serialization \
|
|
|
|
-lboost_thread-mt \
|
2016-07-14 13:05:40 +00:00
|
|
|
-lboost_system \
|
|
|
|
-lboost_date_time \
|
|
|
|
-lboost_filesystem \
|
|
|
|
-lboost_regex \
|
|
|
|
-lboost_chrono \
|
|
|
|
-lboost_program_options \
|
|
|
|
-lssl \
|
|
|
|
-lcrypto \
|
|
|
|
-ldl
|
|
|
|
}
|
|
|
|
|
2016-05-27 08:00:26 +00:00
|
|
|
|
2016-05-17 13:03:59 +00:00
|
|
|
|
2016-01-29 19:01:52 +00:00
|
|
|
# translations files;
|
2016-07-15 08:03:18 +00:00
|
|
|
TRANSLATIONS = $$PWD/translations/monero-core_en.ts \ # English (could be untranslated)
|
2016-07-19 20:31:09 +00:00
|
|
|
$$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-13 13:01:56 +00:00
|
|
|
|
2016-01-29 19:01:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
# extra make targets for lupdate and lrelease invocation
|
2016-02-06 12:58:55 +00:00
|
|
|
# use "make lupdate" to update *.ts files and "make lrelease" to generate *.qm files
|
2016-07-15 08:03:18 +00:00
|
|
|
trans_update.commands = lupdate $$_PRO_FILE_
|
|
|
|
trans_update.depends = $$_PRO_FILE_
|
2016-01-29 19:01:52 +00:00
|
|
|
|
2016-07-15 08:03:18 +00:00
|
|
|
trans_release.commands = lrelease $$_PRO_FILE_
|
|
|
|
trans_release.depends = trans_update $$TRANSLATIONS
|
2016-01-29 19:01:52 +00:00
|
|
|
|
2016-07-21 13:29:37 +00:00
|
|
|
#translate.commands = $(MKDIR) ${DESTDIR}/i18n && $(COPY) $$PWD/translations/*.qm ${DESTDIR}/i18n
|
2016-07-15 08:03:18 +00:00
|
|
|
translate.depends = trans_release
|
2016-01-29 19:01:52 +00:00
|
|
|
|
2016-07-22 12:50:51 +00:00
|
|
|
deploy.commands = pushd $QMAKE_
|
|
|
|
|
2016-07-15 08:03:18 +00:00
|
|
|
QMAKE_EXTRA_TARGETS += trans_update trans_release translate
|
|
|
|
|
|
|
|
# updating transations only in release mode as this is requires to re-link project
|
|
|
|
# even if no changes were made.
|
|
|
|
|
|
|
|
#PRE_TARGETDEPS += translate
|
2016-01-29 19:01:52 +00:00
|
|
|
|
2016-01-25 18:36:33 +00:00
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
DESTDIR=release
|
2016-07-15 08:03:18 +00:00
|
|
|
PRE_TARGETDEPS += translate
|
2016-01-25 18:36:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
DESTDIR=debug
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-07-07 17:08:30 +00: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-02-06 16:19:54 +00:00
|
|
|
|
2016-02-06 12:58:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
OTHER_FILES += \
|
2016-02-06 12:49:31 +00:00
|
|
|
.gitignore \
|
2016-07-15 08:03:18 +00:00
|
|
|
$$TRANSLATIONS
|
2016-02-06 12:58:55 +00:00
|
|
|
|
2016-02-23 15:59:26 +00:00
|
|
|
DISTFILES += \
|
|
|
|
notes.txt
|