2014-07-07 19:08:30 +02:00
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
QT += qml quick widgets
|
|
|
|
|
2016-05-17 15:03:59 +02:00
|
|
|
WALLET_ROOT=$$PWD/bitmonero
|
|
|
|
|
2016-03-08 10:08:24 +01:00
|
|
|
CONFIG += c++11
|
2016-02-23 16:59:26 +01:00
|
|
|
|
2016-07-22 14:50:51 +02:00
|
|
|
# cleaning "auto-generated" bitmonero directory on "make distclean"
|
|
|
|
QMAKE_DISTCLEAN += -r $$WALLET_ROOT
|
2016-07-21 11:47:53 +02:00
|
|
|
|
2016-06-03 16:30:19 +02:00
|
|
|
INCLUDEPATH += $$WALLET_ROOT/include \
|
|
|
|
$$PWD/src/libwalletqt
|
2016-05-17 15:03:59 +02:00
|
|
|
|
2016-01-25 19:36:33 +01:00
|
|
|
HEADERS += \
|
|
|
|
filter.h \
|
2016-02-03 16:37:10 +01:00
|
|
|
clipboardAdapter.h \
|
2016-02-23 16:59:26 +01:00
|
|
|
oscursor.h \
|
2016-06-03 16:30:19 +02:00
|
|
|
src/libwalletqt/WalletManager.h \
|
2016-06-08 12:53:24 +02:00
|
|
|
src/libwalletqt/Wallet.h \
|
|
|
|
src/libwalletqt/PendingTransaction.h \
|
|
|
|
src/libwalletqt/TransactionHistory.h \
|
2016-06-10 15:41:13 +02:00
|
|
|
src/libwalletqt/TransactionInfo.h \
|
2016-07-19 22:31:09 +02:00
|
|
|
oshelper.h \
|
|
|
|
TranslationManager.h
|
2016-01-25 19:36:33 +01:00
|
|
|
|
|
|
|
|
2014-07-07 19:08:30 +02:00
|
|
|
SOURCES += main.cpp \
|
2014-07-16 14:40:09 +02:00
|
|
|
filter.cpp \
|
2016-02-03 16:37:10 +01:00
|
|
|
clipboardAdapter.cpp \
|
2016-02-23 16:59:26 +01:00
|
|
|
oscursor.cpp \
|
2016-06-03 16:30:19 +02:00
|
|
|
src/libwalletqt/WalletManager.cpp \
|
2016-06-08 12:53:24 +02:00
|
|
|
src/libwalletqt/Wallet.cpp \
|
|
|
|
src/libwalletqt/PendingTransaction.cpp \
|
|
|
|
src/libwalletqt/TransactionHistory.cpp \
|
2016-06-10 15:41:13 +02:00
|
|
|
src/libwalletqt/TransactionInfo.cpp \
|
2016-07-19 22:31:09 +02:00
|
|
|
oshelper.cpp \
|
|
|
|
TranslationManager.cpp
|
2014-07-07 19:08:30 +02:00
|
|
|
|
2016-01-29 20:01:52 +01:00
|
|
|
lupdate_only {
|
|
|
|
SOURCES = *.qml \
|
|
|
|
components/*.qml \
|
|
|
|
pages/*.qml \
|
|
|
|
wizard/*.qml
|
|
|
|
}
|
|
|
|
|
2016-05-27 10:00:26 +02:00
|
|
|
LIBS += -L$$WALLET_ROOT/lib \
|
|
|
|
-lwallet_merged \
|
2016-07-04 17:17:26 +02: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 15:05:40 +02:00
|
|
|
linux {
|
2016-07-04 17:17:26 +02:00
|
|
|
LIBS+= \
|
2016-07-13 09:30:12 +02:00
|
|
|
-Wl,-Bstatic \
|
2016-05-27 10:00:26 +02:00
|
|
|
-lboost_serialization \
|
|
|
|
-lboost_thread \
|
|
|
|
-lboost_system \
|
|
|
|
-lboost_date_time \
|
|
|
|
-lboost_filesystem \
|
2016-07-04 17:17:26 +02:00
|
|
|
-lboost_regex \
|
|
|
|
-lboost_chrono \
|
2016-07-13 09:30:12 +02:00
|
|
|
-lboost_program_options \
|
|
|
|
-lssl \
|
|
|
|
-lcrypto \
|
|
|
|
-Wl,-Bdynamic \
|
|
|
|
-ldl
|
2016-07-04 17:17:26 +02:00
|
|
|
}
|
2016-05-27 10:00:26 +02:00
|
|
|
|
2016-07-14 15:05:40 +02:00
|
|
|
macx {
|
|
|
|
LIBS+= \
|
2016-07-21 15:29:37 +02:00
|
|
|
-L/usr/local/lib \
|
|
|
|
-lboost_serialization \
|
|
|
|
-lboost_thread-mt \
|
2016-07-14 15:05:40 +02:00
|
|
|
-lboost_system \
|
|
|
|
-lboost_date_time \
|
|
|
|
-lboost_filesystem \
|
|
|
|
-lboost_regex \
|
|
|
|
-lboost_chrono \
|
|
|
|
-lboost_program_options \
|
|
|
|
-lssl \
|
|
|
|
-lcrypto \
|
|
|
|
-ldl
|
2016-07-25 15:24:07 +02:00
|
|
|
|
2016-07-14 15:05:40 +02:00
|
|
|
}
|
|
|
|
|
2016-05-27 10:00:26 +02:00
|
|
|
|
2016-07-27 21:32:33 +02: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 14:50:51 +02:00
|
|
|
|
2016-07-27 21:32:33 +02:00
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
DESTDIR = release
|
|
|
|
LANGUPD_OPTIONS = -locations relative -no-ui-lines
|
|
|
|
LANGREL_OPTIONS = -compress -nounfinished -removeidentical
|
|
|
|
|
|
|
|
} else {
|
|
|
|
DESTDIR = debug
|
|
|
|
LANGUPD_OPTIONS =
|
|
|
|
LANGREL_OPTIONS = -markuntranslated "MISS_TR "
|
|
|
|
}
|
2016-07-25 15:24:07 +02:00
|
|
|
|
2016-07-27 21:32:33 +02:00
|
|
|
TARGET_FULL_PATH = $$OUT_PWD/$$DESTDIR
|
2016-07-15 10:03:18 +02:00
|
|
|
|
2016-07-27 21:32:33 +02:00
|
|
|
macx {
|
|
|
|
TARGET_FULL_PATH = $$sprintf("%1/%2/%3.app", $$OUT_PWD, $$DESTDIR, $$TARGET)
|
|
|
|
}
|
2016-07-15 10:03:18 +02:00
|
|
|
|
2016-07-27 21:32:33 +02:00
|
|
|
TRANSLATION_TARGET_DIR = $$TARGET_FULL_PATH/Contents/Resources/translations
|
2016-01-29 20:01:52 +01:00
|
|
|
|
2016-07-27 21:32:33 +02:00
|
|
|
isEmpty(QMAKE_LUPDATE) {
|
|
|
|
win32:LANGUPD = $$[QT_INSTALL_BINS]\lupdate.exe
|
|
|
|
else:LANGUPD = $$[QT_INSTALL_BINS]/lupdate
|
2016-01-25 19:36:33 +01:00
|
|
|
}
|
|
|
|
|
2016-07-27 21:32:33 +02:00
|
|
|
isEmpty(QMAKE_LRELEASE) {
|
|
|
|
win32:LANGREL = $$[QT_INSTALL_BINS]\lrelease.exe
|
|
|
|
else:LANGREL = $$[QT_INSTALL_BINS]/lrelease
|
2016-01-25 19:36:33 +01:00
|
|
|
}
|
|
|
|
|
2016-07-27 21:32:33 +02:00
|
|
|
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
|
|
|
|
QMAKE_EXTRA_COMPILERS += langrel
|
|
|
|
PRE_TARGETDEPS += langupd compiler_langrel_make_all
|
2016-01-25 19:36:33 +01:00
|
|
|
|
2014-07-07 19:08:30 +02: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 21:32:33 +02:00
|
|
|
macx {
|
2016-07-27 22:17:21 +02:00
|
|
|
deploy.commands += macdeployqt $$sprintf("%1/%2/%3.app", $$OUT_PWD, $$DESTDIR, $$TARGET) -qmldir=$$PWD
|
2016-07-27 21:32:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
win32 {
|
|
|
|
deploy.commands += windeployqt $$sprintf("%1/%2/%3", $$OUT_PWD, $$DESTDIR, $$TARGET)
|
|
|
|
}
|
|
|
|
|
2014-07-07 19:08:30 +02:00
|
|
|
|
2016-02-06 17:19:54 +01:00
|
|
|
|
2016-02-06 13:58:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
OTHER_FILES += \
|
2016-02-06 13:49:31 +01:00
|
|
|
.gitignore \
|
2016-07-15 10:03:18 +02:00
|
|
|
$$TRANSLATIONS
|
2016-02-06 13:58:55 +01:00
|
|
|
|
2016-02-23 16:59:26 +01:00
|
|
|
DISTFILES += \
|
|
|
|
notes.txt
|
2016-07-27 21:32:33 +02:00
|
|
|
|