1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00

added block copying qt_*.qm files

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1882 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
martin 2010-10-05 03:45:28 +00:00 committed by martin
parent d971746d26
commit 39b59e7452

View File

@ -63,3 +63,24 @@ qmfiles.files = $$prependAll(LANGUAGES, $$OUT_PWD/openpilotgcs_,.qm)
qmfiles.path = /share/openpilotgcs/translations
qmfiles.CONFIG += no_check_exist
INSTALLS += qmfiles
#========= begin block copying qt_*.qm files ==========
win32 {
defineReplace(QtQmExists) {
for(lang,$$1) {
qm_file = $$[QT_INSTALL_TRANSLATIONS]/qt_$${lang}.qm
exists($$qm_file) : result += $$qm_file
}
return($$result)
}
QT_TRANSLATIONS = $$QtQmExists(LANGUAGES)
copyQT_QMs.input = QT_TRANSLATIONS
copyQT_QMs.output = $$GCS_DATA_PATH/translations/${QMAKE_FILE_BASE}.qm
isEmpty(vcproj):copyQT_QMs.variable_out = PRE_TARGETDEPS
copyQT_QMs.commands = $(COPY_FILE) ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
copyQT_QMs.name = Copy ${QMAKE_FILE_IN}
copyQT_QMs.CONFIG += no_link
QMAKE_EXTRA_COMPILERS += copyQT_QMs
}
#========= end block copying qt_*.qm files ============