iOS: Build simulator libraries with suffix

Makes it possible to join two separate builds, and opens up for using
exclusive builds to do this.

Change-Id: I87ccbdd55511fdfbef3fe8b581f40525ebf077ed
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
Tor Arne Vestbø 2013-10-25 17:20:05 +02:00 committed by The Qt Project
parent 0d7d5ff5d0
commit 396aa7fade
2 changed files with 12 additions and 3 deletions

View File

@ -1,11 +1,16 @@
defineReplace(qtPlatformTargetSuffix) {
ios:CONFIG(iphonesimulator, iphonesimulator|iphoneos): \
suffix = _iphonesimulator
else: \
suffix =
CONFIG(debug, debug|release) {
!debug_and_release|build_pass {
mac:return(_debug)
win32:return(d)
mac: return($${suffix}_debug)
win32: return($${suffix}d)
}
}
return()
return($$suffix)
}
defineReplace(qtLibraryTarget) {

View File

@ -1,6 +1,10 @@
load(default_pre)
# In case Qt was built for a specific SDK
!iphonesimulator_and_iphoneos:contains(QMAKE_MAC_SDK, ^iphonesimulator.*): \
CONFIG += iphonesimulator
# Check for supported Xcode versions
lessThan(QMAKE_XCODE_VERSION, "4.3"): \
error("This mkspec requires Xcode 4.3 or later")