[Pkg-owncloud-commits] [owncloud-client] 59/159: Windows: Add version information for owncloud.exe
Sandro Knauß
hefee-guest at moszumanska.debian.org
Fri May 1 13:05:22 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 2473183f193af07d46451206b0f2f12a266a90db
Author: Jocelyn Turcotte <jturcotte at woboq.com>
Date: Wed Apr 1 13:45:04 2015 +0200
Windows: Add version information for owncloud.exe
This should help us know what version or build number a crash report was generated with.
---
src/gui/CMakeLists.txt | 9 +++++++++
src/gui/version.rc.in | 25 +++++++++++++++++++++++++
2 files changed, 34 insertions(+)
diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt
index d6b304d..229bc12 100644
--- a/src/gui/CMakeLists.txt
+++ b/src/gui/CMakeLists.txt
@@ -154,10 +154,19 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}
qt_add_translation(client_I18N ${TRANSLATIONS})
+IF( WIN32 )
+ configure_file(
+ ${CMAKE_CURRENT_SOURCE_DIR}/version.rc.in
+ ${CMAKE_CURRENT_BINARY_DIR}/version.rc
+ @ONLY)
+ set(client_version ${CMAKE_CURRENT_BINARY_DIR}/version.rc)
+ENDIF()
+
set( final_src
${MIRALL_RC_SRC}
${client_SRCS}
${client_UI_SRCS}
+ ${client_version}
${guiMoc}
${client_I18N}
${3rdparty_SRC}
diff --git a/src/gui/version.rc.in b/src/gui/version.rc.in
new file mode 100644
index 0000000..09ea092
--- /dev/null
+++ b/src/gui/version.rc.in
@@ -0,0 +1,25 @@
+#include "winresrc.h"
+
+#define VER_FILEVERSION @MIRALL_VERSION_MAJOR@, at MIRALL_VERSION_MINOR@, at MIRALL_VERSION_PATCH@, at MIRALL_VERSION_BUILD@
+#define VER_FILEVERSION_STR "@MIRALL_VERSION_MAJOR at .@MIRALL_VERSION_MINOR at .@MIRALL_VERSION_PATCH at .@MIRALL_VERSION_BUILD@\0"
+
+#define VER_PRODUCTVERSION @MIRALL_VERSION_MAJOR@, at MIRALL_VERSION_MINOR@, at MIRALL_VERSION_PATCH@, at MIRALL_VERSION_BUILD@
+#define VER_PRODUCTVERSION_STR "@MIRALL_VERSION_MAJOR at .@MIRALL_VERSION_MINOR at .@MIRALL_VERSION_PATCH at .@MIRALL_VERSION_BUILD@\0"
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION VER_FILEVERSION
+ PRODUCTVERSION VER_PRODUCTVERSION
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "080904b0"
+ BEGIN
+ VALUE "FileVersion", VER_FILEVERSION_STR
+ VALUE "ProductVersion", VER_PRODUCTVERSION_STR
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x809, 1200
+ END
+END
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list