qt5base-lts/qmake
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
..
generators Fix semantics of the src dir in the include search paths with MinGW 2012-09-10 14:09:45 +02:00
library introduce qmake variable abstractions 2012-09-07 15:39:31 +02:00
cachekeys.h Fix qmake hash function to use XOR 2012-07-25 13:31:05 +02:00
CHANGES Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
main.cpp remove pretenses of supporting projects on stdin 2012-09-05 03:03:12 +02:00
Makefile.unix introduce qmake variable abstractions 2012-09-07 15:39:31 +02:00
Makefile.win32 introduce qmake variable abstractions 2012-09-07 15:39:31 +02:00
Makefile.win32-g++ introduce qmake variable abstractions 2012-09-07 15:39:31 +02:00
meta.cpp introduce qmake variable abstractions 2012-09-07 15:39:31 +02:00
meta.h introduce qmake variable abstractions 2012-09-07 15:39:31 +02:00
option.cpp introduce qmake variable abstractions 2012-09-07 15:39:31 +02:00
option.h revamp preparation of command line for qmake calls in makefiles 2012-08-14 23:12:23 +02:00
project.cpp introduce qmake variable abstractions 2012-09-07 15:39:31 +02:00
project.h introduce qmake variable abstractions 2012-09-07 15:39:31 +02:00
property.cpp introduce qmake variable abstractions 2012-09-07 15:39:31 +02:00
property.h introduce qmake variable abstractions 2012-09-07 15:39:31 +02:00
qmake_pch.h QHash security fix (1/2): add global QHash seed 2012-04-03 19:12:13 +02:00
qmake.pri introduce qmake variable abstractions 2012-09-07 15:39:31 +02:00
qmake.pro introduce qmake variable abstractions 2012-09-07 15:39:31 +02:00