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

Add support to QMAKE for specifying default plugin for modules

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • 5.3.0 RC1
    • None
    • Build System
    • None
    • 4255ba40ab073afcf2a095b135883612859af4c2

    Description

      Some modules, like QtSensors, have a plugin based architecture. And for many platforms, e.g iOS and Android, there is only one plugin to choose from. Nevertheless, when the user writes his pro file, he would have to add this plugin to his QTPLUGINS variable, which will have different value/plugin for each platform. This is error prone, and typically leads to "debug pro file everywhere" scenarios.

      It would be really nice if QMAKE could do this automatically, that is, fill in QTPLUGINS with the default plugins for each module requested. The modules could e.g set QMAKE_DEFAULT_QTPLUGINS or similar.

      Extra problematic is the fact that Android does this already today through their ant files (working around qmake). This means that an app that builds and runs on Android (by only doing QT += sensors) will not work on iOS.

      Attachments

        Issue Links

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

          Activity

            People

              buddenha Oswald Buddenhagen
              richard Richard Moe Gustavsen
              Votes:
              1 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes