summaryrefslogtreecommitdiffstats
path: root/configure.pri
diff options
context:
space:
mode:
Diffstat (limited to 'configure.pri')
-rw-r--r--configure.pri31
1 files changed, 31 insertions, 0 deletions
diff --git a/configure.pri b/configure.pri
index 673252dc51..7d719e6797 100644
--- a/configure.pri
+++ b/configure.pri
@@ -1064,6 +1064,37 @@ defineReplace(qtConfOutputPostProcess_publicPro) {
!isEmpty(config.input.qt_libinfix): output += "QT_LIBINFIX = $$config.input.qt_libinfix"
!isEmpty(config.input.qt_namespace): output += "QT_NAMESPACE = $$config.input.qt_namespace"
+ !isEmpty(QMAKE_GCC_MAJOR_VERSION) {
+ output += \
+ "QT_GCC_MAJOR_VERSION = $$QMAKE_GCC_MAJOR_VERSION" \
+ "QT_GCC_MINOR_VERSION = $$QMAKE_GCC_MINOR_VERSION" \
+ "QT_GCC_PATCH_VERSION = $$QMAKE_GCC_PATCH_VERSION"
+ }
+ !isEmpty(QMAKE_CLANG_MAJOR_VERSION) {
+ output += \
+ "QT_CLANG_MAJOR_VERSION = $$QMAKE_CLANG_MAJOR_VERSION" \
+ "QT_CLANG_MINOR_VERSION = $$QMAKE_CLANG_MINOR_VERSION" \
+ "QT_CLANG_PATCH_VERSION = $$QMAKE_CLANG_PATCH_VERSION"
+ }
+ !isEmpty(QMAKE_APPLE_CLANG_MAJOR_VERSION) {
+ output += \
+ "QT_APPLE_CLANG_MAJOR_VERSION = $$QMAKE_APPLE_CLANG_MAJOR_VERSION" \
+ "QT_APPLE_CLANG_MINOR_VERSION = $$QMAKE_APPLE_CLANG_MINOR_VERSION" \
+ "QT_APPLE_CLANG_PATCH_VERSION = $$QMAKE_APPLE_CLANG_PATCH_VERSION"
+ }
+ !isEmpty(QMAKE_MSC_VER) {
+ output += \
+ "QT_MSVC_MAJOR_VERSION = $$replace(QMAKE_MSC_FULL_VER, "(..)(..)(.*)", "\\1")" \
+ "QT_MSVC_MINOR_VERSION = $$format_number($$replace(QMAKE_MSC_FULL_VER, "(..)(..)(.*)", "\\2"))" \
+ "QT_MSVC_PATCH_VERSION = $$replace(QMAKE_MSC_FULL_VER, "(..)(..)(.*)", "\\3")"
+ }
+ !isEmpty(QMAKE_ICC_VER) {
+ output += \
+ "QT_ICC_MAJOR_VERSION = $$replace(QMAKE_ICC_VER, "(..)(..)", "\\1")" \
+ "QT_ICC_MINOR_VERSION = $$format_number($$replace(QMAKE_ICC_VER, "(..)(..)", "\\2"))" \
+ "QT_ICC_PATCH_VERSION = $$QMAKE_ICC_UPDATE_VER"
+ }
+
output += "QT_EDITION = $$config.input.qt_edition"
!contains(config.input.qt_edition, "(OpenSource|Preview)") {
output += \