| 5738 | } |
| 5739 | |
| 5740 | void cmVisualStudio10TargetGenerator::WriteMissingFilesWS80(Elem& e1) |
| 5741 | { |
| 5742 | std::string manifestFile = |
| 5743 | cmStrCat(this->DefaultArtifactDir, "/package.appxManifest"); |
| 5744 | std::string artifactDir = this->LocalGenerator->MaybeRelativeToCurBinDir( |
| 5745 | this->GeneratorTarget->GetSupportDirectory()); |
| 5746 | ConvertToWindowsSlash(artifactDir); |
| 5747 | std::string artifactDirXML = cmVS10EscapeXML(artifactDir); |
| 5748 | std::string const& targetNameXML = cmVS10EscapeXML(GetTargetOutputName()); |
| 5749 | |
| 5750 | cmGeneratedFileStream fout(manifestFile); |
| 5751 | fout.SetCopyIfDifferent(true); |
| 5752 | |
| 5753 | /* clang-format off */ |
| 5754 | fout << |
| 5755 | "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" |
| 5756 | "<Package xmlns=\"http://schemas.microsoft.com/appx/2010/manifest\">\n" |
| 5757 | "\t<Identity Name=\"" << this->GUID << "\" Publisher=\"CN=CMake\"" |
| 5758 | " Version=\"1.0.0.0\" />\n" |
| 5759 | "\t<Properties>\n" |
| 5760 | "\t\t<DisplayName>" << targetNameXML << "</DisplayName>\n" |
| 5761 | "\t\t<PublisherDisplayName>CMake</PublisherDisplayName>\n" |
| 5762 | "\t\t<Logo>" << artifactDirXML << "\\StoreLogo.png</Logo>\n" |
| 5763 | "\t</Properties>\n" |
| 5764 | "\t<Prerequisites>\n" |
| 5765 | "\t\t<OSMinVersion>6.2.1</OSMinVersion>\n" |
| 5766 | "\t\t<OSMaxVersionTested>6.2.1</OSMaxVersionTested>\n" |
| 5767 | "\t</Prerequisites>\n" |
| 5768 | "\t<Resources>\n" |
| 5769 | "\t\t<Resource Language=\"x-generate\" />\n" |
| 5770 | "\t</Resources>\n" |
| 5771 | "\t<Applications>\n" |
| 5772 | "\t\t<Application Id=\"App\"" |
| 5773 | " Executable=\"" << targetNameXML << ".exe\"" |
| 5774 | " EntryPoint=\"" << targetNameXML << ".App\">\n" |
| 5775 | "\t\t\t<VisualElements" |
| 5776 | " DisplayName=\"" << targetNameXML << "\"" |
| 5777 | " Description=\"" << targetNameXML << "\"" |
| 5778 | " BackgroundColor=\"#336699\" ForegroundText=\"light\"" |
| 5779 | " Logo=\"" << artifactDirXML << "\\Logo.png\"" |
| 5780 | " SmallLogo=\"" << artifactDirXML << "\\SmallLogo.png\">\n" |
| 5781 | "\t\t\t\t<DefaultTile ShowName=\"allLogos\"" |
| 5782 | " ShortName=\"" << targetNameXML << "\" />\n" |
| 5783 | "\t\t\t\t<SplashScreen" |
| 5784 | " Image=\"" << artifactDirXML << "\\SplashScreen.png\" />\n" |
| 5785 | "\t\t\t</VisualElements>\n" |
| 5786 | "\t\t</Application>\n" |
| 5787 | "\t</Applications>\n" |
| 5788 | "</Package>\n"; |
| 5789 | /* clang-format on */ |
| 5790 | |
| 5791 | this->WriteCommonMissingFiles(e1, manifestFile); |
| 5792 | } |
| 5793 | |
| 5794 | void cmVisualStudio10TargetGenerator::WriteMissingFilesWS81(Elem& e1) |
| 5795 | { |
no test coverage detected