summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2012-10-18 19:20:34 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-26 14:33:15 +0200
commita3941c2f6ef31986bd315fa41bc4df7330a89109 (patch)
tree7ba2ab8347c254f7b3ff9bd4a1f2ff33dd508c0c
parent8c22c9be3e684db90cb97177e97d1ab40866e680 (diff)
escape constructed command for makefiles
Change-Id: Iec7f2bd7b02d03bf6a99dde363a41578924e523c Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
-rw-r--r--mkspecs/features/qt_functions.prf7
1 files changed, 5 insertions, 2 deletions
diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf
index 2d8f81bae1..1d24ed9c00 100644
--- a/mkspecs/features/qt_functions.prf
+++ b/mkspecs/features/qt_functions.prf
@@ -192,13 +192,16 @@ defineTest(qtAddToolEnv) {
equals(QMAKE_DIR_SEP, /) {
contains($${env}.CONFIG, prepend): infix = \${$$name:+:\$$$name}
else: infix =
- $$1 = "$$name=$$join(value, :)$$infix $$eval($$1)"
+ val = "$$name=$$join(value, :)$$infix"
} else {
# Escape closing parens when expanding the variable, otherwise cmd confuses itself.
contains($${env}.CONFIG, prepend): infix = ;%$$name:)=^)%
else: infix =
- $$1 = "(set $$name=$$join(value, ;)$$infix) & $$eval($$1)"
+ val = "(set $$name=$$join(value, ;)$$infix) &"
}
+ contains(MAKEFILE_GENERATOR, MS.*): val ~= s,%,%%,g
+ else: val ~= s,\\\$,\$\$,g
+ $$1 = "$$val $$eval($$1)"
}
}
export($$1)