qt5base-lts/qmake/generators/win32
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
..
cesdkhandler.cpp Fixed Wince Makefile environment 2012-06-19 16:46:09 +02:00
cesdkhandler.h Fixed Wince Makefile environment 2012-06-19 16:46:09 +02:00
mingw_make.cpp Fix semantics of the src dir in the include search paths with MinGW 2012-09-10 14:09:45 +02:00
mingw_make.h merge QMAKE_LIBDIR into QMAKE_LIBS early 2012-07-27 16:29:38 +02:00
msbuild_objectmodel.cpp qmake vcxproj generator: map TARGET_EXT to $(TargetExt) 2012-08-07 18:55:43 +02:00
msbuild_objectmodel.h qmake: un-copy-and-pastify vcxproj generator a bit 2012-08-07 18:55:43 +02:00
msvc_nmake.cpp introduce qmake variable abstractions 2012-09-07 15:39:31 +02:00
msvc_nmake.h introduce qmake variable abstractions 2012-09-07 15:39:31 +02:00
msvc_objectmodel.cpp introduce qmake variable abstractions 2012-09-07 15:39:31 +02:00
msvc_objectmodel.h introduce qmake variable abstractions 2012-09-07 15:39:31 +02:00
msvc_vcproj.cpp introduce qmake variable abstractions 2012-09-07 15:39:31 +02:00
msvc_vcproj.h dispose of MSVCPROJ_LIBS 2012-07-24 12:45:02 +02:00
msvc_vcxproj.cpp Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
msvc_vcxproj.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
winmakefile.cpp introduce qmake variable abstractions 2012-09-07 15:39:31 +02:00
winmakefile.h introduce qmake variable abstractions 2012-09-07 15:39:31 +02:00