diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2012-12-20 10:05:29 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-12-20 13:59:36 +0100 |
commit | 3a810c8238c712d308709da7f459476e8c5f42bf (patch) | |
tree | 795e9b353a8304e7d405015fb637463b1ad17857 /mkspecs | |
parent | b7f63c6bf74a0eb62bb49c1085584da1b3714a06 (diff) |
Enable forcing generation of static plugin imports
Using some modules requires importing static plugins also for shared
libraries (namely QtAxServer), so provided a way to force plugin
imports even for non-applications using force_import_plugins
MODULE_CONFIG value. This required moving the plugin handling after
qtAddModules calls in qt.prf.
Task-number: QTBUG-28215
Change-Id: Id6bb92ed7c078cc8c54538ddc9bb8e8ad316f277
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'mkspecs')
-rw-r--r-- | mkspecs/features/qt.prf | 87 |
1 files changed, 43 insertions, 44 deletions
diff --git a/mkspecs/features/qt.prf b/mkspecs/features/qt.prf index 7b41859d09..2db61f734a 100644 --- a/mkspecs/features/qt.prf +++ b/mkspecs/features/qt.prf @@ -30,11 +30,52 @@ plugin { #Qt plugins } } -QT_PLUGIN_VERIFY = DEPLOYMENT_PLUGIN +qtestlib { + warning("CONFIG+=qtestlib is deprecated. Use QT+=testlib instead.") + QT += testlib +} +qdbus { + warning("CONFIG+=qdbus is deprecated. Use QT+=dbus instead.") + QT += dbus +} +help { + warning("CONFIG+=help is deprecated. Use QT+=help instead.") + QT += help-private # sic! +} +designer { + warning("CONFIG+=designer is deprecated. Use QT+=designer instead.") + QT += designer +} +uitools { + warning("CONFIG+=uitools is deprecated. Use QT+=uitools instead.") + QT += uitools +} +qaxcontainer { + warning("CONFIG+=qaxcontainer is deprecated. Use QT+=axcontainer instead.") + QT += axcontainer +} +qaxserver { + warning("CONFIG+=qaxserver is deprecated. Use QT+=axserver instead.") + QT += axserver +} +unset(using_privates) +qtAddModules(QT, LIBS) +qtAddModules(QT_PRIVATE, LIBS_PRIVATE) +!isEmpty(using_privates):!auto_use_privates:!no_private_qt_headers_warning:if(!debug_and_release|!build_pass) { + message("This project is using private headers and will therefore be tied to this specific Qt module build version.") + message("Running this project against other versions of the Qt modules may crash at any arbitrary point.") + message("This is not a bug, but a result of using Qt internals. You have been warned!") +} + +wince*:static:gui { + QTLIB += qmenu_wce.res +} + +QT_PLUGIN_VERIFY = DEPLOYMENT_PLUGIN contains(QT_CONFIG, static) { QT_PLUGIN_VERIFY += QTPLUGIN - contains(TEMPLATE, .*app) { + force_import_plugins|contains(TEMPLATE, .*app) { contains(QT, gui):import_qpa_plugin { qpa_minimal_plugin: \ QTPLUGIN += qminimal @@ -93,45 +134,3 @@ for(QT_CURRENT_VERIFY, $$list($$QT_PLUGIN_VERIFY)) { } } } - -qtestlib { - warning("CONFIG+=qtestlib is deprecated. Use QT+=testlib instead.") - QT += testlib -} -qdbus { - warning("CONFIG+=qdbus is deprecated. Use QT+=dbus instead.") - QT += dbus -} -help { - warning("CONFIG+=help is deprecated. Use QT+=help instead.") - QT += help-private # sic! -} -designer { - warning("CONFIG+=designer is deprecated. Use QT+=designer instead.") - QT += designer -} -uitools { - warning("CONFIG+=uitools is deprecated. Use QT+=uitools instead.") - QT += uitools -} -qaxcontainer { - warning("CONFIG+=qaxcontainer is deprecated. Use QT+=axcontainer instead.") - QT += axcontainer -} -qaxserver { - warning("CONFIG+=qaxserver is deprecated. Use QT+=axserver instead.") - QT += axserver -} - -unset(using_privates) -qtAddModules(QT, LIBS) -qtAddModules(QT_PRIVATE, LIBS_PRIVATE) -!isEmpty(using_privates):!auto_use_privates:!no_private_qt_headers_warning:if(!debug_and_release|!build_pass) { - message("This project is using private headers and will therefore be tied to this specific Qt module build version.") - message("Running this project against other versions of the Qt modules may crash at any arbitrary point.") - message("This is not a bug, but a result of using Qt internals. You have been warned!") -} - -wince*:static:gui { - QTLIB += qmenu_wce.res -} |