2
# qmake configuration for ios-device-g++
6
# QMAKE_IOS_XCODE_VERSION - set in mkspecs/common/ios/versions.conf
9
include(../../common/mac.conf)
10
include(../../common/gcc-base-ios.conf)
11
include(../../common/g++-macx.conf)
12
include(../../common/ios.conf)
13
include(../../common/ios/versions.conf)
14
include(../../common/ios/g++.conf)
15
include(../../common/ios/qmake.conf)
17
# Version check (g++ was discontinued at version 4.2, but user may have added it themselves)
18
lessThan(QMAKE_IOS_XCODE_VERSION, "4.3"): error("This mkspec requires Xcode 4.3 or later")
21
QMAKE_CC = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2
22
QMAKE_CXX = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2
23
QMAKE_FIX_RPATH = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/install_name_tool -id
24
QMAKE_AR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar cq
25
QMAKE_RANLIB = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib -s
26
QMAKE_LINK = $$QMAKE_CXX
27
QMAKE_LINK_SHLIB = $$QMAKE_CXX
29
# Check that compiler is valid
30
!exists($$QMAKE_CXX): error("The version of Xcode installed on this system does not include the g++ 4.2 compiler")
34
# Include after config is loaded to allow autodetection on GL/ES version
35
include(../../common/ios/arch.conf)