From 3a810c8238c712d308709da7f459476e8c5f42bf Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Thu, 20 Dec 2012 10:05:29 +0200 Subject: 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 --- mkspecs/features/qt.prf | 87 ++++++++++++++++++++++++------------------------- 1 file changed, 43 insertions(+), 44 deletions(-) (limited to 'mkspecs') 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 -} -- cgit v1.2.3