From 100a17ee1b5dc7c37bea255478e0b1e22fc2528b Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Fri, 6 Oct 2017 22:46:13 +0200 Subject: [PATCH] Update versioninfo.rc.in - include to be able to use constants - let versioninfo be visible in explorer by adding a "Translation" value - change FILEOS from VOS_NT_WINDOWS32, which was intended for Windows NT, to VOS__WINDOWS32 - stop setting FILEFLAGS 0x20 (VS_FF_SPECIALBUILD), which is not appropriate here because we build the normal version, not a special version - use constants - fix strings Bug: https://bugs.freedesktop.org/show_bug.cgi?id=103015 Signed-off-by: Ralf Habacker --- dbus/versioninfo.rc.in | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/dbus/versioninfo.rc.in b/dbus/versioninfo.rc.in index 3b2b0186..4af2beee 100644 --- a/dbus/versioninfo.rc.in +++ b/dbus/versioninfo.rc.in @@ -12,36 +12,43 @@ /* This file is processed by configure to create versioninfo.rc */ +#include + VS_VERSION_INFO VERSIONINFO FILEVERSION @BUILD_FILEVERSION@ PRODUCTVERSION @BUILD_FILEVERSION@ FILEFLAGSMASK 0x3fL #ifdef _DEBUG - FILEFLAGS 0x21L + FILEFLAGS VS_FF_DEBUG #else - FILEFLAGS 0x20L + FILEFLAGS 0x0L #endif - FILEOS 0x40004L - FILETYPE 0x1L + FILEOS VOS__WINDOWS32 + FILETYPE VFT_DLL FILESUBTYPE 0x0L BEGIN BLOCK "StringFileInfo" BEGIN - BLOCK "040904b0" + /* string need to match concated hex values in 'VarFileInfo' block */ + BLOCK "040904e4" BEGIN - VALUE "Comments", "Provided under the terms of the GNU Lesser General Public License.\0" - VALUE "CompanyName", "FreeDesktop.org\0" + VALUE "Comments", "Provided under the terms of the GNU Lesser General Public License >= 2.0 or Academic Free License version 2.1\0" + VALUE "CompanyName", "freedesktop.org\0" VALUE "FileDescription", "dbus - FreeDesktop message bus system\0" VALUE "FileVersion", "@DBUS_VERSION@\0" - VALUE "InternalName", "dbus\0" - VALUE "LegalCopyright", "Copyright © 2009 FreeDesktop.org\0" + VALUE "InternalName", "libdbus-1-3\0" + VALUE "LegalCopyright", "Copyright © 1994-2017 dbus contributors, see dbus source code for details\0" VALUE "LegalTrademarks", "\0" - VALUE "OriginalFilename", "dbus-1.dll\0" - VALUE "PrivateBuild", "\0" + VALUE "OriginalFilename", "libdbus-1-3.dll\0" VALUE "ProductName", "dbus\0" VALUE "ProductVersion", "@DBUS_VERSION@\0" VALUE "SpecialBuild", "@BUILD_TIMESTAMP@\0" END END + BLOCK "VarFileInfo" + BEGIN + /* supports English language (0x409) in the Windows ANSI codepage (1252). */ + VALUE "Translation", 0x409, 1252 + END END -- 2.12.3