vcxproj: fix writing of librarian settings
The settings of the librarian were never written. Creation of static libraries only worked by accident. Adapted the code from the vcproj code path. Task-number: QTBUG-30712 Change-Id: I69917f44305eb458647392d222db477fe5a5b7c8 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com> Reviewed-by: Andy Shaw <andy.shaw@digia.com>
This commit is contained in:
parent
6fa2fec1dd
commit
d8f940930e
@ -54,6 +54,7 @@ QT_BEGIN_NAMESPACE
|
||||
const char _CLCompile[] = "ClCompile";
|
||||
const char _ItemGroup[] = "ItemGroup";
|
||||
const char _Link[] = "Link";
|
||||
const char _Lib[] = "Lib";
|
||||
const char _ManifestTool[] = "ManifestTool";
|
||||
const char _Midl[] = "Midl";
|
||||
const char _ResourceCompile[] = "ResourceCompile";
|
||||
@ -754,8 +755,11 @@ void VCXProjectWriter::write(XmlOutput &xml, VCProject &tool)
|
||||
// ClCompile
|
||||
write(xml, config.compiler);
|
||||
|
||||
// Link
|
||||
write(xml, config.linker);
|
||||
// Librarian / Linker
|
||||
if (config.ConfigurationType == typeStaticLibrary)
|
||||
write(xml, config.librarian);
|
||||
else
|
||||
write(xml, config.linker);
|
||||
|
||||
// Midl
|
||||
write(xml, config.idl);
|
||||
@ -1683,7 +1687,7 @@ void VCXProjectWriter::write(XmlOutput &xml, const VCCustomBuildTool &tool)
|
||||
void VCXProjectWriter::write(XmlOutput &xml, const VCLibrarianTool &tool)
|
||||
{
|
||||
xml
|
||||
<< tag(_Link)
|
||||
<< tag(_Lib)
|
||||
<< attrTagX(_AdditionalDependencies, tool.AdditionalDependencies, ";")
|
||||
<< attrTagX(_AdditionalLibraryDirectories, tool.AdditionalLibraryDirectories, ";")
|
||||
<< attrTagX(_AdditionalOptions, tool.AdditionalOptions, " ")
|
||||
@ -1703,7 +1707,7 @@ void VCXProjectWriter::write(XmlOutput &xml, const VCLibrarianTool &tool)
|
||||
//unused << attrTagS(_TargetMachine, tool.TargetMachine)
|
||||
//unused << attrTagT(_TreatLibWarningAsErrors, tool.TreatLibWarningAsErrors)
|
||||
//unused << attrTagT(_Verbose, tool.Verbose)
|
||||
<< closetag(_Link);
|
||||
<< closetag(_Lib);
|
||||
}
|
||||
|
||||
void VCXProjectWriter::write(XmlOutput &xml, const VCResourceCompilerTool &tool)
|
||||
|
Loading…
Reference in New Issue
Block a user