Added checking which minimal OSX version supports current Qt version.
From time to time Qt change minimal supported OS X version. This checking will help build Valentina on older Qt version without fixing .pro files. --HG-- branch : develop
This commit is contained in:
parent
8d56b872dc
commit
dfb8c387b6
|
@ -200,7 +200,17 @@ unix{
|
||||||
# Some macx stuff
|
# Some macx stuff
|
||||||
QMAKE_MAC_SDK = macosx
|
QMAKE_MAC_SDK = macosx
|
||||||
|
|
||||||
|
# Check which minimal OSX version supports current Qt version
|
||||||
|
equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 6) {
|
||||||
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.8
|
||||||
|
} else {
|
||||||
|
equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 3) {
|
||||||
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
|
||||||
|
} else {
|
||||||
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Path to resources in app bundle
|
# Path to resources in app bundle
|
||||||
#RESOURCES_DIR = "Contents/Resources" defined in translation.pri
|
#RESOURCES_DIR = "Contents/Resources" defined in translation.pri
|
||||||
FRAMEWORKS_DIR = "Contents/Frameworks"
|
FRAMEWORKS_DIR = "Contents/Frameworks"
|
||||||
|
|
|
@ -214,7 +214,17 @@ unix{
|
||||||
# Some macx stuff
|
# Some macx stuff
|
||||||
QMAKE_MAC_SDK = macosx
|
QMAKE_MAC_SDK = macosx
|
||||||
|
|
||||||
|
# Check which minimal OSX version supports current Qt version
|
||||||
|
equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 6) {
|
||||||
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.8
|
||||||
|
} else {
|
||||||
|
equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 3) {
|
||||||
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
|
||||||
|
} else {
|
||||||
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Path to resources in app bundle
|
# Path to resources in app bundle
|
||||||
#RESOURCES_DIR = "Contents/Resources" defined in translation.pri
|
#RESOURCES_DIR = "Contents/Resources" defined in translation.pri
|
||||||
FRAMEWORKS_DIR = "Contents/Frameworks"
|
FRAMEWORKS_DIR = "Contents/Frameworks"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user