mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-15 07:29:15 +01:00
OP-1853 Ground build tidy: remove old qt stuff from translations.pro
This commit is contained in:
parent
f8dbf29459
commit
e675ae7f7b
@ -22,17 +22,14 @@ TRANSLATIONS = $$prependAll(LANGUAGES, $$PWD/openpilotgcs_,.ts)
|
||||
|
||||
MIME_TR_H = $$PWD/mime_tr.h
|
||||
|
||||
contains(QT_VERSION, ^4\\.[0-5]\\..*) {
|
||||
ts.commands = @echo This Qt version is too old for the ts target. Need Qt 4.6+.
|
||||
} else {
|
||||
for(dir, $$list($$files($$GCS_SOURCE_TREE/src/plugins/*))):MIMETYPES_FILES += $$files($$dir/*.mimetypes.xml)
|
||||
MIMETYPES_FILES = \"$$join(MIMETYPES_FILES, \", \")\"
|
||||
QMAKE_SUBSTITUTES += extract-mimetypes.xq.in
|
||||
ts.commands += \
|
||||
$$XMLPATTERNS -output $$MIME_TR_H $$PWD/extract-mimetypes.xq && \
|
||||
(cd $$GCS_SOURCE_TREE && $$LUPDATE src $$MIME_TR_H -ts $$TRANSLATIONS) && \
|
||||
$$QMAKE_DEL_FILE $$targetPath($$MIME_TR_H)
|
||||
}
|
||||
for(dir, $$list($$files($$GCS_SOURCE_TREE/src/plugins/*))):MIMETYPES_FILES += $$files($$dir/*.mimetypes.xml)
|
||||
MIMETYPES_FILES = \"$$join(MIMETYPES_FILES, \", \")\"
|
||||
QMAKE_SUBSTITUTES += extract-mimetypes.xq.in
|
||||
ts.commands += \
|
||||
$$XMLPATTERNS -output $$MIME_TR_H $$PWD/extract-mimetypes.xq && \
|
||||
(cd $$GCS_SOURCE_TREE && $$LUPDATE src $$MIME_TR_H -ts $$TRANSLATIONS) && \
|
||||
$$QMAKE_DEL_FILE $$targetPath($$MIME_TR_H)
|
||||
|
||||
QMAKE_EXTRA_TARGETS += ts
|
||||
|
||||
TEMPLATE = app
|
||||
|
Loading…
x
Reference in New Issue
Block a user