qt5base-lts/qmake
Tor Arne Vestbø ca572a6144 qmake: Allow extra compilers to have the makefile depend on its inputs
And enable this configuration option for the resource compiler. This
results in a re-run of qmake whenever you touch a qrc file, which is
needed to keep the dependencies up to date. Otherwise you might end
up in the situation where you add a file to a qrc, edit the file some
time later, but a rebuild does not regenerate a cpp file and compile
that, so the final binary is stale.

Technically this dependency problem is present for all source files,
and qrc files are no different than any cpp file that you add a new
header #include to, or adding a Q_OBJECT macro to a header. To pick
up these changes we have to re-run qmake, so that qmake can run its
internal dependency checking, and any extra compiler dependency
commands.

The reason we're making this change for rcc files it that conceptually
people treat them as a "project" files, and expect them to behave similarly
to .pro or .pri files, in that editing the file will invalidate the
makefile. In practice this is often what happens when adding new
headers, as you touch the project file when changing the HEADERS
variable.

Task-number: QTBUG-13334
Change-Id: If69149678e7fba6d812d31dcc17877427f9a6122
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
2011-11-28 13:35:42 +01:00
..
generators qmake: Allow extra compilers to have the makefile depend on its inputs 2011-11-28 13:35:42 +01:00
cachekeys.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
CHANGES Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
main.cpp qmake: Replace Q_WS_WIN by Q_OS_WIN 2011-10-21 12:34:50 +02:00
Makefile.unix qmake: remove symbian support 2011-11-07 13:26:41 +01:00
Makefile.win32 fix makefiles again 2011-11-11 18:28:49 +01:00
Makefile.win32-g++ Windows: Adapt mkspec for MinGW / gcc 4.6. 2011-11-18 14:53:08 +01:00
Makefile.win32-g++-sh Windows: Adapt mkspec for MinGW / gcc 4.6. 2011-11-18 14:53:08 +01:00
meta.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
meta.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
option.cpp find qt.conf more reliably 2011-09-12 18:25:54 +02:00
option.h Added build system support for installing tests. 2011-11-23 00:13:46 +01:00
project.cpp qmake: remove symbian support 2011-11-07 13:26:41 +01:00
project.h inline resoveDepends() 2011-07-11 18:58:41 +02:00
property.cpp Added build system support for installing tests. 2011-11-23 00:13:46 +01:00
property.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qmake_pch.h qmake: Replace Q_WS_WIN by Q_OS_WIN 2011-10-21 12:34:50 +02:00
qmake.pri qmake: remove symbian support 2011-11-07 13:26:41 +01:00
qmake.pro qmake: remove symbian support 2011-11-07 13:26:41 +01:00