summaryrefslogtreecommitdiff
path: root/expat/win32
diff options
context:
space:
mode:
authorJohnny Jazeix <jazeix@gmail.com>2022-02-23 22:17:35 +0100
committerJohnny Jazeix <jazeix@gmail.com>2022-02-24 22:26:40 +0100
commitf29483773346105da81f73878b5d0832b2d541b8 (patch)
treefa5391fb4e7ef5fcf1126ec557f835f418f341aa /expat/win32
parent65a21f2b2a306d29b44e70264aca948aa0454219 (diff)
downloadlibexpat-git-f29483773346105da81f73878b5d0832b2d541b8.tar.gz
CMake/Windows: store Expat version in the dll
Fixes #555 Tested with msvc2019 and mingw8.1
Diffstat (limited to 'expat/win32')
-rw-r--r--expat/win32/expat.iss1
-rw-r--r--expat/win32/version.rc17
2 files changed, 18 insertions, 0 deletions
diff --git a/expat/win32/expat.iss b/expat/win32/expat.iss
index 2bbfdab7..e4d82745 100644
--- a/expat/win32/expat.iss
+++ b/expat/win32/expat.iss
@@ -76,6 +76,7 @@ Flags: ignoreversion; Source: doc\*.css; DestDir: "{app}\Doc"
Flags: ignoreversion; Source: doc\*.xml; DestDir: "{app}\Doc"
Flags: ignoreversion; Source: win32\bin\Release\*.dll; DestDir: "{app}\Bin"
Flags: ignoreversion; Source: win32\bin\Release\*.lib; DestDir: "{app}\Bin"
+Flags: ignoreversion; Source: win32\version.rc; DestDir: "{app}\Bin"
Flags: ignoreversion; Source: win32\README.txt; DestDir: "{app}\Source"
Flags: ignoreversion; Source: AUTHORS; DestDir: "{app}\Source"
Flags: ignoreversion; Source: Changes; DestDir: "{app}\Source"
diff --git a/expat/win32/version.rc b/expat/win32/version.rc
new file mode 100644
index 00000000..64a4dadf
--- /dev/null
+++ b/expat/win32/version.rc
@@ -0,0 +1,17 @@
+1 VERSIONINFO
+FILEVERSION VER_FILEVERSION
+PRODUCTVERSION VER_FILEVERSION
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040904E4"
+ BEGIN
+ VALUE "FileVersion", "VER_FILEVERSION"
+ VALUE "ProductVersion", "VER_FILEVERSION"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x0409, 1252
+ END
+END