diff options
-rw-r--r-- | rbutil/rbutilqt/rbutilqt.pro | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.pro b/rbutil/rbutilqt/rbutilqt.pro index 243e592255..0b1f5fde54 100644 --- a/rbutil/rbutilqt/rbutilqt.pro +++ b/rbutil/rbutilqt/rbutilqt.pro | |||
@@ -218,14 +218,22 @@ macx:!intel { | |||
218 | QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk | 218 | QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk |
219 | } | 219 | } |
220 | macx:intel { | 220 | macx:intel { |
221 | QMAKE_LFLAGS_X86=-mmacosx-version-min=10.5 -arch i386 | ||
222 | contains(QT_MAJOR_VERSION, 5) { | 221 | contains(QT_MAJOR_VERSION, 5) { |
223 | QMAKE_MAC_SDK=macosx | 222 | QMAKE_MAC_SDK=macosx |
223 | greaterThan(QT_MINOR_VERSION, 5) { | ||
224 | QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7 | ||
225 | message("Qt 5.6+ detected: setting deploy target to 10.7") | ||
226 | } | ||
227 | !greaterThan(QT_MINOR_VERSION, 5) { | ||
228 | QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6 | ||
229 | message("Qt up to 5.5 detected: setting deploy target to 10.6") | ||
230 | } | ||
224 | } | 231 | } |
225 | !contains(QT_MAJOR_VERSION, 5) { | 232 | !contains(QT_MAJOR_VERSION, 5) { |
226 | QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.5.sdk | 233 | QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.5.sdk |
234 | QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5 | ||
235 | QMAKE_LFLAGS_X86=-mmacosx-version-min=10.5 -arch i386 | ||
227 | } | 236 | } |
228 | QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5 | ||
229 | } | 237 | } |
230 | macx { | 238 | macx { |
231 | CONFIG += x86 | 239 | CONFIG += x86 |