|
@@ -251,7 +251,8 @@ void cmGlobalVisualStudio7Generator::WriteTargetConfigurations(
|
|
|
if(expath)
|
|
if(expath)
|
|
|
{
|
|
{
|
|
|
this->WriteProjectConfigurations(fout, target->GetName(),
|
|
this->WriteProjectConfigurations(fout, target->GetName(),
|
|
|
- true);
|
|
|
|
|
|
|
+ true,
|
|
|
|
|
+ target->GetProperty("VS_PLATFORM_MAPPING"));
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
@@ -286,8 +287,12 @@ void cmGlobalVisualStudio7Generator::WriteTargetsToSolution(
|
|
|
{
|
|
{
|
|
|
std::string project = target->GetName();
|
|
std::string project = target->GetName();
|
|
|
std::string location = expath;
|
|
std::string location = expath;
|
|
|
- this->WriteExternalProject(fout, project.c_str(),
|
|
|
|
|
- location.c_str(), target->GetUtilities());
|
|
|
|
|
|
|
+
|
|
|
|
|
+ this->WriteExternalProject(fout,
|
|
|
|
|
+ project.c_str(),
|
|
|
|
|
+ location.c_str(),
|
|
|
|
|
+ target->GetProperty("VS_PROJECT_TYPE"),
|
|
|
|
|
+ target->GetUtilities());
|
|
|
written = true;
|
|
written = true;
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
@@ -580,18 +585,20 @@ cmGlobalVisualStudio7Generator
|
|
|
// executables to the libraries it uses are also done here
|
|
// executables to the libraries it uses are also done here
|
|
|
void cmGlobalVisualStudio7Generator
|
|
void cmGlobalVisualStudio7Generator
|
|
|
::WriteProjectConfigurations(std::ostream& fout, const char* name,
|
|
::WriteProjectConfigurations(std::ostream& fout, const char* name,
|
|
|
- bool partOfDefaultBuild)
|
|
|
|
|
|
|
+ bool partOfDefaultBuild, const char* platformMapping)
|
|
|
{
|
|
{
|
|
|
std::string guid = this->GetGUID(name);
|
|
std::string guid = this->GetGUID(name);
|
|
|
for(std::vector<std::string>::iterator i = this->Configurations.begin();
|
|
for(std::vector<std::string>::iterator i = this->Configurations.begin();
|
|
|
i != this->Configurations.end(); ++i)
|
|
i != this->Configurations.end(); ++i)
|
|
|
{
|
|
{
|
|
|
fout << "\t\t{" << guid << "}." << *i
|
|
fout << "\t\t{" << guid << "}." << *i
|
|
|
- << ".ActiveCfg = " << *i << "|Win32\n";
|
|
|
|
|
|
|
+ << ".ActiveCfg = " << *i << "|"
|
|
|
|
|
+ << (platformMapping ? platformMapping : "Win32") << "\n";
|
|
|
if(partOfDefaultBuild)
|
|
if(partOfDefaultBuild)
|
|
|
{
|
|
{
|
|
|
fout << "\t\t{" << guid << "}." << *i
|
|
fout << "\t\t{" << guid << "}." << *i
|
|
|
- << ".Build.0 = " << *i << "|Win32\n";
|
|
|
|
|
|
|
+ << ".Build.0 = " << *i << "|"
|
|
|
|
|
+ << (platformMapping ? platformMapping : "Win32") << "\n";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -604,10 +611,14 @@ void cmGlobalVisualStudio7Generator
|
|
|
void cmGlobalVisualStudio7Generator::WriteExternalProject(std::ostream& fout,
|
|
void cmGlobalVisualStudio7Generator::WriteExternalProject(std::ostream& fout,
|
|
|
const char* name,
|
|
const char* name,
|
|
|
const char* location,
|
|
const char* location,
|
|
|
|
|
+ const char* typeGuid,
|
|
|
const std::set<cmStdString>&)
|
|
const std::set<cmStdString>&)
|
|
|
{
|
|
{
|
|
|
std::string d = cmSystemTools::ConvertToOutputPath(location);
|
|
std::string d = cmSystemTools::ConvertToOutputPath(location);
|
|
|
- fout << "Project(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \""
|
|
|
|
|
|
|
+ fout << "Project("
|
|
|
|
|
+ << "\"{"
|
|
|
|
|
+ << (typeGuid ? typeGuid : "8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942")
|
|
|
|
|
+ << "}\") = \""
|
|
|
<< name << "\", \""
|
|
<< name << "\", \""
|
|
|
<< this->ConvertToSolutionPath(location) << "\", \"{"
|
|
<< this->ConvertToSolutionPath(location) << "\", \"{"
|
|
|
<< this->GetGUID(name)
|
|
<< this->GetGUID(name)
|