author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 02 Feb 2010 00:43:10 +0200 | |
changeset 3 | 41300fa6a67c |
parent 0 | 1918ee327afb |
child 4 | 3b1da2848fc7 |
child 7 | f7bc934e204c |
permissions | -rw-r--r-- |
0 | 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) |
|
9 |
} |
|
10 |
||
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
11 |
LUPDATE = $$QT_BUILD_TREE/bin/lupdate -locations relative -no-ui-lines |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
12 |
LUPDATE ~= s,/,$$QMAKE_DIR_SEP, |
0 | 13 |
|
14 |
###### Qt Libraries |
|
15 |
||
16 |
QT_TS = ar da de es fr iw ja_JP pl pt ru sk sl sv uk zh_CN zh_TW |
|
17 |
||
18 |
ts-qt.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \ |
|
19 |
-I../include -I../include/Qt \ |
|
20 |
3rdparty/phonon \ |
|
21 |
3rdparty/webkit \ |
|
22 |
activeqt \ |
|
23 |
corelib \ |
|
24 |
gui \ |
|
25 |
multimedia \ |
|
26 |
network \ |
|
27 |
opengl \ |
|
28 |
plugins \ |
|
29 |
qt3support \ |
|
30 |
script \ |
|
31 |
scripttools \ |
|
32 |
sql \ |
|
33 |
svg \ |
|
34 |
xml \ |
|
35 |
xmlpatterns \ |
|
36 |
-ts $$prependAll($$QT_SOURCE_TREE/translations/qt_,$$QT_TS,.ts)) |
|
37 |
ts-qt.depends = sub-tools |
|
38 |
||
39 |
###### Designer |
|
40 |
||
41 |
ts-designer.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \ |
|
42 |
../tools/designer/translations/translations.pro) |
|
43 |
ts-designer.depends = sub-tools |
|
44 |
||
45 |
###### Linguist |
|
46 |
||
47 |
ts-linguist.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \ |
|
48 |
../tools/linguist/linguist/linguist.pro) |
|
49 |
ts-linguist.depends = sub-tools |
|
50 |
||
51 |
###### Assistant |
|
52 |
||
53 |
ts-assistant.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \ |
|
54 |
../tools/assistant/translations/translations.pro \ |
|
55 |
&& $$LUPDATE \ |
|
56 |
../tools/assistant/translations/qt_help.pro \ |
|
57 |
&& $$LUPDATE \ |
|
58 |
../tools/assistant/translations/translations_adp.pro) |
|
59 |
ts-assistant.depends = sub-tools |
|
60 |
||
61 |
###### Qtconfig |
|
62 |
||
63 |
ts-qtconfig.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \ |
|
64 |
../tools/qtconfig/translations/translations.pro) |
|
65 |
ts-qtconfig.depends = sub-tools |
|
66 |
||
67 |
###### Qvfp |
|
68 |
||
69 |
ts-qvfb.commands = (cd $$QT_SOURCE_TREE/src && $$LUPDATE \ |
|
70 |
../tools/qvfb/translations/translations.pro) |
|
71 |
ts-qvfb.depends = sub-tools |
|
72 |
||
73 |
###### Overall Rules |
|
74 |
||
75 |
ts.depends = ts-qt ts-designer ts-linguist ts-assistant ts-qtconfig ts-qvfb |
|
76 |
||
77 |
QMAKE_EXTRA_TARGETS += ts-qt ts-designer ts-linguist ts-assistant ts-qtconfig ts-qvfb \ |
|
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
78 |
ts |