diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-08-01 19:14:58 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-08-07 11:55:28 +0000 |
commit | b4ef975a0a6e8c22d3c0851f9d7b11738d37b662 (patch) | |
tree | ec5a61420bde635c26a2c3776fc13f52b5b3bf06 /tests/auto/testlib/CMakeLists.txt | |
parent | 2c7ccfefedd582403902879857f34cc2dd373773 (diff) |
Handle conditions for SUBDIRS *more* correctly
There are project files that not only do SUBDIRS -= foo depending on
some condition, but also SUBDIRS += foo. To handle these cases
correctly we need to do a whole pass across all scopes and collect
all addition and subtraction conditions.
Once we have that information, we can compute a final condition for a
particular subdirectory. After we have the condition information for
all subdirectories, we can simplify all those conditions using SimPy,
and group all subdirectories that have the same simplified condition.
Finally we print out the subdirectories grouped by the simplified
condition.
The end result is similar to how we have extend_target() calls with
multiple sources grouped into a single conditional call, except in
this case it's subdirectories.
Amends b26b1455d75709a53f50e1d3d41c384f8e90b576.
Change-Id: I5b648ac67264ba9a940561baee5b49c43c13b721
Reviewed-by: Leander Beernaert <leander.beernaert@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Reviewed-by: Qt CMake Build Bot
Diffstat (limited to 'tests/auto/testlib/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions