Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-94581 Review and Document new Qt 6.2 CMake API
  3. QTBUG-95141

Revise plugin target options of qt_add_qml_module

    XMLWordPrintable

Details

    • 73c76005e64d92ff5e3ef7d2a578b1d7a14b3d5f (qt/qtdeclarative/dev) c6849e80a4bb3c96c91ff114b6b17c3a68d8a986 (qt/qtdeclarative/6.2)

    Description

      Context https://git.qt.io/alcroito/qt6-cmake-api-review/-/commit/14b4999bc857f5402a3577fe334ebfb3602ad0c2#f3ff9c1b48af14adf093e2af0c5cf2849829bb6d_71_82

      Add a NO_PLUGIN option. It is automatically implied for executable backing libraries, which is tracked at QTBUG-95080

      qt_add_qml_module(Foo)                                                 <- this is ok, creates a default optional plugin target.                 (#1)
      
      qt_add_qml_module(Foo NO_CREATE_PLUGIN_TARGET PLUGIN_TARGET MyPlugFoo) <- this is ok, the plugin target will be created later.                  (#2)
      
      qt_add_qml_module(Foo NO_PLUGIN               PLUGIN_TARGET MyPlugFoo) <- this should be a FATAL_ERROR, NO_PLUGIN is a new proposed option      (#3)
      
      qt_add_qml_module(Foo NO_CREATE_PLUGIN_TARGET                        ) <- this should be a FATAL_ERROR in Qt6.2, can revisit for later version. (#4)
      
      

      Handle #3 and #4 in the snippets above, aka add FATAL_ERRORS.

      NO_PLUGIN_OPTIONAL should be automatically assumed, if $target == $plugin_target.

      Attachments

        Issue Links

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

          Activity

            People

              crscott Craig Scott
              alexandru.croitor Alexandru Croitor
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes