Revert "qmake vcxproj generator: map TARGET_EXT to $(TargetExt)"
This reverts commit e81d7fd1e5
.
The insane logic that prepends the version number of a lib to
TARGET_EXT instead of appending it to TARGET breaks every vcxproj
with a library version.
Fixing this properly will require much more work and testing on all
supported Windows platforms.
Forward-port of 8869b3b3 in qt/qt.git.
Task-number: QTBUG-29286
Change-Id: Ib96de9c6f41995af013b146a00c850c9da3a9d8d
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
parent
4730742f69
commit
99184f9461
@ -476,11 +476,7 @@ void VCXProjectWriter::write(XmlOutput &xml, VCProjectSingleConfig &tool)
|
||||
<< attrTag("Condition", condition)
|
||||
<< valueTag(tool.Configuration.PrimaryOutput);
|
||||
}
|
||||
if (!tool.Configuration.PrimaryOutputExtension.isEmpty()) {
|
||||
xml<< tag("TargetExt")
|
||||
<< attrTag("Condition", condition)
|
||||
<< valueTag(tool.Configuration.PrimaryOutputExtension);
|
||||
}
|
||||
|
||||
if ( tool.Configuration.linker.IgnoreImportLibrary != unset) {
|
||||
xml<< tag("IgnoreImportLibrary")
|
||||
<< attrTag("Condition", condition)
|
||||
@ -681,11 +677,7 @@ void VCXProjectWriter::write(XmlOutput &xml, VCProject &tool)
|
||||
<< attrTag("Condition", condition)
|
||||
<< valueTag(config.PrimaryOutput);
|
||||
}
|
||||
if (!config.PrimaryOutputExtension.isEmpty()) {
|
||||
xml << tag("TargetExt")
|
||||
<< attrTag("Condition", condition)
|
||||
<< valueTag(config.PrimaryOutputExtension);
|
||||
}
|
||||
|
||||
if (config.linker.IgnoreImportLibrary != unset) {
|
||||
xml << tag("IgnoreImportLibrary")
|
||||
<< attrTag("Condition", condition)
|
||||
|
@ -860,7 +860,6 @@ public:
|
||||
QString ConfigurationName;
|
||||
QString OutputDirectory;
|
||||
QString PrimaryOutput;
|
||||
QString PrimaryOutputExtension;
|
||||
QString ProgramDatabase;
|
||||
triState RegisterOutput;
|
||||
useOfATL UseOfATL;
|
||||
|
@ -944,7 +944,6 @@ void VcprojGenerator::initConfiguration()
|
||||
conf.PrimaryOutput = project->first("TARGET").toQString();
|
||||
if ( !conf.PrimaryOutput.isEmpty() && !project->first("TARGET_VERSION_EXT").isEmpty() && project->isActiveConfig("shared"))
|
||||
conf.PrimaryOutput.append(project->first("TARGET_VERSION_EXT").toQString());
|
||||
conf.PrimaryOutputExtension = project->first("TARGET_EXT").toQString();
|
||||
}
|
||||
|
||||
conf.Name = project->values("BUILD_NAME").join(' ');
|
||||
|
Loading…
Reference in New Issue
Block a user