qt5base-lts/mkspecs/features/uikit
Jake Petroules 397f345a6a Remove simulator_and_device handling for the Makefile generator
This patch moves towards a more sensible layout for UIKit platforms,
where both the device and simulator architectures for binaries are
combined into a single Mach-O file instead of separating out the
simulator architecutures into separate _simulator.a files.

This approach is both more common in the iOS ecosystem at large and
significantly simplifies the implementation details for Qt, especially
with the upcoming support for shared libraries on UIKit platforms.

This patch takes advantage of the -Xarch compiler option to pass the
appropriate -isysroot, -syslibroot, and -m*-version-min compiler and
linker flags to the clang frontend, operating in exactly the same way
as a normal multi-arch build for device or simulator did previously.
Exclusive builds are still enabled for the xcodebuild wrapper Makefile,
which builds all four configurations of a UIKit Xcode project as before,
as expected.

A particularly advantageous benefit of this change is that it flows very
well with existing Xcode workflows, namely that:
- Slicing out unused architectures is handled completely automatically
  for static builds, as an executable linking to a library with more
  architectures than it itself is linked as, the unused architectures
  will be ignored silently, resulting in the same behavior for users
  (and the App Store won't let you submit Intel architectures either).
- Removing architectures from a fat binary using lipo does NOT
  invalidate the code signature of that file or its container if it is a
  bundle. This allows shared library and framework builds of Qt to work
  mostly automatically as well, since an Xcode shell script build phase
  can remove unused architectures from the embedded frameworks when that
  is implemented, and if Qt ever starts signing its SDK releases, it
  won't interfere with that either (though binaries are just resigned).

Change-Id: I6c3578c78f75845a2fcc85f3a5b728ec997dbe90
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2016-09-03 09:47:56 +00:00
..
bitcode.prf qmake: Also add bitcode flags to linker 2016-08-20 00:32:07 +00:00
default_post.prf Remove simulator_and_device handling for the Makefile generator 2016-09-03 09:47:56 +00:00
default_pre.prf Remove simulator_and_device handling for the Makefile generator 2016-09-03 09:47:56 +00:00
device_destinations.sh Move ios_devices.pl into uikit folder 2016-08-30 18:14:32 +00:00
devices.pl Move ios_devices.pl into uikit folder 2016-08-30 18:14:32 +00:00
exclusive_builds_post.prf Refactor iOS builds to facilitate tvOS port 2016-05-05 02:08:51 +00:00
qt_config.prf Add support for Apple watchOS 2016-08-19 21:05:55 +00:00
qt_parts.prf Refactor iOS builds to facilitate tvOS port 2016-05-05 02:08:51 +00:00
qt.prf Add support for Apple watchOS 2016-08-19 21:05:55 +00:00
resolve_config.prf Remove simulator_and_device handling for the Makefile generator 2016-09-03 09:47:56 +00:00
sdk.prf fix build with configure -sdk iphonesimulator 2016-08-30 12:55:57 +00:00
testcase_targets.prf Refactor iOS builds to facilitate tvOS port 2016-05-05 02:08:51 +00:00
testcase.prf Refactor iOS builds to facilitate tvOS port 2016-05-05 02:08:51 +00:00
xcodebuild.mk Move ios_devices.pl into uikit folder 2016-08-30 18:14:32 +00:00
xcodebuild.prf Add support for Apple watchOS 2016-08-19 21:05:55 +00:00