summaryrefslogtreecommitdiffstats
path: root/translations/translations.pro
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2013-08-08 18:43:18 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-12 11:36:38 +0200
commit053383be4bf153674582eb6900a69e3ffad25a93 (patch)
treea8cfd9121150f586f350c6c754ddd80a0d10775a /translations/translations.pro
parent16d5447febe09fcb44be6cdb77e03ffb80238bd9 (diff)
invoke every project with with the right output dir
otherwise qt_module_pris.prf prints (totally correct) useless warnings. Change-Id: I81052c8178b67ffffdd45eaf951ed7ac1e1e5fa3 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'translations/translations.pro')
-rw-r--r--translations/translations.pro10
1 files changed, 6 insertions, 4 deletions
diff --git a/translations/translations.pro b/translations/translations.pro
index 1e584e8..b946ce9 100644
--- a/translations/translations.pro
+++ b/translations/translations.pro
@@ -11,11 +11,13 @@ LUPDATE += -locations relative -no-ui-lines
TS_TARGETS =
-# meta target name, target name, lupdate base options, files
+# meta target name, target name, project files, ts files
defineTest(addTsTarget) {
- cv = $${2}.commands
dir = $$section(PWD, /, 0, -3)
- $$cv = cd $$dir && $$LUPDATE -pro-out $$shadowed($$dir) $$3 -ts $$4
+ for(p, 3): \
+ pros += -pro-out $$shadowed($$dir/$$dirname(p)) $$p
+ cv = $${2}.commands
+ $$cv = cd $$dir && $$LUPDATE $$pros -ts $$4
export($$cv)
dv = $${1}.depends
$$dv += $$2
@@ -24,7 +26,7 @@ defineTest(addTsTarget) {
export(TS_TARGETS)
}
-# target basename, lupdate base options
+# target basename, project files
defineTest(addTsTargets) {
files = $$files($$PWD/$${1}_??.ts) $$files($$PWD/$${1}_??_??.ts)
for(file, files) {