mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Install Qt and Subsurface translations for Windows
Dirk had done most of the work already. I just needed to add some trickery to install the system translations in case cross-mingw32 didn't provide it. Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
dbab619489
commit
69826a6c2f
1 changed files with 12 additions and 1 deletions
|
@ -3,7 +3,14 @@ xslt.files = $$XSLT_FILES
|
|||
icons.files = $$ICONS_FILES
|
||||
doc.files = $$DOC_FILES
|
||||
translation.files = $$replace(TRANSLATIONS, .ts, .qm)
|
||||
qttranslation.files = $$join(QTTRANSLATIONS," "$$[QT_INSTALL_TRANSLATIONS]/,$$[QT_INSTALL_TRANSLATIONS]/)
|
||||
exists($$[QT_INSTALL_TRANSLATIONS]) {
|
||||
qt_translation_dir = $$[QT_INSTALL_TRANSLATIONS]/
|
||||
} else: exists(/usr/share/qt4/translations) {
|
||||
# On some cross-compilation environments, the translations are either missing or not
|
||||
# where they're expected to be. In such cases, try copying from the system.
|
||||
qt_translation_dir = /usr/share/qt4/translations
|
||||
}
|
||||
qttranslation.files = $$join(QTTRANSLATIONS," "$$qt_translation_dir/,$$qt_translation_dir/)
|
||||
|
||||
nltab = $$escape_expand(\\n\\t)
|
||||
|
||||
|
@ -54,6 +61,10 @@ mac {
|
|||
marbledir.path = $$WINDOWSSTAGING/data
|
||||
INSTALLS += deploy marbledir target
|
||||
|
||||
translation.path = $$WINDOWSSTAGING/translations
|
||||
qttranslation.path = $$WINDOWSSTAGING/translations
|
||||
INSTALLS += translation qttranslation
|
||||
|
||||
qt_conf.commands = echo \'[Paths]\' > $@
|
||||
qt_conf.commands += $${nltab}echo \'Prefix=.\' >> $@
|
||||
qt_conf.target = $$PWD/packaging/windows/qt.conf
|
||||
|
|
Loading…
Reference in a new issue