Skip to content
  • Miikka Heikkinen's avatar
    Pro-file level support for importing plugins for static Qt builds · f166fcd3
    Miikka Heikkinen authored
    
    
    Platform plugin is needed always when gui is linked to an application.
    This is tedious to do manually for static builds, so provide support
    for generating a source file that imports static plugins for
    application projects.
    
    "CONFIG += import_plugins" statement in application .pro file will
    generate required import statements for all plugins specified with
    QTPLUGIN variable.
    
    The plugin class names are found from plugin's module pri generated
    automatically when plugin is built, as long as the plugin specifies
    the PLUGIN_CLASS_NAME in the plugin .pro file before loading
    qt_plugin.prf.
    
    Task-number: QTBUG-28131
    Change-Id: I19f8ea48a3c1e9b5c81f4399c4b5d439a6d4bea1
    Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@digia.com>
    f166fcd3