summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>2018-07-16 12:10:19 +0200
committerOswald Buddenhagen <oswald.buddenhagen@qt.io>2018-12-19 19:22:10 +0000
commit98689cd2f9d3e9e4dac33ccf6679b90d4b39284f (patch)
tree2d057c80226508081afa560e4c31c10b326679a2 /mkspecs
parent73b8769730701736cd0d05f904b69f2e7e35de1d (diff)
configure: enable inline tests to refer to PWD
... and use that to inline the xlocalescanprint test. Change-Id: I0973133d7f9ecc9a38b70dc4b83df174a35b2b1f Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/features/qt_configure.prf3
1 files changed, 2 insertions, 1 deletions
diff --git a/mkspecs/features/qt_configure.prf b/mkspecs/features/qt_configure.prf
index f5aa444ade..87190bc52a 100644
--- a/mkspecs/features/qt_configure.prf
+++ b/mkspecs/features/qt_configure.prf
@@ -1178,9 +1178,10 @@ defineTest(qtConfPrepareCompileTestSource) {
# Create stub .pro file
contents = "SOURCES = main.$$suffix"
# Custom project code
+ pwd = $$val_escape($${currentConfig}.dir)
for (test, tests): \
for (ent, $$qtConfScalarOrList($${test}.test.qmake)): \
- contents += $$ent
+ contents += $$replace(ent, "@PWD@", $$pwd)
write_file($$test_dir/$$basename(test_dir).pro, contents)|error()
}