added version, improved release of translations, added creation of
program icon on windows (needs still to be tested)
This commit is contained in:
parent
ba11bce11a
commit
2dbf66c1bb
|
@ -1,4 +1,5 @@
|
||||||
projectname = passwordmanager
|
projectname = passwordmanager
|
||||||
|
VERSION = 2.0.7
|
||||||
|
|
||||||
# include ../../common.pri when building as part of a subdirs project; otherwise include general.pri
|
# include ../../common.pri when building as part of a subdirs project; otherwise include general.pri
|
||||||
!include(../../common.pri) {
|
!include(../../common.pri) {
|
||||||
|
@ -79,6 +80,7 @@ guiqtquick {
|
||||||
translations/passwordmanager_de_DE.ts
|
translations/passwordmanager_de_DE.ts
|
||||||
}
|
}
|
||||||
include(translations.pri)
|
include(translations.pri)
|
||||||
|
#win32:include(windowsicon.pri) TODO
|
||||||
|
|
||||||
OTHER_FILES += \
|
OTHER_FILES += \
|
||||||
README.md \
|
README.md \
|
||||||
|
@ -111,6 +113,3 @@ INSTALLS += icon
|
||||||
menu.path = $$(INSTALL_ROOT)/share/applications/
|
menu.path = $$(INSTALL_ROOT)/share/applications/
|
||||||
menu.files = $${PWD}/resources/desktop/applications/$${projectname}.desktop
|
menu.files = $${PWD}/resources/desktop/applications/$${projectname}.desktop
|
||||||
INSTALLS += menu
|
INSTALLS += menu
|
||||||
translations.path = $$(INSTALL_ROOT)/share/$${projectname}/translations/
|
|
||||||
translations.files = $${OUT_PWD}/translations/*.qm
|
|
||||||
INSTALLS += translations
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
IDI_ICON1 ICON DISCARDABLE "PasswordManager\resources\icon.ico"
|
IDI_ICON1 ICON DISCARDABLE "resources/icons/windowsicon_passwordmanager.ico"
|
||||||
|
|
|
@ -1,15 +1,16 @@
|
||||||
!isEmpty(TRANSLATIONS) {
|
!isEmpty(TRANSLATIONS) {
|
||||||
isEmpty(QMAKE_LRELEASE) {
|
isEmpty(QMAKE_LRELEASE) {
|
||||||
win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe
|
QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
|
||||||
else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
|
|
||||||
}
|
}
|
||||||
isEmpty(TS_DIR):TS_DIR = translations
|
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.input = TRANSLATIONS
|
||||||
genqm.output = $${OUT_PWD}/$$TS_DIR/${QMAKE_FILE_BASE}.qm
|
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.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm $${OUT_PWD}/$$TS_DIR/${QMAKE_FILE_BASE}.qm
|
||||||
genqm.CONFIG = no_link
|
genqm.CONFIG = no_link
|
||||||
QMAKE_EXTRA_COMPILERS += genqm
|
QMAKE_EXTRA_COMPILERS += genqm
|
||||||
PRE_TARGETDEPS += compiler_genqm_make_all
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue