qt5base-lts/qmake
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
..
doc Doc: update Project Options section in qmake Manual 2013-08-27 19:12:06 +02:00
generators Ensure the input file is first in the list of dependencies 2013-09-03 08:23:08 +02:00
library don't crash if builddir is suffix of sourcedir (or vice-versa) 2013-07-04 18:13:01 +02:00
cachekeys.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
main.cpp Merge remote-tracking branch 'gerrit/release' into stable 2013-03-21 08:49:01 +01:00
Makefile.unix Don't compile MD4, MD5, SHA-2 and SHA-3 into qmake 2013-08-15 01:30:54 +02:00
Makefile.win32 Don't compile MD4, MD5, SHA-2 and SHA-3 into qmake 2013-08-15 01:30:54 +02:00
meta.cpp Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
meta.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
option.cpp make sure qmake finds itself in CWD on windows 2013-04-26 12:08:24 +02:00
option.h remove unused member Option::application_argv0 2013-03-01 11:07:19 +01:00
project.cpp Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
project.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
property.cpp install host libraries into -hostprefix 2013-05-13 21:54:40 +02:00
property.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qmake_pch.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qmake-docs.pro move qmake docs into qtbase 2013-06-17 15:41:55 +02:00
qmake.pri Don't compile MD4, MD5, SHA-2 and SHA-3 into qmake 2013-08-15 01:30:54 +02:00
qmake.pro update comment 2013-06-17 15:42:03 +02:00