mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 14:50:15 -05:00
VS: Honor WinCE deployment properties in VS 2010+
Previously only VS 2008 was supported.
This commit is contained in:
@@ -623,6 +623,7 @@ void cmVisualStudio10TargetGenerator::Generate()
|
||||
Elem(e0, "PropertyGroup").Attribute("Label", "UserMacros");
|
||||
this->WriteWinRTPackageCertificateKeyFile(e0);
|
||||
this->WritePathAndIncrementalLinkOptions(e0);
|
||||
this->WriteCEDebugProjectConfigurationValues(e0);
|
||||
this->WriteItemDefinitionGroups(e0);
|
||||
this->WriteCustomCommands(e0);
|
||||
this->WriteAllSources(e0);
|
||||
@@ -1071,6 +1072,32 @@ void cmVisualStudio10TargetGenerator::WriteProjectConfigurationValues(Elem& e0)
|
||||
}
|
||||
}
|
||||
|
||||
void cmVisualStudio10TargetGenerator::WriteCEDebugProjectConfigurationValues(
|
||||
Elem& e0)
|
||||
{
|
||||
if (!this->GlobalGenerator->TargetsWindowsCE()) {
|
||||
return;
|
||||
}
|
||||
const char* additionalFiles =
|
||||
this->GeneratorTarget->GetProperty("DEPLOYMENT_ADDITIONAL_FILES");
|
||||
const char* remoteDirectory =
|
||||
this->GeneratorTarget->GetProperty("DEPLOYMENT_REMOTE_DIRECTORY");
|
||||
if (!(additionalFiles || remoteDirectory)) {
|
||||
return;
|
||||
}
|
||||
for (std::string const& c : this->Configurations) {
|
||||
Elem e1(e0, "PropertyGroup");
|
||||
e1.Attribute("Condition", this->CalcCondition(c));
|
||||
|
||||
if (remoteDirectory) {
|
||||
e1.Element("RemoteDirectory", remoteDirectory);
|
||||
}
|
||||
if (additionalFiles) {
|
||||
e1.Element("CEAdditionalFiles", additionalFiles);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void cmVisualStudio10TargetGenerator::WriteMSToolConfigurationValues(
|
||||
Elem& e1, std::string const& config)
|
||||
{
|
||||
|
||||
@@ -57,6 +57,7 @@ private:
|
||||
void WriteProjectConfigurations(Elem& e0);
|
||||
void WriteProjectConfigurationValues(Elem& e0);
|
||||
void WriteMSToolConfigurationValues(Elem& e1, std::string const& config);
|
||||
void WriteCEDebugProjectConfigurationValues(Elem& e0);
|
||||
void WriteMSToolConfigurationValuesManaged(Elem& e1,
|
||||
std::string const& config);
|
||||
void WriteHeaderSource(Elem& e1, cmSourceFile const* sf);
|
||||
|
||||
Reference in New Issue
Block a user