Details
-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.0.3, 6.2.1
Description
i'm not sure if this is feasible on a technical level, but i'm wondering about qt_import_qml_plugins: it currently parses all qml files at compile time to determine the required qml plugins. this is very convenient (kudos for that), but it becomes a bit of a scalability issue: i'm having a big and granular codebase, where several static libraries bring some functionality including their qml counterpart. so with qt_import_qml_plugins i end up running the import scanner several times during every configure step.
on the other hand it seems that the qml plugins became much more granular with qt-6, so importing them manual via `Q_IMPORT_PLUGINS` becomes quite cumbersome (especially due to differences on different platforms). so i wonder if it may be feasible to have a variation of this cmake function that allows me to specify the "top-level plugins" (like "QtQuick 2.2" or "QtQuick.Layouts 1.2"), which would then import in their dependencies automatically?
Attachments
Issue Links
- relates to
-
QTBUG-95609 cmake names for qml plugins
- Closed
-
QTBUG-92933 Rework automatic static plugin linkage
- Closed
-
QTBUG-80846 [cmake]Qml plugin targets missing
- Closed
-
QTBUG-103187 Reconfiguration is slow due to qmlimportscanner
- Closed
-
QTBUG-98783 Push users to use the DEPENDS option in qt_add_qml_module
- Open