diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2015-11-03 11:41:30 +0100 |
---|---|---|
committer | Anne Jan Brouwer <annejan@noprotocol.com> | 2015-11-03 11:41:30 +0100 |
commit | 1c6b94718b66b4709183e2870b9b04817613f6c3 (patch) | |
tree | 9ac2b63e7f909a16ed90c5b952292badd3b0be1a /qtpass.pro | |
parent | 9f8579cb709e99a929c9a2c6f567f63d8596ae40 (diff) |
Auto-updating translations, are they even installed? not confortable to delete the .qm's yet . .
Diffstat (limited to 'qtpass.pro')
-rw-r--r-- | qtpass.pro | 40 |
1 files changed, 28 insertions, 12 deletions
@@ -1,16 +1,32 @@ -#------------------------------------------------- -# -# QtPass is a GUI for pass, -# the standard unix password manager. -# -# Project created by QtCreator 2014-07-30T21:56:15 -# -#------------------------------------------------- +#---------------------------------------------------------- +# # +# QtPass is a GUI for pass, # +# the standard unix password manager. # +# # +# Project started by Anne Jan Brouwer 2014-07-30T21:56:15 # +# # +#---------------------------------------------------------- VERSION = 1.0.4 TEMPLATE = app QT += core gui +isEmpty(QMAKE_LRELEASE) { + win32|os2:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe + else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease + unix { + !exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease-qt4 } + } else { + !exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease } + } +} + +updateqm.input = TRANSLATIONS +updateqm.output = localization/${QMAKE_FILE_BASE}.qm +updateqm.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm localization/${QMAKE_FILE_BASE}.qm +updateqm.CONFIG += no_link target_predeps +QMAKE_EXTRA_COMPILERS += updateqm + greaterThan(QT_MAJOR_VERSION, 4): QT += widgets macx { @@ -29,7 +45,7 @@ SOURCES += main.cpp\ keygendialog.cpp \ progressindicator.cpp \ trayicon.cpp \ - passworddialog.cpp + passworddialog.cpp HEADERS += mainwindow.h \ configdialog.h \ @@ -39,13 +55,13 @@ HEADERS += mainwindow.h \ keygendialog.h \ progressindicator.h \ trayicon.h \ - passworddialog.h + passworddialog.h FORMS += mainwindow.ui \ configdialog.ui \ usersdialog.ui \ keygendialog.ui \ - passworddialog.ui + passworddialog.ui QMAKE_CXXFLAGS_WARN_ON += -Wno-unknown-pragmas @@ -101,6 +117,6 @@ isEmpty(PREFIX) { } target.path = $$PREFIX/ -INSTALLS += target +INSTALLS += target DEFINES += "VERSION=\"\\\"$$VERSION\\\"\"" |