qt5base-lts/qmake/generators/win32
Andy Shaw 0278310f9e Ensure the input file is first in the list of dependencies
When building a project in VS then it would cause a rebuild
under certain situations even though a rebuild is not
actually required.

The root problem exists in VS in the following configuration:
1. A file has a custom build tool specified
2. The custom build tool has additional dependencies
3. The input file is specified in the additional dependencies
4. There are files in the additional dependency list

This is the situation with form files in Qt that have include hints
specified in Qt Designer. The include hints get specified in the
additional dependencies for the custom build tool.

What happens is that VS will process files in the additional
dependency list differently based on where they appear in the list
relative to the input file.

If a dependency appears before the input file, VS will require the
file as a build input. If you just specify a file name, VS looks in
the project directory (and only the project directory) for that file.

You have to specify the path (relative or absolute) to get VS to look
elsewhere. If VS does not find the dependency, VS thinks the project
is out of date (since the missing dependency is a required build
input) and will rebuild the input file.

If the dependency appears after the input file and the file doesn't
exist, VS does not include the dependency as a build input. Since the
file is not a build input, no rebuild is required.

Change-Id: I5af460d21ad049ed7819746fd60c98677b810692
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
2013-09-03 08:23:08 +02:00
..
cesdkhandler.cpp Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
cesdkhandler.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
mingw_make.cpp de-duplicate code for writing dummy makefiles 2013-08-27 19:12:06 +02:00
mingw_make.h Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
msbuild_objectmodel.cpp add support for Visual Studio 2013 2013-07-04 12:54:58 +02:00
msbuild_objectmodel.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
msvc_nmake.cpp de-duplicate code for writing dummy makefiles 2013-08-27 19:12:06 +02:00
msvc_nmake.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
msvc_objectmodel.cpp Ensure the input file is first in the list of dependencies 2013-09-03 08:23:08 +02:00
msvc_objectmodel.h add support for Visual Studio 2013 2013-07-04 12:54:58 +02:00
msvc_vcproj.cpp Don't compile MD4, MD5, SHA-2 and SHA-3 into qmake 2013-08-15 01:30:54 +02:00
msvc_vcproj.h basic manifest tool support in vc(x)proj generator 2013-06-25 12:08:38 +02:00
msvc_vcxproj.cpp Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
msvc_vcxproj.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
winmakefile.cpp escape paths coming from prl files 2013-07-22 19:52:06 +02:00
winmakefile.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00