added version, improved release of translations, added creation of

program icon on windows (needs still to be tested)
This commit is contained in:
Martchus 2015-06-24 01:02:27 +02:00
parent ba11bce11a
commit 2dbf66c1bb
3 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,5 @@
projectname = passwordmanager
VERSION = 2.0.7
# include ../../common.pri when building as part of a subdirs project; otherwise include general.pri
!include(../../common.pri) {
@ -79,6 +80,7 @@ guiqtquick {
translations/passwordmanager_de_DE.ts
}
include(translations.pri)
#win32:include(windowsicon.pri) TODO
OTHER_FILES += \
README.md \
@ -111,6 +113,3 @@ INSTALLS += icon
menu.path = $$(INSTALL_ROOT)/share/applications/
menu.files = $${PWD}/resources/desktop/applications/$${projectname}.desktop
INSTALLS += menu
translations.path = $$(INSTALL_ROOT)/share/$${projectname}/translations/
translations.files = $${OUT_PWD}/translations/*.qm
INSTALLS += translations

View File

@ -1 +1 @@
IDI_ICON1 ICON DISCARDABLE "PasswordManager\resources\icon.ico"
IDI_ICON1 ICON DISCARDABLE "resources/icons/windowsicon_passwordmanager.ico"

View File

@ -1,15 +1,16 @@
!isEmpty(TRANSLATIONS) {
isEmpty(QMAKE_LRELEASE) {
win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe
else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
}
isEmpty(TS_DIR):TS_DIR = translations
genqm.name = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm $${OUT_PWD}/$$TS_DIR/${QMAKE_FILE_BASE}.qm
genqm.name = translations
genqm.input = TRANSLATIONS
genqm.output = $${OUT_PWD}/$$TS_DIR/${QMAKE_FILE_BASE}.qm
genqm.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm $${OUT_PWD}/$$TS_DIR/${QMAKE_FILE_BASE}.qm
genqm.CONFIG = no_link
QMAKE_EXTRA_COMPILERS += genqm
PRE_TARGETDEPS += compiler_genqm_make_all
message("Project contains translations. Use updateqm to compile translations.")
translations.path = $$(INSTALL_ROOT)/share/$${projectname}/translations/
translations.files = $${OUT_PWD}/translations/*.qm
INSTALLS += translations
}