Generate dependencies for moc_ style includes when using CONFIG+=GNUmake
authorTor Arne Vestbø <tor.arne.vestbo@nokia.com>
Thu, 20 Oct 2011 08:53:28 +0000 (10:53 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 20 Oct 2011 14:49:24 +0000 (16:49 +0200)
commitd74bb06079428b8581f7fc2a7e3a855fa0c1e8c1
tree174a17eed49c02ac9f63a621cb4f094b2fe2f8d1
parentce5adc76847edf10dc843f5c93485e393f0ca099
Generate dependencies for moc_ style includes when using CONFIG+=GNUmake

Sometimes you will include "moc_foo.cpp" from a a cpp file, not to tell
qmake to run moc on it (that's handled by having foo.h in HEADERS), but
so that the moc'ed sources are compiled as part of foo.cpp instead of a
separate compilation unit, or if the moc'ed sources need defintions from
the cpp file.

The dependency logic for CONFIG+=GNUmake failed to take this case into
account, resulting in failures to find files when generating dependency
information for those files.

Change-Id: Iac00424e2d196b518b1ef576d7567335b8ff24f0
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
qmake/generators/unix/unixmake2.cpp