embed a VERSIONINFO resource into QML plugins
On Windows, we set VERSION for QML plugins, because this embeds a VERSIONINFO resource into the DLL that can be inspected by the user. Change-Id: Ifb42efed6ceee05d05f61a271e028776cac6a3a2 Task-number: QTBUG-46473 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
parent
b0d85c45ad
commit
f54a3d783e
@ -25,6 +25,12 @@ if(win32|mac):!macx-xcode {
|
||||
}
|
||||
isEmpty(TARGETPATH): TARGETPATH = $$eval(QT.$${CXX_MODULE}.name)
|
||||
|
||||
!no_cxx_module:win32:CONFIG(shared, static|shared) {
|
||||
# Embed a VERSIONINFO resource into the plugin's DLL.
|
||||
isEmpty(VERSION): VERSION = $$MODULE_VERSION
|
||||
CONFIG += skip_target_version_ext
|
||||
}
|
||||
|
||||
# Insert the plugins URI into its meta data to enable usage
|
||||
# of static plugins in QtDeclarative:
|
||||
URI = $$replace(TARGETPATH, "/", ".")
|
||||
|
Loading…
Reference in New Issue
Block a user