qt5base-lts/qmake/generators/win32
Chris Gilbert ae52bba5d4 Fix msvc project dependencies as specificed by .depends
Previously, the full path to the qmake project file was specified as the
key for projGuids when inserting the project GUID into this hash table.

The only place that items are inserted into projGuids is in
VcprojGenerator::collectDependencies at:

	projGuids.insert(val.first, newDep->target);

In this case, val.first contains the full path for the given project being
processed at this point. (e.g.: c:\testproject\testproject.pro)

Further in sln/vcproj generation, projGuids is queried with the contents
of <TARGET>.depends so that users may specify another qmake project as a
dependency for a given target.

This occurs in two places, in two ways:

1) In VcprojGenerator::collectDependencies() at:
	QString depend = dep.toQString();
	if (!projGuids[depend].isEmpty()) {
	...

In this case QString depend contains whatever is put into <TARGET>.depends.
Typically this is the plain name of the project you depend on.
(e.g.: testproj)

2) In VcprojGenerator::writeSubDirs(QTextStream &t) by proxy of
   extraSubdirs which is a QStringList of the project depends should the
   mapping in case 1 fail.

This case works much like the above case, attempting to use each
QString entry of the extraSubdirs list as a key in projGuids.

If either of the above two attempts are successful, the msvc solution is
configured in a way that creates a project dependency, ensuring correct
compilation order and other related behavior.

The fix here stores the target project (e.g.: testproject) as opposed to the
full project path, as that is what is expected in the <TARGET>.depends
statements contained in the qmake project.

Change-Id: Iee05661a64d7a3e4467c5ade48d801fbbfe981b5
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Chris Gilbert <cgilbert@knaldtech.com>
2013-10-29 19:59:17 +01:00
..
cesdkhandler.cpp Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
cesdkhandler.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
mingw_make.cpp de-duplicate code for writing dummy makefiles 2013-08-27 19:12:06 +02:00
mingw_make.h Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
msbuild_objectmodel.cpp fix /SAFESEH linker option for VS >= 2010 2013-10-29 16:17:55 +01:00
msbuild_objectmodel.h Use correct toolset version for winphone builds 2013-09-15 16:14:49 +02:00
msvc_nmake.cpp Create clean makefiles for winrt builds 2013-09-15 13:25:25 +02:00
msvc_nmake.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
msvc_objectmodel.cpp fix /SAFESEH linker option for VS >= 2010 2013-10-29 16:17:55 +01:00
msvc_objectmodel.h fix /SAFESEH linker option for VS >= 2010 2013-10-29 16:17:55 +01:00
msvc_vcproj.cpp Fix msvc project dependencies as specificed by .depends 2013-10-29 19:59:17 +01:00
msvc_vcproj.h qmake: added WMAppManifest generation for winphone target 2013-09-17 23:09:24 +02:00
msvc_vcxproj.cpp Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
msvc_vcxproj.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
winmakefile.cpp make sure that installed meta files are always postprocessed 2013-10-11 21:04:04 +02:00
winmakefile.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00