summaryrefslogtreecommitdiffstats
path: root/translations
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-05-14 11:42:28 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-05-14 11:45:36 (GMT)
commit6d4e67674f0ca5824761ec29f20dd854d47b4ac7 (patch)
treefbb52216e460580def7545bdd0525f1ad16c6abb /translations
parent3ecb04cffdf491f5ea01eceb71de98d6ac647107 (diff)
downloadQt-6d4e67674f0ca5824761ec29f20dd854d47b4ac7.zip
Qt-6d4e67674f0ca5824761ec29f20dd854d47b4ac7.tar.gz
Qt-6d4e67674f0ca5824761ec29f20dd854d47b4ac7.tar.bz2
define qtPrepareTool() function and use it throughout
the function provides a cross-platform way to determine the exact pathname of our build tools (moc, etc.). use it in our .prf files, so we don't have to rely on qmake's unreliable path separator normalization magic in extra compiler commands, which broke on mingw+sh in silent mode. remove the bootstrap tool path setting from configure, as it is redundant now. Reviewed-by: joerg Task-number: QTBUG-10633
Diffstat (limited to 'translations')
-rw-r--r--translations/translations.pri6
-rw-r--r--translations/translations.pro6
2 files changed, 2 insertions, 10 deletions
diff --git a/translations/translations.pri b/translations/translations.pri
index 57089ff..30aa996 100644
--- a/translations/translations.pri
+++ b/translations/translations.pri
@@ -8,11 +8,7 @@ defineReplace(prependAll) {
return ($$result)
}
-LUPDATE = $$QT_BUILD_TREE/bin/lupdate
-win32 {
- LUPDATE ~= s,/,$$QMAKE_DIR_SEP,
- LUPDATE = $${LUPDATE}.exe
-}
+qtPrepareTool(LUPDATE, lupdate)
LUPDATE += -locations relative -no-ui-lines
###### Qt Libraries
diff --git a/translations/translations.pro b/translations/translations.pro
index 8f37451..c6d46a3 100644
--- a/translations/translations.pro
+++ b/translations/translations.pro
@@ -1,10 +1,6 @@
TRANSLATIONS = $$files(*.ts)
-LRELEASE = $$QT_BUILD_TREE/bin/lrelease
-win32 {
- LRELEASE ~= s,/,$$QMAKE_DIR_SEP,
- LRELEASE = $${LRELEASE}.exe
-}
+qtPrepareTool(LRELEASE, lrelease)
contains(TEMPLATE_PREFIX, vc):vcproj = 1