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 <oswald.buddenhagen@digia.com>
bb10
Miikka Heikkinen 2012-12-07 11:46:43 +02:00 committed by The Qt Project
parent 6fb7222707
commit 21105e7138
1 changed files with 1 additions and 1 deletions

View File

@ -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