qt5base-lts/tests/auto/tools
Simon Hausmann 0c0c04b405 Fix semantics of the src dir in the include search paths with MinGW
This issue originates from https://bugs.webkit.org/show_bug.cgi?id=95736

Suppose we have
    main.cpp
    somedirectory/someheader.h -- which has #include "anotherheader.h"
    anotherheader.h

With unix generator, the directory where main.cpp is located is included,
unless no_include_pwd is set. Hence the look-up of anotherheader.h from
within someheader.h will work.

With MSVC this works because MSVC looks "in the directories of any
previously opened include files in the reverse order in which they were
opened." (from http://msdn.microsoft.com/en-us/library/36k2cdd4.aspx)

Unfortunately the build breaks with MinGW, because it lacks support for
including the source directory in the include search path just like the
unix generator does.

This patch adds the same functionality to the MinGW generator as well as
an auto-test.

Change-Id: Iea8bb06e34862c51b8fd4eca2ee26668e24a319a
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
Reviewed-by: Jonathan Liu <net147@gmail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
2012-09-10 14:09:45 +02:00
..
moc Generate includes for Qt containers used as auto-metatypes. 2012-09-03 20:05:04 +02:00
qdbuscpp2xml Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qdbusxml2cpp Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qmake Fix semantics of the src dir in the include search paths with MinGW 2012-09-10 14:09:45 +02:00
rcc Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
uic uic-Autotest: Remove SRCDIR-define, add stdout-test. 2012-08-02 20:38:54 +02:00
tools.pro Add unit testing for the qdbusxml2cpp tool 2012-04-21 01:18:56 +02:00