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

Handle PLUGIN_EXTENDS = - in qmake plugin projects and in pro2cmake

XMLWordPrintable

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

      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.

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

            semlanik Alexey Edelev
            alexandru.croitor Alexandru Croitor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes