qt5base-lts/mkspecs/features/unix
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
..
bsymbolic_functions.prf take advantage of new safety regarding build config resolution 2013-02-18 15:52:39 +01:00
dylib.prf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
hide_symbols.prf Distinguish between Objective-C and Objective-C++ sources 2015-10-09 15:15:17 +00:00
largefile.prf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
opengl.prf purge vestiges of opengl es 1 support 2014-04-04 19:32:21 +02:00
openvg.prf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
separate_debug_info.prf Fix separate_debug_info silent builds 2015-03-13 23:26:54 +00:00
thread.prf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
x11.prf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
x11inc.prf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
x11lib.prf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
x11sm.prf Remove all references to X11 session management 2012-06-01 03:15:55 +02:00