Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJocelyn Turcotte <jturcotte@woboq.com>2015-04-01 14:45:04 +0300
committerJocelyn Turcotte <jturcotte@woboq.com>2015-04-01 16:03:41 +0300
commit2473183f193af07d46451206b0f2f12a266a90db (patch)
treea8bec3171c45f2ed3db0f398bdccdd1ca769540c /src
parent7d7142d7d8b775b0fe322a48521d50ceace3b3a7 (diff)
Windows: Add version information for owncloud.exe
This should help us know what version or build number a crash report was generated with.
Diffstat (limited to 'src')
-rw-r--r--src/gui/CMakeLists.txt9
-rw-r--r--src/gui/version.rc.in25
2 files changed, 34 insertions, 0 deletions
diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt
index d6b304dd4..229bc1294 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 000000000..09ea09202
--- /dev/null
+++ b/src/gui/version.rc.in
@@ -0,0 +1,25 @@
+#include "winresrc.h"
+
+#define VER_FILEVERSION @MIRALL_VERSION_MAJOR@,@MIRALL_VERSION_MINOR@,@MIRALL_VERSION_PATCH@,@MIRALL_VERSION_BUILD@
+#define VER_FILEVERSION_STR "@MIRALL_VERSION_MAJOR@.@MIRALL_VERSION_MINOR@.@MIRALL_VERSION_PATCH@.@MIRALL_VERSION_BUILD@\0"
+
+#define VER_PRODUCTVERSION @MIRALL_VERSION_MAJOR@,@MIRALL_VERSION_MINOR@,@MIRALL_VERSION_PATCH@,@MIRALL_VERSION_BUILD@
+#define VER_PRODUCTVERSION_STR "@MIRALL_VERSION_MAJOR@.@MIRALL_VERSION_MINOR@.@MIRALL_VERSION_PATCH@.@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