qt5base-lts/util/cmake
Alexandru Croitor e4b8c488bd Improve configure2cmake to find_package only in certain conditions
It doesn't make much sense to look for X11 related packages on
macOS and Windows by default. Usually they would not be there, and
as a result the configuration step would show a long list of scary
not found packages, and also eat precious configure time.

Change the conversion script to allow putting conditions around
generated find_package calls.

These conditions can be manually set in the conversion script
library mapping, using the emit_if argument,
which we do for the X11 and Wayland related packages.

They are also computed by checking which features use a given library,
and if the feature is protected by a simple emitIf condition like
config.linux, the relevant library find_package call will be protected
by the same condition.

If a developer still wishes to look for all packages, they can define
the CACHE variable QT_FIND_ALL_PACKAGES_ALWAYS to ON.

The relevant configure.cmake files are regenerated in this patch.

Change-Id: I6f918a94f50257ec41d6216305dae9774933389a
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-05-20 13:15:16 +00:00
..
tests Fix parsing qmake assignments that have comments in between 2019-05-17 13:31:03 +00:00
cmakeconversionrate.py Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
configurejson2cmake.py Improve configure2cmake to find_package only in certain conditions 2019-05-20 13:15:16 +00:00
generate_module_map.sh Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
helper.py Improve configure2cmake to find_package only in certain conditions 2019-05-20 13:15:16 +00:00
Pipfile CMake: pro2cmake.py: Simplify conditions 2019-01-29 09:29:38 +00:00
pro2cmake.py Handle the new cmdline config feature in pro2cmake 2019-05-20 09:23:14 +00:00
pro_conversion_rate.py Add script to print out list of unconverted .pro files 2019-04-08 14:53:46 +00:00
run_pro2cmake.py Do not overwrite CMakeLists.txt when running run_pro2cmake 2019-03-28 12:29:44 +00:00
special_case_helper.py Keep "special case" modifications when regenerating project files 2019-05-09 11:29:54 +00:00