diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-11-27 13:32:13 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-11-30 23:17:40 +0100 |
commit | 1a1d3a9a44e6e5946c375509c3f4a3a0fec5282d (patch) | |
tree | 8ef631278e7789eff8a5dfdd827d44dbad4e74bf /src/tools | |
parent | c140b26959038ada22452079ebc6e33195e9957d (diff) |
pro2cmake: Fix is_public_module calculation
write_library_section traverses the parent/child hierarchy of scopes to
determine whether the scope belongs to a public Qt module. This doesn't
work for scopes that stem from included .pri files, because each
included file has its own parent/child hierarchy.
We already have an include scope hierarchy in the form of
Scope._included_children, but lack a way to get to the including
scope.
Add Scope._including_scope and adjust the is_public_module calculation
to take that into account after hitting the top of the parent/child
hierarchy.
Pick-to: 6.0
Change-Id: I8fee1cfbf048e7afc6783b0a52eaca75be17072f
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/tools')
0 files changed, 0 insertions, 0 deletions