qmake: Add object_parallel_to_source config option
authorTor Arne Vestbø <tor.arne.vestbo@nokia.com>
Mon, 5 Dec 2011 14:50:43 +0000 (15:50 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 7 Dec 2011 11:55:28 +0000 (12:55 +0100)
commit47df12225918ba82abe35921af19e547717da58b
tree425bd53e9094f66aa2d31a1159c14e5dacf657fb
parent7e66f6c207dca9f7402c4bfd27f43711c8befaac
qmake: Add object_parallel_to_source config option

This solves the problem of two source files in the same project
having the same name, which ends up with colliding object files.
It also solves issues with moving files around in the source tree
when the GNUmake option is used together with gcc_MD_depends,
where the dependency file would end up with a dependency to the
old source location.

We already have object_with_source option, but that does not play
nicely with shadow-builds. The new option tries to keep the same
hirarcy in the output dir (while still respecting OBJECTS_DIR),
as the sources. Any source with a path outside of the root project
directory (absolute or relative, ../../foo.cpp), will be put inside
the objects directory with the full path appended.

Change-Id: I0c96291974f4801f4c55a26485d512b15c144c00
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
qmake/generators/makefile.cpp