Extending QScopedPointer test case
[qt-netbsd.git] / translations / translations.pri
blobc77876adb8957759e645a6dbf8f1b02f08926e3b
1 defineReplace(prependAll) {
2     prepend = $$1
3     arglist = $$2
4     append  = $$3
5     for(a,arglist) {
6       result += $${prepend}$${a}$${append}
7     }
8     return ($$result)
11 defineReplace(fixPath) {
12     win32:1 ~= s|/|\\|
13     return ($$1)
16 LUPDATE = $$fixPath($$QT_BUILD_TREE/bin/lupdate) -locations relative -no-ui-lines
17 LRELEASE = $$fixPath($$QT_BUILD_TREE/bin/lrelease)
19 ###### Qt Libraries
21 QT_TS        = ar da de es fr iw ja_JP pl pt ru sk sl sv uk zh_CN zh_TW
23 ts-qt.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
24                                 -I../include -I../include/Qt \
25                                     3rdparty/phonon \
26                                     3rdparty/webkit \
27                                     activeqt \
28                                     corelib \
29                                     gui \
30                                     multimedia \
31                                     network \
32                                     opengl \
33                                     plugins \
34                                     qt3support \
35                                     script \
36                                     scripttools \
37                                     sql \
38                                     svg \
39                                     xml \
40                                     xmlpatterns \
41                                 -ts $$prependAll($$QT_SOURCE_TREE/translations/qt_,$$QT_TS,.ts))
42 ts-qt.depends = sub-tools
44 qm-qt.commands = $$LRELEASE $$prependAll($$QT_SOURCE_TREE/translations/qt_,$$QT_TS,.ts)
45 qm-qt.depends = sub-tools
47 ###### Designer
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
56 ###### Linguist
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
65 ###### Assistant
67 ts-assistant.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \
68                                     ../tools/assistant/translations/translations.pro \
69                                     && $$LUPDATE \
70                                     ../tools/assistant/translations/qt_help.pro \
71                                     && $$LUPDATE \
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 \
76                          && $$LRELEASE \
77                             $$QT_SOURCE_TREE/tools/assistant/translations/qt_help.pro \
78                          && $$LRELEASE \
79                             $$QT_SOURCE_TREE/tools/assistant/translations/translations_adp.pro)
80 qm-assistant.depends = sub-tools
82 ###### Qtconfig
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
91 ###### Qvfp
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
100 ###### Overall Rules
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 \
107                        ts qm