aboutsummaryrefslogtreecommitdiff
path: root/cmake/version.rc.in
diff options
context:
space:
mode:
authorFeng Xiao <xfxyjwf@gmail.com>2018-05-14 13:47:28 -0700
committerGitHub <noreply@github.com>2018-05-14 13:47:28 -0700
commitac34bf8f5935b46119750b50f0c84f8fa7211479 (patch)
tree5f41d785a1e655f7678ba701ae18209a75ae6d94 /cmake/version.rc.in
parent394866c00241b44eb2936b6b1e275b36576ea806 (diff)
parent8233d46207a8f857c8b5735b0b6468721d8e70f1 (diff)
downloadprotobuf-ac34bf8f5935b46119750b50f0c84f8fa7211479.tar.gz
protobuf-ac34bf8f5935b46119750b50f0c84f8fa7211479.tar.bz2
protobuf-ac34bf8f5935b46119750b50f0c84f8fa7211479.zip
Merge pull request #4579 from jozefizso/dev/3380_version_info
Include version information in Windows binaries #3380
Diffstat (limited to 'cmake/version.rc.in')
-rw-r--r--cmake/version.rc.in45
1 files changed, 45 insertions, 0 deletions
diff --git a/cmake/version.rc.in b/cmake/version.rc.in
new file mode 100644
index 00000000..cbce1e53
--- /dev/null
+++ b/cmake/version.rc.in
@@ -0,0 +1,45 @@
+#define VS_FF_DEBUG 0x1L
+#define VS_VERSION_INFO 0x1L
+#define VS_FFI_FILEFLAGSMASK 0x17L
+#define VER_PRIVATEBUILD 0x0L
+#define VER_PRERELEASE 0x0L
+#define VOS__WINDOWS32 0x4L
+#define VFT_DLL 0x2L
+#define VFT2_UNKNOWN 0x0L
+
+#ifndef DEBUG
+#define VER_DEBUG 0
+#else
+#define VER_DEBUG VS_FF_DEBUG
+#endif
+
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION @protobuf_RC_FILEVERSION@,0
+ PRODUCTVERSION @protobuf_RC_FILEVERSION@,0
+ FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
+ FILEFLAGS VER_DEBUG
+ FILEOS VOS__WINDOWS32
+ FILETYPE VFT_DLL
+BEGIN
+ BLOCK "VarFileInfo"
+ BEGIN
+ // English language (0x409) and the Windows Unicode codepage (1200)
+ VALUE "Translation", 0x409, 1200
+ END
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040904b0"
+ BEGIN
+ VALUE "FileDescription", "Compiled with @CMAKE_CXX_COMPILER_ID@ @CMAKE_CXX_COMPILER_VERSION@\0"
+ VALUE "ProductVersion", "@protobuf_VERSION@\0"
+ VALUE "FileVersion", "@protobuf_VERSION@\0"
+ VALUE "InternalName", "protobuf\0"
+ VALUE "ProductName", "Protocol Buffers - Google's Data Interchange Format\0"
+ VALUE "CompanyName", "Google Inc.\0"
+ VALUE "LegalCopyright", "Copyright 2008 Google Inc. All rights reserved.\0"
+ VALUE "Licence", "BSD\0"
+ VALUE "Info", "https://developers.google.com/protocol-buffers/\0"
+ END
+ END
+END