make qtConfOutputVar() a tad less cryptic
don't use variables where the value is known. Change-Id: I3ec21441c5b7ee0b028f8f72e05d9e40e6192ecf Reviewed-by: Lars Knoll <lars.knoll@qt.io>bb10
parent
7e97d360a3
commit
03247666ee
|
|
@ -1344,15 +1344,15 @@ defineTest(qtConfOutputVar) {
|
|||
equals(modifier, assign) {
|
||||
!isEmpty(config.output.$${output}.append.$${name})|!isEmpty(config.output.$${output}.remove.$${name}): \
|
||||
error("Trying to assign variable '$$name' in '$$output', which has already appended or removed parts.")
|
||||
config.output.$${output}.$${modifier}.$${name} = $$value
|
||||
config.output.$${output}.assign.$${name} = $$value
|
||||
} else: equals(modifier, append) {
|
||||
contains(config.output.$${output}.remove.$${name}, $$value): \
|
||||
error("Trying to append removed '$$value' to variable '$$name' in '$$output'.")
|
||||
config.output.$${output}.$${modifier}.$${name} += $$value
|
||||
config.output.$${output}.append.$${name} += $$value
|
||||
} else: equals(modifier, remove) {
|
||||
contains(config.output.$${output}.append.$${name}, $$value): \
|
||||
error("Trying to remove appended '$$value' to variable '$$name' in '$$output'.")
|
||||
config.output.$${output}.$${modifier}.$${name} += $$value
|
||||
config.output.$${output}.remove.$${name} += $$value
|
||||
} else {
|
||||
error("Invalid modifier '$$modifier' passed to qtConfOutputVar.")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue