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

Method WriteMissingFilesWS10_0

Source/cmVisualStudio10TargetGenerator.cxx:5853–5911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5851}
5852
5853void cmVisualStudio10TargetGenerator::WriteMissingFilesWS10_0(Elem& e1)
5854{
5855 std::string manifestFile =
5856 cmStrCat(this->DefaultArtifactDir, "/package.appxManifest");
5857 std::string artifactDir = this->LocalGenerator->MaybeRelativeToCurBinDir(
5858 this->GeneratorTarget->GetSupportDirectory());
5859 ConvertToWindowsSlash(artifactDir);
5860 std::string artifactDirXML = cmVS10EscapeXML(artifactDir);
5861 std::string const& targetNameXML = cmVS10EscapeXML(GetTargetOutputName());
5862
5863 cmGeneratedFileStream fout(manifestFile);
5864 fout.SetCopyIfDifferent(true);
5865
5866 /* clang-format off */
5867 fout <<
5868 "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
5869 "<Package\n\t"
5870 "xmlns=\"http://schemas.microsoft.com/appx/manifest/foundation/windows10\""
5871 "\txmlns:mp=\"http://schemas.microsoft.com/appx/2014/phone/manifest\"\n"
5872 "\txmlns:uap=\"http://schemas.microsoft.com/appx/manifest/uap/windows10\""
5873 "\n\tIgnorableNamespaces=\"uap mp\">\n\n"
5874 "\t<Identity Name=\"" << this->GUID << "\" Publisher=\"CN=CMake\""
5875 " Version=\"1.0.0.0\" />\n"
5876 "\t<mp:PhoneIdentity PhoneProductId=\"" << this->GUID <<
5877 "\" PhonePublisherId=\"00000000-0000-0000-0000-000000000000\"/>\n"
5878 "\t<Properties>\n"
5879 "\t\t<DisplayName>" << targetNameXML << "</DisplayName>\n"
5880 "\t\t<PublisherDisplayName>CMake</PublisherDisplayName>\n"
5881 "\t\t<Logo>" << artifactDirXML << "\\StoreLogo.png</Logo>\n"
5882 "\t</Properties>\n"
5883 "\t<Dependencies>\n"
5884 "\t\t<TargetDeviceFamily Name=\"Windows.Universal\" "
5885 "MinVersion=\"10.0.0.0\" MaxVersionTested=\"10.0.0.0\" />\n"
5886 "\t</Dependencies>\n"
5887
5888 "\t<Resources>\n"
5889 "\t\t<Resource Language=\"x-generate\" />\n"
5890 "\t</Resources>\n"
5891 "\t<Applications>\n"
5892 "\t\t<Application Id=\"App\""
5893 " Executable=\"" << targetNameXML << ".exe\""
5894 " EntryPoint=\"" << targetNameXML << ".App\">\n"
5895 "\t\t\t<uap:VisualElements\n"
5896 "\t\t\t\tDisplayName=\"" << targetNameXML << "\"\n"
5897 "\t\t\t\tDescription=\"" << targetNameXML << "\"\n"
5898 "\t\t\t\tBackgroundColor=\"#336699\"\n"
5899 "\t\t\t\tSquare150x150Logo=\"" << artifactDirXML << "\\Logo.png\"\n"
5900 "\t\t\t\tSquare44x44Logo=\"" << artifactDirXML <<
5901 "\\SmallLogo44x44.png\">\n"
5902 "\t\t\t\t<uap:SplashScreen"
5903 " Image=\"" << artifactDirXML << "\\SplashScreen.png\" />\n"
5904 "\t\t\t</uap:VisualElements>\n"
5905 "\t\t</Application>\n"
5906 "\t</Applications>\n"
5907 "</Package>\n";
5908 /* clang-format on */
5909
5910 this->WriteCommonMissingFiles(e1, manifestFile);

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