MCPcopy Create free account
hub / github.com/Kitware/CMake / WriteMissingFilesWS81

Method WriteMissingFilesWS81

Source/cmVisualStudio10TargetGenerator.cxx:5794–5851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5792}
5793
5794void cmVisualStudio10TargetGenerator::WriteMissingFilesWS81(Elem& e1)
5795{
5796 std::string manifestFile =
5797 cmStrCat(this->DefaultArtifactDir, "/package.appxManifest");
5798 std::string artifactDir = this->LocalGenerator->MaybeRelativeToCurBinDir(
5799 this->GeneratorTarget->GetSupportDirectory());
5800 ConvertToWindowsSlash(artifactDir);
5801 std::string artifactDirXML = cmVS10EscapeXML(artifactDir);
5802 std::string const& targetNameXML = cmVS10EscapeXML(GetTargetOutputName());
5803
5804 cmGeneratedFileStream fout(manifestFile);
5805 fout.SetCopyIfDifferent(true);
5806
5807 /* clang-format off */
5808 fout <<
5809 "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
5810 "<Package xmlns=\"http://schemas.microsoft.com/appx/2010/manifest\""
5811 " xmlns:m2=\"http://schemas.microsoft.com/appx/2013/manifest\">\n"
5812 "\t<Identity Name=\"" << this->GUID << "\" Publisher=\"CN=CMake\""
5813 " Version=\"1.0.0.0\" />\n"
5814 "\t<Properties>\n"
5815 "\t\t<DisplayName>" << targetNameXML << "</DisplayName>\n"
5816 "\t\t<PublisherDisplayName>CMake</PublisherDisplayName>\n"
5817 "\t\t<Logo>" << artifactDirXML << "\\StoreLogo.png</Logo>\n"
5818 "\t</Properties>\n"
5819 "\t<Prerequisites>\n"
5820 "\t\t<OSMinVersion>6.3</OSMinVersion>\n"
5821 "\t\t<OSMaxVersionTested>6.3</OSMaxVersionTested>\n"
5822 "\t</Prerequisites>\n"
5823 "\t<Resources>\n"
5824 "\t\t<Resource Language=\"x-generate\" />\n"
5825 "\t</Resources>\n"
5826 "\t<Applications>\n"
5827 "\t\t<Application Id=\"App\""
5828 " Executable=\"" << targetNameXML << ".exe\""
5829 " EntryPoint=\"" << targetNameXML << ".App\">\n"
5830 "\t\t\t<m2:VisualElements\n"
5831 "\t\t\t\tDisplayName=\"" << targetNameXML << "\"\n"
5832 "\t\t\t\tDescription=\"" << targetNameXML << "\"\n"
5833 "\t\t\t\tBackgroundColor=\"#336699\"\n"
5834 "\t\t\t\tForegroundText=\"light\"\n"
5835 "\t\t\t\tSquare150x150Logo=\"" << artifactDirXML << "\\Logo.png\"\n"
5836 "\t\t\t\tSquare30x30Logo=\"" << artifactDirXML << "\\SmallLogo.png\">\n"
5837 "\t\t\t\t<m2:DefaultTile ShortName=\"" << targetNameXML << "\">\n"
5838 "\t\t\t\t\t<m2:ShowNameOnTiles>\n"
5839 "\t\t\t\t\t\t<m2:ShowOn Tile=\"square150x150Logo\" />\n"
5840 "\t\t\t\t\t</m2:ShowNameOnTiles>\n"
5841 "\t\t\t\t</m2:DefaultTile>\n"
5842 "\t\t\t\t<m2:SplashScreen"
5843 " Image=\"" << artifactDirXML << "\\SplashScreen.png\" />\n"
5844 "\t\t\t</m2:VisualElements>\n"
5845 "\t\t</Application>\n"
5846 "\t</Applications>\n"
5847 "</Package>\n";
5848 /* clang-format on */
5849
5850 this->WriteCommonMissingFiles(e1, manifestFile);
5851}

Callers 1

WriteMissingFilesMethod · 0.95

Calls 7

ConvertToWindowsSlashFunction · 0.85
cmVS10EscapeXMLFunction · 0.85
GetSupportDirectoryMethod · 0.80
SetCopyIfDifferentMethod · 0.80
cmStrCatFunction · 0.70

Tested by

no test coverage detected