| 4343 | } |
| 4344 | |
| 4345 | void 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 | |
| 4381 | void cmVisualStudio10TargetGenerator::WriteManifestOptions( |
| 4382 | Elem& e1, std::string const& config) |
no test coverage detected