forked from len0rd/rockbox
Improve handling of Qt5 subversions on OS X.
Qt 5.6 on OS X requires targeting at least OS X 10.7, while for earlier versions we can still target 10.6. Handle this case and inform the user about the used target version. Change-Id: I78e426037e2966241ab9a63105e04e7366b469ed
This commit is contained in:
parent
32aaa52ed4
commit
bbb46a885d
1 changed files with 10 additions and 2 deletions
|
|
@ -218,14 +218,22 @@ macx:!intel {
|
|||
QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk
|
||||
}
|
||||
macx:intel {
|
||||
QMAKE_LFLAGS_X86=-mmacosx-version-min=10.5 -arch i386
|
||||
contains(QT_MAJOR_VERSION, 5) {
|
||||
QMAKE_MAC_SDK=macosx
|
||||
greaterThan(QT_MINOR_VERSION, 5) {
|
||||
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
|
||||
message("Qt 5.6+ detected: setting deploy target to 10.7")
|
||||
}
|
||||
!greaterThan(QT_MINOR_VERSION, 5) {
|
||||
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
|
||||
message("Qt up to 5.5 detected: setting deploy target to 10.6")
|
||||
}
|
||||
}
|
||||
!contains(QT_MAJOR_VERSION, 5) {
|
||||
QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.5.sdk
|
||||
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5
|
||||
QMAKE_LFLAGS_X86=-mmacosx-version-min=10.5 -arch i386
|
||||
}
|
||||
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5
|
||||
}
|
||||
macx {
|
||||
CONFIG += x86
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue