summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2019-09-22 18:28:01 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-09-23 05:28:31 +0000
commitd8b18385e88df29dd0ce38db484d1d7912ddea15 (patch)
tree21f26772245cd3d3f853b8173dbfd540eff7f16c /configure
parent303095e686bc647b0d6766fa70b18a8bd41f1caf (diff)
pro2cmake: Improve handling of requires clauses
Change the grammar to parse and extract the whole expression that is present in the requires clause. Make sure to preprocess the parsed content as a condition, so that the value passed to map_condition and simplify_condition is valid and the functions can handle more complicated conditions like qtConfig() and if(). Wrap the final condition with an extra pair of parentheses, so that the negated condition is computed correctly. Handle the require clause in subdir projects, top level tests projects, regular test projects, as well as top level repo projects. Examples are not yet handled, because the would require some kind of CMake public api to e.g. query if a feature is enabled. Change-Id: I9af96cf022e47b66f24db3ca15d3803dda7a5d7c Reviewed-by: Qt CMake Build Bot Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'configure')
0 files changed, 0 insertions, 0 deletions