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>
22 lines
701 B
Plaintext
22 lines
701 B
Plaintext
#
|
|
# compiler settings for iOS g++ compilers
|
|
#
|
|
|
|
# iOS build flags
|
|
QMAKE_IOS_CFLAGS = -fvisibility=hidden -fexceptions -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
|
|
|
|
# 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 =
|