1 defineReplace(prependAll) {
6 result += $${prepend}$${a}$${append}
11 defineReplace(fixPath) {
13 return ($$replace($$1, /, \))
19 LUPDATE = $$fixPath($$QT_BUILD_TREE/bin/lupdate) -locations relative -no-ui-lines
20 LRELEASE = $$fixPath($$QT_BUILD_TREE/bin/lrelease)
24 QT_TS = de fr zh_CN untranslated ar es iw ja_JP pl pt ru sk sv uk zh_TW da
26 ts-qt.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
41 -ts $$prependAll($$[QT_INSTALL_TRANSLATIONS]/qt_,$$QT_TS,.ts))
42 ts-qt.depends = sub-tools
44 qm-qt.commands = $$LRELEASE $$prependAll($$[QT_INSTALL_TRANSLATIONS]/qt_,$$QT_TS,.ts)
45 qm-qt.depends = sub-tools
49 ts-designer.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
50 ../tools/designer/translations/translations.pro)
51 ts-designer.depends = sub-tools
53 qm-designer.commands = $$LRELEASE $$QT_SOURCE_TREE/tools/designer/translations/translations.pro
54 qm-designer.depends = sub-tools
58 ts-linguist.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
59 ../tools/linguist/linguist/linguist.pro)
60 ts-linguist.depends = sub-tools
62 qm-linguist.commands = $$LRELEASE $$QT_SOURCE_TREE/tools/linguist/linguist/linguist.pro
63 qm-linguist.depends = sub-tools
67 ts-assistant.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
68 ../tools/assistant/translations/translations.pro \
70 ../tools/assistant/translations/qt_help.pro \
72 ../tools/assistant/translations/translations_adp.pro)
73 ts-assistant.depends = sub-tools
75 qm-assistant.commands = ($$LRELEASE $$QT_SOURCE_TREE/tools/assistant/translations/translations.pro \
77 $$QT_SOURCE_TREE/tools/assistant/translations/qt_help.pro \
79 $$QT_SOURCE_TREE/tools/assistant/translations/translations_adp.pro)
80 qm-assistant.depends = sub-tools
84 ts-qtconfig.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
85 ../tools/qtconfig/translations/translations.pro)
86 ts-qtconfig.depends = sub-tools
88 qm-qtconfig.commands = $$LRELEASE $$QT_SOURCE_TREE/tools/qtconfig/translations/translations.pro
89 qm-qtconfig.depends = sub-tools
93 ts-qvfb.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
94 ../tools/qvfb/translations/translations.pro)
95 ts-qvfb.depends = sub-tools
97 qm-qvfb.commands = $$LRELEASE $$QT_SOURCE_TREE/tools/qvfb/translations/translations.pro
98 qm-qvfb.depends = sub-tools
102 ts.depends = ts-qt ts-designer ts-linguist ts-assistant ts-qtconfig ts-qvfb
103 qm.depends = qm-qt qm-designer qm-linguist qm-assistant qm-qtconfig qm-qvfb
105 QMAKE_EXTRA_TARGETS += ts-qt ts-designer ts-linguist ts-assistant ts-qtconfig ts-qvfb \
106 qm-qt qm-designer qm-linguist qm-assistant qm-qtconfig qm-qvfb \