From 2c2d04191f818a3705ae1a044275751ff6aab8f7 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 11 Dec 2018 09:38:43 +0200 Subject: [PATCH] Release Qt 5.12 brings new requirements for minimal Mac OS X version. --HG-- branch : release --- common.pri | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/common.pri b/common.pri index 523aa7cab..4104aa6a0 100644 --- a/common.pri +++ b/common.pri @@ -28,25 +28,30 @@ win32{ macx{ # Check which minimal OSX version supports current Qt version # See page https://doc.qt.io/qt-5/supported-platforms-and-configurations.html - equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 10) {# Qt 5.11 - QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.11 + # For older versions https://doc.qt.io/qt-5.11/supported-platforms-and-configurations.html + equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 11) {# Qt 5.12 + QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.12 } else { - equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 9) {# Qt 5.10 + equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 10) {# Qt 5.11 QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.11 } else { - equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 8) {# Qt 5.9 - QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.10 + equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 9) {# Qt 5.10 + QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.11 } else { - equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 7) {# Qt 5.8 - QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.9 + equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 8) {# Qt 5.9 + QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.10 } else { - equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 6) {# Qt 5.7 - QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.8 + equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 7) {# Qt 5.8 + QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.9 } else { - equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 3) {# Qt 5.4 - QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7 + equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 6) {# Qt 5.7 + QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.8 } else { - QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6 + equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 3) {# Qt 5.4 + QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7 + } else { + QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6 + } } } }