VS: Map .appxmanifest sources to AppxManifest tool

Inspired-by: Minmin Gong <minmin.gong@gmail.com>
This commit is contained in:
Brad King 2014-07-29 13:43:35 -04:00
parent 15fb102278
commit 972cf1d7af
1 changed files with 7 additions and 1 deletions

View File

@ -1013,7 +1013,13 @@ void cmVisualStudio10TargetGenerator::WriteHeaderSource(cmSourceFile const* sf)
void cmVisualStudio10TargetGenerator::WriteExtraSource(cmSourceFile const* sf) void cmVisualStudio10TargetGenerator::WriteExtraSource(cmSourceFile const* sf)
{ {
this->WriteSource("None", sf); std::string tool = "None";
std::string const& ext = sf->GetExtension();
if(ext == "appxmanifest")
{
tool = "AppxManifest";
}
this->WriteSource(tool, sf);
} }
void cmVisualStudio10TargetGenerator::WriteSource( void cmVisualStudio10TargetGenerator::WriteSource(