Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-92887

[cmake] qt6_import_qml_plugins without import scanner

    XMLWordPrintable

Details

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qtbuildsystem Qt Build System Team
              timblechmann tim blechmann
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes