qt5base-lts/mkspecs/macx-ios-clang/features
Tor Arne Vestbø 9ff1310af5 Distinguish between Objective-C and Objective-C++ sources
Instead of lumping both Objective-C (.m) and Objective-C++ (.mm) sources
into the same pile, passing them on to the same compiler as for C++ (CXX),
with the C++ flags (CXXFLAGS), we follow Apple's lead and treat them as
variants of the C and C++ languages separately, so that Objective-C
sources are built with CC and with CFLAGS, and Objective-C++ sources
with CXX, and CXXFLAGS.

This lets us remove a lot of duplicated flags and definitions from the
QMAKE_OBJECTIVE_CFLAGS variable, which in 99% of the cases just matched
the C++ equivalent. The remaining Objective-C/C++ flags are added to
CFLAGS/CXXFLAGS, as the compiler will just ignore them when running in
C/C++ mode. This matches Xcode, which also doesn't have a separate build
setting for Objective-C/C++ flags.

The Makefile qmake generator has been rewritten to support Objective-C/C++
fully, by not assuming that we're just iterating over the C and C++
extensions when dealing with compilation rules, precompiled headers, etc.
There's some duplicated logic in this code, as inherent by qmake's already
duplicated code paths, but this can be cleaned up when C++11 support is
mandatory and we can use lambda functions.

Task-number: QTBUG-36575
Change-Id: I4f06576d5f49e939333a2e03d965da54119e5e31
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
2015-10-09 15:15:17 +00:00
..
default_post.prf Distinguish between Objective-C and Objective-C++ sources 2015-10-09 15:15:17 +00:00
default_pre.prf Fix iOS simulator build after 1f0823c (Rewrite simd.prf to share more code) 2014-07-30 19:37:52 +02:00
exclusive_builds_post.prf iOS: Refactor default_post logic into more appropriate units 2015-08-04 11:58:05 +00:00
qt_config.prf iOS: Enable fat builds containing both armv7 and arm64 slices 2014-11-13 20:00:34 +01:00
qt_parts.prf iOS: Disable tests for all other modules than qtbase 2014-01-25 03:04:38 +01:00
qt.prf iOS: Use LC_MAIN to wrap user main() instead of mangling object files 2015-06-29 12:39:50 +00:00
resolve_config.prf iOS: Refactor default_post logic into more appropriate units 2015-08-04 11:58:05 +00:00
sdk.prf Xcode: Make QMAKE_MAC_SDK_(PLATFORM_)PATH depend on active SDK 2015-03-07 01:57:48 +00:00
testcase_targets.prf iOS: Refactor xcodebuild exclusive build logic into standalone makefile 2015-08-04 11:59:01 +00:00
testcase.prf iOS: Refactor default_post logic into more appropriate units 2015-08-04 11:58:05 +00:00
xcodebuild.prf iOS: Refactor xcodebuild exclusive build logic into standalone makefile 2015-08-04 11:59:01 +00:00