| 5911 | } |
| 5912 | |
| 5913 | void cmVisualStudio10TargetGenerator::WriteCommonMissingFiles( |
| 5914 | Elem& e1, std::string const& manifestFile) |
| 5915 | { |
| 5916 | std::string templateFolder = |
| 5917 | cmStrCat(cmSystemTools::GetCMakeRoot(), "/Templates/Windows"); |
| 5918 | |
| 5919 | std::string sourceFile = this->ConvertPath(manifestFile, false); |
| 5920 | ConvertToWindowsSlash(sourceFile); |
| 5921 | { |
| 5922 | Elem e2(e1, "AppxManifest"); |
| 5923 | e2.Attribute("Include", sourceFile); |
| 5924 | e2.Element("SubType", "Designer"); |
| 5925 | } |
| 5926 | this->AddedFiles.push_back(sourceFile); |
| 5927 | |
| 5928 | std::string smallLogo = cmStrCat(this->DefaultArtifactDir, "/SmallLogo.png"); |
| 5929 | cmSystemTools::CopyAFile(cmStrCat(templateFolder, "/SmallLogo.png"), |
| 5930 | smallLogo, false); |
| 5931 | ConvertToWindowsSlash(smallLogo); |
| 5932 | Elem(e1, "Image").Attribute("Include", smallLogo); |
| 5933 | this->AddedFiles.push_back(smallLogo); |
| 5934 | |
| 5935 | std::string smallLogo44 = |
| 5936 | cmStrCat(this->DefaultArtifactDir, "/SmallLogo44x44.png"); |
| 5937 | cmSystemTools::CopyAFile(cmStrCat(templateFolder, "/SmallLogo44x44.png"), |
| 5938 | smallLogo44, false); |
| 5939 | ConvertToWindowsSlash(smallLogo44); |
| 5940 | Elem(e1, "Image").Attribute("Include", smallLogo44); |
| 5941 | this->AddedFiles.push_back(smallLogo44); |
| 5942 | |
| 5943 | std::string logo = cmStrCat(this->DefaultArtifactDir, "/Logo.png"); |
| 5944 | cmSystemTools::CopyAFile(cmStrCat(templateFolder, "/Logo.png"), logo, |
| 5945 | cmSystemTools::CopyWhen::OnlyIfDifferent); |
| 5946 | ConvertToWindowsSlash(logo); |
| 5947 | Elem(e1, "Image").Attribute("Include", logo); |
| 5948 | this->AddedFiles.push_back(logo); |
| 5949 | |
| 5950 | std::string storeLogo = cmStrCat(this->DefaultArtifactDir, "/StoreLogo.png"); |
| 5951 | cmSystemTools::CopyAFile(cmStrCat(templateFolder, "/StoreLogo.png"), |
| 5952 | storeLogo, false); |
| 5953 | ConvertToWindowsSlash(storeLogo); |
| 5954 | Elem(e1, "Image").Attribute("Include", storeLogo); |
| 5955 | this->AddedFiles.push_back(storeLogo); |
| 5956 | |
| 5957 | std::string splashScreen = |
| 5958 | cmStrCat(this->DefaultArtifactDir, "/SplashScreen.png"); |
| 5959 | cmSystemTools::CopyAFile(cmStrCat(templateFolder, "/SplashScreen.png"), |
| 5960 | splashScreen, false); |
| 5961 | ConvertToWindowsSlash(splashScreen); |
| 5962 | Elem(e1, "Image").Attribute("Include", splashScreen); |
| 5963 | this->AddedFiles.push_back(splashScreen); |
| 5964 | |
| 5965 | if (this->AddedDefaultCertificate) { |
| 5966 | // This file has already been added to the build so don't copy it |
| 5967 | std::string keyFile = |
| 5968 | cmStrCat(this->DefaultArtifactDir, "/Windows_TemporaryKey.pfx"); |
| 5969 | ConvertToWindowsSlash(keyFile); |
| 5970 | Elem(e1, "None").Attribute("Include", keyFile); |
no test coverage detected