aboutsummaryrefslogtreecommitdiff
path: root/cmake/version.rc.in
diff options
context:
space:
mode:
authorJozef Izso <jozef.izso@gmail.com>2018-08-15 15:50:45 +0200
committerJozef Izso <jozef.izso@gmail.com>2018-08-15 15:50:45 +0200
commitd2c35ce4cb6ff767712a879f6bfad9d50ada577d (patch)
treea9d5bb8b15cac5c75884aada782d7584d011b1e3 /cmake/version.rc.in
parentf2a1356966cef3889434368598ac888d131489fb (diff)
downloadprotobuf-d2c35ce4cb6ff767712a879f6bfad9d50ada577d.tar.gz
protobuf-d2c35ce4cb6ff767712a879f6bfad9d50ada577d.tar.bz2
protobuf-d2c35ce4cb6ff767712a879f6bfad9d50ada577d.zip
Backport the PR #4579 to 3.6.x branch
Implements #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