qt5base-lts/qmake/generators
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
..
integrity Don't compile MD4, MD5, SHA-2 and SHA-3 into qmake 2013-08-15 01:30:54 +02:00
mac Don't compile MD4, MD5, SHA-2 and SHA-3 into qmake 2013-08-15 01:30:54 +02:00
unix de-duplicate code for writing dummy makefiles 2013-08-27 19:12:06 +02:00
win32 Ensure the input file is first in the list of dependencies 2013-09-03 08:23:08 +02:00
makefile.cpp de-duplicate code for writing dummy makefiles 2013-08-27 19:12:06 +02:00
makefile.h de-duplicate code for writing dummy makefiles 2013-08-27 19:12:06 +02:00
makefiledeps.cpp Fix leak when fd != -1 2013-03-23 14:42:45 +01:00
makefiledeps.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
metamakefile.cpp actually use the temp variable we just assigned ... 2013-03-12 18:54:59 +01:00
metamakefile.h remove some cryptic code relating to output directories 2013-03-07 00:42:56 +01:00
projectgenerator.cpp Changed digia contact details to */legal, updated licenses 2013-07-20 11:21:46 +02:00
projectgenerator.h Changed digia contact details to */legal, updated licenses 2013-07-20 11:21:46 +02:00
xmloutput.cpp remove pointless QString::arg call 2013-05-30 12:16:52 +02:00
xmloutput.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00