diff options
author | Kai Koehne <kai.koehne@theqtcompany.com> | 2014-11-11 16:44:55 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@theqtcompany.com> | 2014-11-11 16:51:39 +0100 |
commit | c8ed41495f492fcced1c98ca2a741a9d504ab521 (patch) | |
tree | 40409c4e2cd3d76bf6cfeed01091d8f4b6c5ebed /installerfw.pri | |
parent | 26e4af07b19135db61919dfaab9243f17d328f50 (diff) |
Allow to check for IFW version in code
Rename the IFW_VERSION to IFW_VERSION_STR, and add a new IFW_VERSION
define that encodes the version in hex. This follows the pattern of
QT_VERSION and QT_VERSION_STR, and allows easy checking of the IFW
version e.g. in macros.
Change-Id: I232c8aa53c9a04522810208cdd1ac595d8676879
Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Diffstat (limited to 'installerfw.pri')
-rw-r--r-- | installerfw.pri | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/installerfw.pri b/installerfw.pri index f2c5fe37d..46fbf8a9c 100644 --- a/installerfw.pri +++ b/installerfw.pri @@ -3,7 +3,8 @@ } IFW_PRI_INCLUDED = 1 -IFW_VERSION = 1.6.81 +IFW_VERSION_STR = 1.6.81 +IFW_VERSION = 0x010681 IFW_REPOSITORY_FORMAT_VERSION = 1.0.0 IFW_NEWLINE = $$escape_expand(\\n\\t) @@ -111,7 +112,8 @@ CONFIG(static, static|shared) { CONFIG += depend_includepath no_private_qt_headers_warning c++11 GIT_SHA1 = $$system(git rev-list --abbrev-commit -n1 HEAD) -DEFINES += QT_NO_CAST_FROM_ASCII QT_USE_QSTRINGBUILDER "_GIT_SHA1_=$$GIT_SHA1" IFW_VERSION=$$IFW_VERSION +DEFINES += QT_NO_CAST_FROM_ASCII QT_USE_QSTRINGBUILDER "_GIT_SHA1_=$$GIT_SHA1" \ + IFW_VERSION_STR=$$IFW_VERSION_STR IFW_VERSION=$$IFW_VERSION DEFINES += IFW_REPOSITORY_FORMAT_VERSION=$$IFW_REPOSITORY_FORMAT_VERSION static { |