diff options
author | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2018-08-09 16:05:51 +0200 |
---|---|---|
committer | Jesus Fernandez <Jesus.Fernandez@qt.io> | 2018-08-17 15:07:00 +0000 |
commit | 89f2a731cf85ff06c5295148b523ec83194068f7 (patch) | |
tree | bb0485520f3587e360a692ce6c1bf7574458f35b /configure.pri | |
parent | 32b4cb1b5438f0cc5bb7141ea8fa31da8c1ca8a6 (diff) |
qmake: add default path and version detection for ghs toolchain
Change-Id: Ic35f3e25078909e212864218835663989f647aae
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Nikola Velinov <nvelinov@ghs.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'configure.pri')
-rw-r--r-- | configure.pri | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.pri b/configure.pri index 41c3f13ea1..03eacd3c07 100644 --- a/configure.pri +++ b/configure.pri @@ -1144,6 +1144,12 @@ defineReplace(qtConfOutputPostProcess_publicPro) { "QT_ICC_MINOR_VERSION = $$format_number($$replace(QMAKE_ICC_VER, "(..)(..)", "\\2"))" \ "QT_ICC_PATCH_VERSION = $$QMAKE_ICC_UPDATE_VER" } + !isEmpty(QMAKE_GHS_VERSION) { + output += \ + "QT_GHS_MAJOR_VERSION = $$replace(QMAKE_GHS_VERSION, "(.*)(.)(.)", "\\1")" \ + "QT_GHS_MINOR_VERSION = $$replace(QMAKE_GHS_VERSION, "(.*)(.)(.)", "\\2")" \ + "QT_GHS_PATCH_VERSION = $$replace(QMAKE_GHS_VERSION, "(.*)(.)(.)", "\\3")" + } output += "QT_EDITION = $$config.input.qt_edition" !contains(config.input.qt_edition, "(OpenSource|Preview)") { |