From 21105e71382efdb17fd8dc9402f463141267cfcc Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Fri, 7 Dec 2012 11:46:43 +0200 Subject: [PATCH] Fix module pri file name for static plugins Since QTPLUGIN variable values are used to locate both the plugin library and the module pri file, those must match. Therefore generate module pri file name using the TARGET of the plugin rather than the pro file name. Change-Id: I9ec6f2a087ba3b3cecf7034c8a28b31df155cd97 Reviewed-by: Oswald Buddenhagen --- mkspecs/features/qt_plugin.prf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkspecs/features/qt_plugin.prf b/mkspecs/features/qt_plugin.prf index b84fa47dd14..e09e5d0a3c7 100644 --- a/mkspecs/features/qt_plugin.prf +++ b/mkspecs/features/qt_plugin.prf @@ -21,7 +21,7 @@ contains(QT_CONFIG, static):CONFIG += static else:CONFIG += shared !build_pass:static { - isEmpty(MODULE): MODULE = $$section($$list($$basename(_PRO_FILE_)), ., 0, 0) + isEmpty(MODULE): MODULE = $$basename(TARGET) MODULE_PRI = $$MODULE_QMAKE_OUTDIR/mkspecs/modules/qt_plugin_$${MODULE}.pri