MCPcopy Index your code
hub / github.com/Kitware/CMake / WriteLibOptions

Method WriteLibOptions

Source/cmVisualStudio10TargetGenerator.cxx:4345–4379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4343}
4344
4345void cmVisualStudio10TargetGenerator::WriteLibOptions(
4346 Elem& e1, std::string const& config)
4347{
4348 if (this->GeneratorTarget->GetType() != cmStateEnums::STATIC_LIBRARY &&
4349 this->GeneratorTarget->GetType() != cmStateEnums::OBJECT_LIBRARY) {
4350 return;
4351 }
4352
4353 std::string const& linkLanguage =
4354 this->GeneratorTarget->GetLinkClosure(config)->LinkerLanguage;
4355
4356 std::string libflags;
4357 this->LocalGenerator->GetStaticLibraryFlags(libflags, config, linkLanguage,
4358 this->GeneratorTarget);
4359 if (!libflags.empty()) {
4360 Elem e2(e1, "Lib");
4361 cmGlobalVisualStudio10Generator* gg = this->GlobalGenerator;
4362 cmVS10GeneratorOptions libOptions(this->LocalGenerator,
4363 cmVisualStudioGeneratorOptions::Linker,
4364 gg->GetLibFlagTable(), this);
4365 libOptions.Parse(libflags);
4366 OptionsHelper oh(libOptions, e2);
4367 oh.PrependInheritedString("AdditionalOptions");
4368 oh.OutputFlagMap();
4369 }
4370
4371 // We cannot generate metadata for static libraries. WindowsPhone
4372 // and WindowsStore tools look at GenerateWindowsMetadata in the
4373 // Link tool options even for static libraries.
4374 if (this->GlobalGenerator->TargetsWindowsPhone() ||
4375 this->GlobalGenerator->TargetsWindowsStore()) {
4376 Elem e2(e1, "Link");
4377 e2.Element("GenerateWindowsMetadata", "false");
4378 }
4379}
4380
4381void cmVisualStudio10TargetGenerator::WriteManifestOptions(
4382 Elem& e1, std::string const& config)

Callers 1

Calls 11

GetLinkClosureMethod · 0.80
GetStaticLibraryFlagsMethod · 0.80
GetLibFlagTableMethod · 0.80
TargetsWindowsPhoneMethod · 0.80
TargetsWindowsStoreMethod · 0.80
GetTypeMethod · 0.45
emptyMethod · 0.45
ParseMethod · 0.45
OutputFlagMapMethod · 0.45
ElementMethod · 0.45

Tested by

no test coverage detected