| 5587 | } |
| 5588 | |
| 5589 | void cmVisualStudio10TargetGenerator::WriteMissingFilesWP80(Elem& e1) |
| 5590 | { |
| 5591 | std::string templateFolder = |
| 5592 | cmStrCat(cmSystemTools::GetCMakeRoot(), "/Templates/Windows"); |
| 5593 | |
| 5594 | // For WP80, the manifest needs to be in the same folder as the project |
| 5595 | // this can cause an overwrite problem if projects aren't organized in |
| 5596 | // folders |
| 5597 | std::string manifestFile = cmStrCat( |
| 5598 | this->LocalGenerator->GetCurrentBinaryDirectory(), "/WMAppManifest.xml"); |
| 5599 | std::string artifactDir = this->LocalGenerator->MaybeRelativeToCurBinDir( |
| 5600 | this->GeneratorTarget->GetSupportDirectory()); |
| 5601 | ConvertToWindowsSlash(artifactDir); |
| 5602 | std::string artifactDirXML = cmVS10EscapeXML(artifactDir); |
| 5603 | std::string const& targetNameXML = cmVS10EscapeXML(GetTargetOutputName()); |
| 5604 | |
| 5605 | cmGeneratedFileStream fout(manifestFile); |
| 5606 | fout.SetCopyIfDifferent(true); |
| 5607 | |
| 5608 | /* clang-format off */ |
| 5609 | fout << |
| 5610 | "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" |
| 5611 | "<Deployment" |
| 5612 | " xmlns=\"http://schemas.microsoft.com/windowsphone/2012/deployment\"" |
| 5613 | " AppPlatformVersion=\"8.0\">\n" |
| 5614 | "\t<DefaultLanguage xmlns=\"\" code=\"en-US\"/>\n" |
| 5615 | "\t<App xmlns=\"\" ProductID=\"{" << this->GUID << "}\"" |
| 5616 | " Title=\"CMake Test Program\" RuntimeType=\"Modern Native\"" |
| 5617 | " Version=\"1.0.0.0\" Genre=\"apps.normal\" Author=\"CMake\"" |
| 5618 | " Description=\"Default CMake App\" Publisher=\"CMake\"" |
| 5619 | " PublisherID=\"{" << this->GUID << "}\">\n" |
| 5620 | "\t\t<IconPath IsRelative=\"true\" IsResource=\"false\">" |
| 5621 | << artifactDirXML << "\\ApplicationIcon.png</IconPath>\n" |
| 5622 | "\t\t<Capabilities/>\n" |
| 5623 | "\t\t<Tasks>\n" |
| 5624 | "\t\t\t<DefaultTask Name=\"_default\"" |
| 5625 | " ImagePath=\"" << targetNameXML << ".exe\" ImageParams=\"\" />\n" |
| 5626 | "\t\t</Tasks>\n" |
| 5627 | "\t\t<Tokens>\n" |
| 5628 | "\t\t\t<PrimaryToken TokenID=\"" << targetNameXML << "Token\"" |
| 5629 | " TaskName=\"_default\">\n" |
| 5630 | "\t\t\t\t<TemplateFlip>\n" |
| 5631 | "\t\t\t\t\t<SmallImageURI IsRelative=\"true\" IsResource=\"false\">" |
| 5632 | << artifactDirXML << "\\SmallLogo.png</SmallImageURI>\n" |
| 5633 | "\t\t\t\t\t<Count>0</Count>\n" |
| 5634 | "\t\t\t\t\t<BackgroundImageURI IsRelative=\"true\" IsResource=\"false\">" |
| 5635 | << artifactDirXML << "\\Logo.png</BackgroundImageURI>\n" |
| 5636 | "\t\t\t\t</TemplateFlip>\n" |
| 5637 | "\t\t\t</PrimaryToken>\n" |
| 5638 | "\t\t</Tokens>\n" |
| 5639 | "\t\t<ScreenResolutions>\n" |
| 5640 | "\t\t\t<ScreenResolution Name=\"ID_RESOLUTION_WVGA\" />\n" |
| 5641 | "\t\t</ScreenResolutions>\n" |
| 5642 | "\t</App>\n" |
| 5643 | "</Deployment>\n"; |
| 5644 | /* clang-format on */ |
| 5645 | |
| 5646 | std::string sourceFile = this->ConvertPath(manifestFile, false); |
no test coverage detected