summaryrefslogtreecommitdiffstats
path: root/mkspecs/features
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2014-10-14 15:47:27 +0200
committerJoerg Bornemann <joerg.bornemann@digia.com>2014-10-20 14:47:53 +0200
commit5e342f6f041208d142d97202f61179d7163eb773 (patch)
tree1d10cf8eae033b7c2afb3dd0f1b4dcc9fedb655d /mkspecs/features
parent929d6d6b9b31967f13bcd51a421678edcb06d184 (diff)
embed a VERSIONINFO resource into Qt plugins
This reverts f0ee55c00. VERSION actually makes sense on Windows, because it embeds a VERSIONINFO resource into the DLL that can be inspected by the user. Task-number: QTBUG-37961 Change-Id: I6b81b5aa999eba16cb8d9a4d61bd596310af46b9 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'mkspecs/features')
-rw-r--r--mkspecs/features/qt_plugin.prf6
1 files changed, 6 insertions, 0 deletions
diff --git a/mkspecs/features/qt_plugin.prf b/mkspecs/features/qt_plugin.prf
index 8a70ce041a..3834a55ac5 100644
--- a/mkspecs/features/qt_plugin.prf
+++ b/mkspecs/features/qt_plugin.prf
@@ -17,6 +17,12 @@ TEMPLATE = lib
CONFIG += plugin
DESTDIR = $$MODULE_BASE_OUTDIR/plugins/$$PLUGIN_TYPE
+win32:CONFIG(shared, static|shared) {
+ # Embed a VERSIONINFO resource into the plugin's DLL.
+ isEmpty(VERSION): VERSION = $$QT_VERSION
+ CONFIG += skip_target_version_ext
+}
+
tool_plugin {
!build_pass:contains(QT_CONFIG, build_all): CONFIG += release
} else:if(win32|mac):!macx-xcode {