summaryrefslogtreecommitdiffstats
path: root/translations/translations.pri
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2009-03-23 09:18:55 (GMT)
committerSimon Hausmann <simon.hausmann@nokia.com>2009-03-23 09:18:55 (GMT)
commite5fcad302d86d316390c6b0f62759a067313e8a9 (patch)
treec2afbf6f1066b6ce261f14341cf6d310e5595bc1 /translations/translations.pri
downloadQt-e5fcad302d86d316390c6b0f62759a067313e8a9.zip
Qt-e5fcad302d86d316390c6b0f62759a067313e8a9.tar.gz
Qt-e5fcad302d86d316390c6b0f62759a067313e8a9.tar.bz2
Long live Qt 4.5!
Diffstat (limited to 'translations/translations.pri')
-rw-r--r--translations/translations.pri107
1 files changed, 107 insertions, 0 deletions
diff --git a/translations/translations.pri b/translations/translations.pri
new file mode 100644
index 0000000..efefa09
--- /dev/null
+++ b/translations/translations.pri
@@ -0,0 +1,107 @@
+defineReplace(prependAll) {
+ prepend = $$1
+ arglist = $$2
+ append = $$3
+ for(a,arglist) {
+ result += $${prepend}$${a}$${append}
+ }
+ return ($$result)
+}
+
+defineReplace(fixPath) {
+WIN {
+ return ($$replace($$1, /, \))
+} ELSE {
+ return ($$1)
+}
+}
+
+LUPDATE = $$fixPath($$QT_BUILD_TREE/bin/lupdate) -locations relative -no-ui-lines
+LRELEASE = $$fixPath($$QT_BUILD_TREE/bin/lrelease)
+
+###### Qt Libraries
+
+QT_TS = de fr zh_CN untranslated ar es iw ja_JP pl pt ru sk sv uk zh_TW
+
+ts-qt.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
+ 3rdparty/phonon \
+ 3rdparty/webkit \
+ activeqt \
+ corelib \
+ gui \
+ network \
+ opengl \
+ plugins \
+ qt3support \
+ script \
+ sql \
+ svg \
+ xml \
+ xmlpatterns \
+ -ts $$prependAll($$[QT_INSTALL_TRANSLATIONS]/qt_,$$QT_TS,.ts))
+ts-qt.depends = sub-tools
+
+qm-qt.commands = $$LRELEASE $$prependAll($$[QT_INSTALL_TRANSLATIONS]/qt_,$$QT_TS,.ts)
+qm-qt.depends = sub-tools
+
+###### Designer
+
+ts-designer.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
+ ../tools/designer/translations/translations.pro)
+ts-designer.depends = sub-tools
+
+qm-designer.commands = $$LRELEASE $$QT_SOURCE_TREE/tools/designer/translations/translations.pro
+qm-designer.depends = sub-tools
+
+###### Linguist
+
+ts-linguist.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
+ ../tools/linguist/linguist/linguist.pro)
+ts-linguist.depends = sub-tools
+
+qm-linguist.commands = $$LRELEASE $$QT_SOURCE_TREE/tools/linguist/linguist/linguist.pro
+qm-linguist.depends = sub-tools
+
+###### Assistant
+
+ts-assistant.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
+ ../tools/assistant/translations/translations.pro \
+ && $$LUPDATE \
+ ../tools/assistant/translations/qt_help.pro \
+ && $$LUPDATE \
+ ../tools/assistant/translations/translations_adp.pro)
+ts-assistant.depends = sub-tools
+
+qm-assistant.commands = ($$LRELEASE $$QT_SOURCE_TREE/tools/assistant/translations/translations.pro \
+ && $$LRELEASE \
+ $$QT_SOURCE_TREE/tools/assistant/translations/qt_help.pro \
+ && $$LRELEASE \
+ $$QT_SOURCE_TREE/tools/assistant/translations/translations_adp.pro)
+qm-assistant.depends = sub-tools
+
+###### Qtconfig
+
+ts-qtconfig.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
+ ../tools/qtconfig/translations/translations.pro)
+ts-qtconfig.depends = sub-tools
+
+qm-qtconfig.commands = $$LRELEASE $$QT_SOURCE_TREE/tools/qtconfig/translations/translations.pro
+qm-qtconfig.depends = sub-tools
+
+###### Qvfp
+
+ts-qvfb.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
+ ../tools/qvfb/translations/translations.pro)
+ts-qvfb.depends = sub-tools
+
+qm-qvfb.commands = $$LRELEASE $$QT_SOURCE_TREE/tools/qvfb/translations/translations.pro
+qm-qvfb.depends = sub-tools
+
+###### Overall Rules
+
+ts.depends = ts-qt ts-designer ts-linguist ts-assistant ts-qtconfig ts-qvfb
+qm.depends = qm-qt qm-designer qm-linguist qm-assistant qm-qtconfig qm-qvfb
+
+QMAKE_EXTRA_TARGETS += ts-qt ts-designer ts-linguist ts-assistant ts-qtconfig ts-qvfb \
+ qm-qt qm-designer qm-linguist qm-assistant qm-qtconfig qm-qvfb \
+ ts qm