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

Handle PLUGIN_EXTENDS = - in qmake plugin projects and in pro2cmake

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 6.0
    • Build System: CMake

    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

          For Gerrit Dashboard: QTBUG-87861
          # Subject Branch Project Status CR V

          Activity

            People

              semlanik Alexey Edelev
              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