qt5base-lts/tools/configure
Thiago Macieira 6668f5becf Implement a more direct headersclean check
Test each include file directly, instead of doing a large #include. This
verifies that each header is compilable on its own. One big advantage of
doing it via a special compiler in qmake is that we skip pre-compiled
headers, which has hidden build errors in the past.

This solution is implemented by making syncqt produce a second list of
headers.  This list is the same as the list of headers in the source
code to be installed, minus the headers that declare themselves to be
unclean, via the pragma:
  #pragma qt_sync_skip_header_check

This mechanism is applied only for public libraries (skipping
QtPlatformSupport, an internal_module).

This test is enabled only for -developer-builds of Qt because it
increases the compilation time.

On QtTest: the library only links to QtCore, but it has two headers that
provide inline-only functionality by including QtGui and QtWidgets
headers (namely, qtest_gui.h and qtest_widget.h). If those two modules
aren't getting compiled due to -no-gui or -no-widgets to configure, we
need to remove the respective headers from the list of headers to be
checked. If they are being built, then we need to make QtTest's build
wait for the headers to be generated and that happens when qmake is
first run inside the src/gui and src/widgets directories.

Change-Id: I57d64bd697a92367c8464c073a42e4d142a9a15f
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2015-04-17 00:54:45 +00:00
..
configure_pch.h Update copyright headers 2015-02-11 06:49:51 +00:00
configure.pro De-inline QDebug destructor 2014-05-22 08:35:06 +02:00
configureapp.cpp Implement a more direct headersclean check 2015-04-17 00:54:45 +00:00
configureapp.h adjust configure's path output to relative paths 2015-03-06 19:08:37 +00:00
environment.cpp Add mingw GCC Version to qconfig.pri 2015-03-25 11:13:19 +00:00
environment.h Add mingw GCC Version to qconfig.pri 2015-03-25 11:13:19 +00:00
main.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
Makefile.mingw remove redundant CXX definition 2015-02-04 16:33:37 +00:00
Makefile.win32 MSVC: Remove use of -Zm argument 2015-02-13 21:23:19 +00:00
tools.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
tools.h Update copyright headers 2015-02-11 06:49:51 +00:00