Teach configure's pro-file parser to understand host_build scopes
Is needed now that we write QMAKE_MAC_SDK with a !host_build scope in qdevice.pri. Change-Id: I298cc660b496460190337c175aef684a5522d5cb Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
This commit is contained in:
parent
e11c2165c5
commit
e9837f7938
10
configure
vendored
10
configure
vendored
@ -160,6 +160,12 @@ BEGIN {
|
|||||||
values["LITERAL_WHITESPACE"] = " "
|
values["LITERAL_WHITESPACE"] = " "
|
||||||
values["LITERAL_DOLLAR"] = "$"
|
values["LITERAL_DOLLAR"] = "$"
|
||||||
}
|
}
|
||||||
|
/^!?host_build:/ {
|
||||||
|
scopeStart = index($0, ":") + 1
|
||||||
|
condition = substr($0, 0, scopeStart - 2)
|
||||||
|
if (condition != "'"$1"'") { next }
|
||||||
|
$0 = substr($0, scopeStart)
|
||||||
|
}
|
||||||
/^[_A-Z0-9.]+[ \t]*\+?=/ {
|
/^[_A-Z0-9.]+[ \t]*\+?=/ {
|
||||||
valStart = index($0, "=") + 1
|
valStart = index($0, "=") + 1
|
||||||
|
|
||||||
@ -225,7 +231,7 @@ getSingleQMakeVariable()
|
|||||||
getQMakeConf()
|
getQMakeConf()
|
||||||
{
|
{
|
||||||
if [ -z "$specvals" ]; then
|
if [ -z "$specvals" ]; then
|
||||||
specvals=`expandQMakeConf "$QMAKESPEC/qmake.conf" | extractQMakeVariables`
|
specvals=`expandQMakeConf "$QMAKESPEC/qmake.conf" | extractQMakeVariables "host_build"`
|
||||||
fi
|
fi
|
||||||
getSingleQMakeVariable "$1" "$specvals"
|
getSingleQMakeVariable "$1" "$specvals"
|
||||||
}
|
}
|
||||||
@ -233,7 +239,7 @@ getQMakeConf()
|
|||||||
getXQMakeConf()
|
getXQMakeConf()
|
||||||
{
|
{
|
||||||
if [ -z "$xspecvals" ]; then
|
if [ -z "$xspecvals" ]; then
|
||||||
xspecvals=`expandQMakeConf "$XQMAKESPEC/qmake.conf" | extractQMakeVariables`
|
xspecvals=`expandQMakeConf "$XQMAKESPEC/qmake.conf" | extractQMakeVariables "!host_build"`
|
||||||
fi
|
fi
|
||||||
getSingleQMakeVariable "$1" "$xspecvals"
|
getSingleQMakeVariable "$1" "$xspecvals"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user