qt5base-lts/util
Alexandru Croitor 3680d3453c CMake: pro2cmake: Generate correct CONFIG_MODULE_NAME values
The CONFIG_MODULE_NAME option to qt_internal_add_module is used to
specify what the name of a Qt module's pri file should, as well as
some of the key names assigned in that file, as well as what should be
passed to QT += in qmake projects.
When it is not specified, the computed value is the lower case of the
CMake target name. E.g. for qt_internal_add_module(Core), the computed
CONFIG_MODULE_NAME is 'core'.

The qmake variable that determines the above value is the MODULE
variable.
If it is not explicitly assigned, it's computed from the .pro file
name, rather than from the TARGET variable value.

Thus there is an inconsistency in how the value is auto-computed in
CMake compared to qmake.

We had a few special cases in projects that assign a correct
CONFIG_MODULE_NAME when the auto-computed value was wrong.

Teach pro2cmake to detect these inconsistencies and pass a correct
CONFIG_MODULE_NAME value based on the .pro file name. This way
we get rid of the special cases as well.

Aka if there is no explicit MODULE assignment in the .pro file, and the
auto-computed value by CMake is different from the one computed by
qmake, explicitly write out a CONFIG_MODULE_NAME value with what qmake
would have computed.

Task-number: QTBUG-88025
Change-Id: I166b29767e87cd6b0c681fa53238098355a177f9
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2020-10-30 17:48:57 +01:00
..
accessibilityinspector Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
aglfn Updated license headers 2016-01-21 18:55:18 +00:00
cmake CMake: pro2cmake: Generate correct CONFIG_MODULE_NAME values 2020-10-30 17:48:57 +01:00
corelib/qurl-generateTLDs Use QList instead of QVector in util 2020-07-07 20:34:48 +02:00
edid Minor grammar fixup 2018-08-03 18:11:24 +00:00
glgen Remove the openglextensions module 2020-06-10 09:35:04 +02:00
gradientgen Replace Qt CONSTEXPR defines with constexpr 2020-08-14 15:52:58 +02:00
harfbuzz
includemocs QtCore: include mocs 2017-05-05 03:03:30 +00:00
integrity
lexgen Use QList instead of QVector in util 2020-07-07 20:34:48 +02:00
locale_database Purge deprecated language and country codes from QLocale 2020-10-29 10:44:38 +00:00
plugintest Updated license headers 2016-01-21 18:55:18 +00:00
qfloat16-tables Round float->qfloat16 to even 2020-09-06 12:35:12 +02:00
unicode Use checked string iteration in case conversions 2020-08-29 18:15:27 +02:00
x86simdgen Move qsimd* from corelib/tools to corelib/global 2020-03-26 09:15:32 +01:00
xkbdatagen Updated license headers 2016-01-21 18:55:18 +00:00