Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
6.0
-
76230d98795a2e7a365328eb693ff57f6ddd7f1d (qt/qtbase/dev)
Description
We have a bunch of generic plugins like src/plugins/generic/evdevmouse/evdevmouse.pro which specify
PLUGIN_EXTENDS = -
This means the plugin should not automatically be loaded (or linked in static Qt builds). We don't port this information to the CMake projects. We should to that by augmenting pro2cmake.
Most likely by leveraging the DEFAULT_IF option of qt_internal_add_plugin, but it could be the case that the mechanism needs to be modified, because it doesn't quite match qmake's behavior.
Note that currently we hardcode platform and generic plugins needing to be opt-in, when generating qt_plugin .pri files in
https://codereview.qt-project.org/c/qt/qtbase/+/300007 which might need to be revised when we have proper information in the converted CMake projects.
Attachments
Issue Links
- relates to
-
QTBUG-93501 Missing support for PLUGIN_EXTENDS (qmake) and QT_PLUGIN_EXTENDS (CMake) with Qt static builds
- Reported
For Gerrit Dashboard: QTBUG-87861 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
320740,7 | CMake: Add handling of PLUGIN_EXTENDS for generic plugins | dev | qt/qtbase | Status: MERGED | +2 | 0 |
342563,2 | CMake: Fix auto-importing of plugins in static Qt qmake projects | dev | qt/qtbase | Status: MERGED | +2 | 0 |
342730,2 | CMake: Fix auto-importing of plugins in static Qt qmake projects | 6.1 | qt/qtbase | Status: MERGED | +2 | 0 |
342731,2 | CMake: Fix auto-importing of plugins in static Qt qmake projects | 6.1.0 | qt/qtbase | Status: MERGED | +2 | 0 |