fix over-quoting of OPENSSL_LIBS and QT_HOST_CFLAGS_DBUS
we pass the pre-quoted value directly to the output function, which adds another layer of quoting. to avoid over-quoting, introduce the 'eval' attribute which sends the value through eval() first, thus removing the extra quoting. Change-Id: Ic63a50cb7eccc61b0f730476e124339aeb95586c Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
bcd0653e10
commit
08f6545dcb
@ -1617,7 +1617,7 @@
|
||||
"condition": "features.openssl && tests.openssl-libs",
|
||||
"output": [
|
||||
"publicQtConfig",
|
||||
{ "type": "varAssign", "name": "OPENSSL_LIBS", "value": "tests.openssl-libs.libs" },
|
||||
{ "type": "varAssign", "name": "OPENSSL_LIBS", "value": "tests.openssl-libs.libs", "eval": "true" },
|
||||
{ "type": "define", "name": "QT_LINKED_OPENSSL" }
|
||||
]
|
||||
},
|
||||
@ -1790,7 +1790,7 @@
|
||||
"description": "Qt D-Bus (Host)",
|
||||
"autoDetect": "!config.android",
|
||||
"condition": "tests.host-dbus",
|
||||
"output": [ { "type": "varAppend", "name": "QT_HOST_CFLAGS_DBUS", "value": "tests.host-dbus.cflags" } ]
|
||||
"output": [ { "type": "varAppend", "name": "QT_HOST_CFLAGS_DBUS", "value": "tests.host-dbus.cflags", "eval": "true" } ]
|
||||
},
|
||||
"skip_modules": {
|
||||
"output": [ { "type": "varAssign", "name": "QT_SKIP_MODULES", "value": "tests.skip_modules.value" } ]
|
||||
|
@ -983,6 +983,8 @@ defineTest(qtConfOutputVarHelper) {
|
||||
error("Output type 'var$$title($$1)' used in feature '$$eval($${2}.feature)' without a 'name' entry.")
|
||||
|
||||
value = $$qtConfEvaluate($$eval($${2}.value))
|
||||
!isEmpty($${2}.eval):$$qtConfEvaluate($$eval($${2}.eval)): \
|
||||
eval(value = $$value)
|
||||
qtConfOutputVar($$1, $$output, $$name, $$value)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user