diff options
author | Kai Koehne <kai.koehne@qt.io> | 2017-07-21 15:41:33 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2017-07-25 09:06:01 +0000 |
commit | 7d8847101d4b91c11dc89826b0058257bd1fc95d (patch) | |
tree | 83049413ca50c9420333d6d93d77ca67dbeffda3 /src/app/app.pro | |
parent | 68fe72e99abebd4602103b523b6c46eabaf3c667 (diff) |
Add name, version as metadata to Windows executable
The description and version is seen e.g. in the file dialogs, but
also in the task manager and crash dialogs.
Change-Id: I65f7076a55ecbdcaa6b7c9ab57fecaab59bcaa08
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/app/app.pro')
-rw-r--r-- | src/app/app.pro | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app/app.pro b/src/app/app.pro index 58dca7ba05..1414e7d7fc 100644 --- a/src/app/app.pro +++ b/src/app/app.pro @@ -20,6 +20,12 @@ QT_BREAKPAD_ROOT_PATH = $$(QT_BREAKPAD_ROOT_PATH) include($$QT_BREAKPAD_ROOT_PATH/qtbreakpad.pri) } win32 { + # We need the version in two separate formats for the .rc file + # RC_VERSION=4,3,82,0 (quadruple) + # RC_VERSION_STRING="4.4.0-beta1" (free text) + DEFINES += RC_VERSION=$$replace(QTCREATOR_VERSION, "\\.", ","),0 \ + RC_VERSION_STRING=\\\"$${QTCREATOR_DISPLAY_VERSION}\\\" \ + RC_COPYRIGHT='"\\\"2008-$${QTCREATOR_COPYRIGHT_YEAR} The Qt Company Ltd\\\""' RC_FILE = qtcreator.rc } else:macx { LIBS += -framework CoreFoundation |