qt5base-lts/util/cmake
Alexandru Croitor 0425ee0610 Change the default enabled AUTOGEN tools list to contain only moc
Before this patch we enabled AUTOMOC, AUTORCC, AUTOUIC for all targets
that did not opt out.

Aside from being wasteful from a performance point of view,
this also caused issues when trying to build qtimageformats which
does not depend on Widgets which is the package that exposes uic.

To avoid this, enable only AUTOMOC for all targets by default, and
UIC and RCC can be opted in via the ENABLE_AUTOGEN_TOOLS option.

To facilitate this some refactoring had to be done, like moving some
common setup for all autogen tools into a separate call, and making
sure that extend_target understands the autogen options, because some
ui files are only added conditionally.

Also the conversion script has been adapted to output the
ENABLE_AUTOGEN_TOOLS option whenever a .pro file contains at least
one FORMS += foo assignment.

Note that we don't really use AUTORCC while building Qt, so nothing
opts into that at the moment.

Task-number: QTBUG-75875
Change-Id: I889c4980e9fb1b74ba361abed4044737f8842ea4
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2019-05-22 14:58:08 +00:00
..
tests Fix the fix to correctly handle comments in multi-line assignments 2019-05-20 13:18:11 +00:00
cmakeconversionrate.py
configurejson2cmake.py Improve configure2cmake to find_package only in certain conditions 2019-05-20 13:15:16 +00:00
generate_module_map.sh
helper.py Add a few more 3rd party libraries to helper.py 2019-05-21 15:28:24 +00:00
Pipfile
pro2cmake.py Change the default enabled AUTOGEN tools list to contain only moc 2019-05-22 14:58:08 +00:00
pro_conversion_rate.py
run_pro2cmake.py
special_case_helper.py Keep "special case" modifications when regenerating project files 2019-05-09 11:29:54 +00:00