summaryrefslogtreecommitdiffstats
path: root/configure.pri
diff options
context:
space:
mode:
Diffstat (limited to 'configure.pri')
-rw-r--r--configure.pri29
1 files changed, 23 insertions, 6 deletions
diff --git a/configure.pri b/configure.pri
index cc120c12d1..0e785349d7 100644
--- a/configure.pri
+++ b/configure.pri
@@ -1,5 +1,14 @@
# custom command line handling
+defineTest(qtConfCommandline_qmakeArgs) {
+ contains(1, QMAKE_[A-Z_]+ *[-+]?=.*) {
+ config.input.qmakeArgs += $$1
+ export(config.input.qmakeArgs)
+ return(true)
+ }
+ return(false)
+}
+
defineTest(qtConfCommandline_cxxstd) {
arg = $${1}
val = $${2}
@@ -560,11 +569,6 @@ defineTest(qtConfOutput_extraFeatures) {
}
-defineTest(qtConfOutputPostProcess_privatePro) {
- config.output.privatePro += $$cat($$OUT_PWD/.qmake.vars, lines)
- export(config.output.privatePro)
-}
-
defineTest(qtConfOutput_compilerFlags) {
# this output also exports the variables locally, so that subsequent compiler tests can use them
@@ -610,7 +614,7 @@ defineTest(qtConfOutput_gccSysroot) {
# This variable also needs to be exported immediately, so the compilation tests
# can pick it up.
- EXTRA_QMAKE_ARGS = \
+ EXTRA_QMAKE_ARGS += \
"\"QMAKE_CFLAGS += --sysroot=$$config.input.sysroot\"" \
"\"QMAKE_CXXFLAGS += --sysroot=$$config.input.sysroot\"" \
"\"QMAKE_LFLAGS += --sysroot=$$config.input.sysroot\""
@@ -626,6 +630,19 @@ defineTest(qtConfOutput_gccSysroot) {
export(config.output.publicPro)
}
+defineTest(qtConfOutput_qmakeArgs) {
+ !$${2}: return()
+
+ config.output.privatePro = "!host_build {"
+ for (a, config.input.qmakeArgs) {
+ config.output.privatePro += " $$a"
+ EXTRA_QMAKE_ARGS += $$system_quote($$a)
+ }
+ config.output.privatePro += "}"
+ export(EXTRA_QMAKE_ARGS)
+ export(config.output.privatePro)
+}
+
defineTest(qtConfOutputPostProcess_publicPro) {
qt_version = $$[QT_VERSION]
output = \