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

Method WriteMissingFilesWP81

Source/cmVisualStudio10TargetGenerator.cxx:5678–5738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5676}
5677
5678void cmVisualStudio10TargetGenerator::WriteMissingFilesWP81(Elem& e1)
5679{
5680 std::string manifestFile =
5681 cmStrCat(this->DefaultArtifactDir, "/package.appxManifest");
5682 std::string artifactDir = this->LocalGenerator->MaybeRelativeToCurBinDir(
5683 this->GeneratorTarget->GetSupportDirectory());
5684 ConvertToWindowsSlash(artifactDir);
5685 std::string artifactDirXML = cmVS10EscapeXML(artifactDir);
5686 std::string const& targetNameXML = cmVS10EscapeXML(GetTargetOutputName());
5687
5688 cmGeneratedFileStream fout(manifestFile);
5689 fout.SetCopyIfDifferent(true);
5690
5691 /* clang-format off */
5692 fout <<
5693 "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
5694 "<Package xmlns=\"http://schemas.microsoft.com/appx/2010/manifest\""
5695 " xmlns:m2=\"http://schemas.microsoft.com/appx/2013/manifest\""
5696 " xmlns:mp=\"http://schemas.microsoft.com/appx/2014/phone/manifest\">\n"
5697 "\t<Identity Name=\"" << this->GUID << "\" Publisher=\"CN=CMake\""
5698 " Version=\"1.0.0.0\" />\n"
5699 "\t<mp:PhoneIdentity PhoneProductId=\"" << this->GUID << "\""
5700 " PhonePublisherId=\"00000000-0000-0000-0000-000000000000\"/>\n"
5701 "\t<Properties>\n"
5702 "\t\t<DisplayName>" << targetNameXML << "</DisplayName>\n"
5703 "\t\t<PublisherDisplayName>CMake</PublisherDisplayName>\n"
5704 "\t\t<Logo>" << artifactDirXML << "\\StoreLogo.png</Logo>\n"
5705 "\t</Properties>\n"
5706 "\t<Prerequisites>\n"
5707 "\t\t<OSMinVersion>6.3.1</OSMinVersion>\n"
5708 "\t\t<OSMaxVersionTested>6.3.1</OSMaxVersionTested>\n"
5709 "\t</Prerequisites>\n"
5710 "\t<Resources>\n"
5711 "\t\t<Resource Language=\"x-generate\" />\n"
5712 "\t</Resources>\n"
5713 "\t<Applications>\n"
5714 "\t\t<Application Id=\"App\""
5715 " Executable=\"" << targetNameXML << ".exe\""
5716 " EntryPoint=\"" << targetNameXML << ".App\">\n"
5717 "\t\t\t<m2:VisualElements\n"
5718 "\t\t\t\tDisplayName=\"" << targetNameXML << "\"\n"
5719 "\t\t\t\tDescription=\"" << targetNameXML << "\"\n"
5720 "\t\t\t\tBackgroundColor=\"#336699\"\n"
5721 "\t\t\t\tForegroundText=\"light\"\n"
5722 "\t\t\t\tSquare150x150Logo=\"" << artifactDirXML << "\\Logo.png\"\n"
5723 "\t\t\t\tSquare30x30Logo=\"" << artifactDirXML << "\\SmallLogo.png\">\n"
5724 "\t\t\t\t<m2:DefaultTile ShortName=\"" << targetNameXML << "\">\n"
5725 "\t\t\t\t\t<m2:ShowNameOnTiles>\n"
5726 "\t\t\t\t\t\t<m2:ShowOn Tile=\"square150x150Logo\" />\n"
5727 "\t\t\t\t\t</m2:ShowNameOnTiles>\n"
5728 "\t\t\t\t</m2:DefaultTile>\n"
5729 "\t\t\t\t<m2:SplashScreen"
5730 " Image=\"" << artifactDirXML << "\\SplashScreen.png\" />\n"
5731 "\t\t\t</m2:VisualElements>\n"
5732 "\t\t</Application>\n"
5733 "\t</Applications>\n"
5734 "</Package>\n";
5735 /* clang-format on */

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