c937bbb4fe
With iOS 6.0 and above the LC_MAIN load command is available, which allows dyld to call the application entrypoint directly instead of going through _start in crt.o. By passing -e to the linker we can change this entrypoint to our wrapper that sets up the separate stack before entering the native iOS runloop through UIApplicationMain. As before, we call the user's main() from applicationDidFinishLaunching. By using LC_MAIN instead of messing with the object files we open up the possibility of generating Bitcode instead of object code, which can be useful for link-time optimizations, either locally or by Apple. Change-Id: If2153bc919581cd93dfa10fb6ff1c305b3e39a52 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com>
29 lines
791 B
Plaintext
29 lines
791 B
Plaintext
#
|
|
# qmake configuration for macx-ios-clang
|
|
#
|
|
|
|
MAKEFILE_GENERATOR = UNIX
|
|
CONFIG += app_bundle reduce_exports incremental global_init_link_order lib_version_first plugin_no_soname sdk
|
|
QMAKE_INCREMENTAL_STYLE = sublib
|
|
|
|
QMAKE_MACOSX_DEPLOYMENT_TARGET =
|
|
QMAKE_IOS_DEPLOYMENT_TARGET = 6.0
|
|
|
|
INCLUDEPATH += $$PWD/ios
|
|
DEFINES += DARWIN_NO_CARBON QT_NO_PRINTER QT_NO_PRINTDIALOG
|
|
|
|
# Universal target (iPhone and iPad)
|
|
QMAKE_IOS_TARGETED_DEVICE_FAMILY = 1,2
|
|
|
|
QMAKE_IOS_DEVICE_ARCHS = armv7 arm64
|
|
QMAKE_IOS_SIMULATOR_ARCHS = i386 x86_64
|
|
|
|
include(../common/ios.conf)
|
|
include(../common/gcc-base-mac.conf)
|
|
include(../common/clang.conf)
|
|
include(../common/clang-mac.conf)
|
|
include(../common/ios/clang.conf)
|
|
include(../common/ios/qmake.conf)
|
|
|
|
load(qt_config)
|