| 5524 | } |
| 5525 | |
| 5526 | void cmVisualStudio10TargetGenerator::VerifyNecessaryFiles() |
| 5527 | { |
| 5528 | // For Windows and Windows Phone executables, we will assume that if a |
| 5529 | // manifest is not present that we need to add all the necessary files |
| 5530 | if (this->GeneratorTarget->GetType() == cmStateEnums::EXECUTABLE) { |
| 5531 | std::vector<cmGeneratorTarget::AllConfigSource> manifestSources = |
| 5532 | this->GeneratorTarget->GetAllConfigSources( |
| 5533 | cmGeneratorTarget::SourceKindAppManifest); |
| 5534 | std::string const& v = this->GlobalGenerator->GetSystemVersion(); |
| 5535 | if (this->GlobalGenerator->TargetsWindowsPhone()) { |
| 5536 | if (v == "8.0"_s) { |
| 5537 | // Look through the sources for WMAppManifest.xml |
| 5538 | bool foundManifest = false; |
| 5539 | for (cmGeneratorTarget::AllConfigSource const& source : |
| 5540 | this->GeneratorTarget->GetAllConfigSources()) { |
| 5541 | if (source.Kind == cmGeneratorTarget::SourceKindExtra && |
| 5542 | "wmappmanifest.xml" == |
| 5543 | cmSystemTools::LowerCase( |
| 5544 | source.Source->GetLocation().GetName())) { |
| 5545 | foundManifest = true; |
| 5546 | break; |
| 5547 | } |
| 5548 | } |
| 5549 | if (!foundManifest) { |
| 5550 | this->IsMissingFiles = true; |
| 5551 | } |
| 5552 | } else if (v == "8.1"_s) { |
| 5553 | if (manifestSources.empty()) { |
| 5554 | this->IsMissingFiles = true; |
| 5555 | } |
| 5556 | } |
| 5557 | } else if (this->GlobalGenerator->TargetsWindowsStore()) { |
| 5558 | if (manifestSources.empty()) { |
| 5559 | if (v == "8.0"_s) { |
| 5560 | this->IsMissingFiles = true; |
| 5561 | } else if (v == "8.1"_s || cmHasLiteralPrefix(v, "10.0")) { |
| 5562 | this->IsMissingFiles = true; |
| 5563 | } |
| 5564 | } |
| 5565 | } |
| 5566 | } |
| 5567 | } |
| 5568 | |
| 5569 | void cmVisualStudio10TargetGenerator::WriteMissingFiles(Elem& e1) |
| 5570 | { |
no test coverage detected