f9048b3465
Modified common MacOS gcc config for iOS compatibility. Added iOS mkspecs for iOS devices and simulator using G++, LLVM-G++ or CLANG compilers. Change-Id: If0a0b1a3ce4e0dc4db319a315e227a9d31549399 Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
32 lines
953 B
Plaintext
32 lines
953 B
Plaintext
#
|
|
# compiler settings for iOS llvm-g++ compilers
|
|
#
|
|
# Depends on:
|
|
#
|
|
# QMAKE_IOS_XCODE_VERSION - set in mkspecs/common/ios/versions.conf
|
|
#
|
|
|
|
# iOS build flags
|
|
QMAKE_IOS_CFLAGS = -fvisibility=hidden -fpascal-strings -fmessage-length=0
|
|
QMAKE_IOS_CFLAGS += -Wno-trigraphs -Wreturn-type -Wunused-variable
|
|
QMAKE_IOS_CXXFLAGS = -fvisibility-inlines-hidden
|
|
|
|
# Device or simulator specific flags
|
|
!*simulator*: QMAKE_IOS_OBJ_CFLAGS =
|
|
else: QMAKE_IOS_OBJ_CFLAGS = -fobjc-abi-version=2 -fobjc-legacy-dispatch
|
|
|
|
# Compiler version specific flags
|
|
!lessThan(QMAKE_IOS_XCODE_VERSION, "4.3") {
|
|
# Xcode 4.3+ specific flags
|
|
QMAKE_IOS_CFLAGS += -Wuninitialized
|
|
}
|
|
|
|
# Set build flags
|
|
QMAKE_CFLAGS += $$QMAKE_IOS_CFLAGS
|
|
QMAKE_CXXFLAGS += $$QMAKE_IOS_CFLAGS $$QMAKE_IOS_CXXFLAGS
|
|
QMAKE_OBJECTIVE_CFLAGS += $$QMAKE_IOS_CFLAGS $$QMAKE_IOS_CXXFLAGS $$QMAKE_IOS_OBJ_CFLAGS
|
|
|
|
QMAKE_IOS_CFLAGS =
|
|
QMAKE_IOS_CXXFLAGS =
|
|
QMAKE_IOS_OBJ_CFLAGS =
|