mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
simplify MSVCBackend::Process code
svn path=/trunk/; revision=18637
This commit is contained in:
parent
7aa02a3b89
commit
ffbb6a9873
1 changed files with 8 additions and 27 deletions
|
@ -54,39 +54,20 @@ MSVCBackend::MSVCBackend(Project &project,
|
||||||
void MSVCBackend::Process()
|
void MSVCBackend::Process()
|
||||||
{
|
{
|
||||||
|
|
||||||
string filename_dsw = ProjectNode.name + ".dsw";
|
|
||||||
string filename_sln = ProjectNode.name + ".sln";
|
string filename_sln = ProjectNode.name + ".sln";
|
||||||
|
printf ( "Creating MSVC workspace: %s\n", filename_sln.c_str() );
|
||||||
if (configuration.VSProjectVersion == "6.00")
|
|
||||||
printf ( "Creating MSVC workspace: %s\n", filename_dsw.c_str() );
|
|
||||||
else
|
|
||||||
printf ( "Creating MSVC workspace: %s\n", filename_sln.c_str() );
|
|
||||||
|
|
||||||
ProcessModules();
|
ProcessModules();
|
||||||
|
m_slnFile = fopen ( filename_sln.c_str(), "wb" );
|
||||||
|
|
||||||
if (configuration.VSProjectVersion == "6.00") {
|
if ( !m_slnFile )
|
||||||
m_dswFile = fopen ( filename_dsw.c_str(), "wb" );
|
{
|
||||||
|
printf ( "Could not create file '%s'.\n", filename_sln.c_str() );
|
||||||
if ( !m_dswFile )
|
return;
|
||||||
{
|
|
||||||
printf ( "Could not create file '%s'.\n", filename_dsw.c_str() );
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
_generate_wine_dsw ( m_dswFile );
|
|
||||||
fclose ( m_dswFile );
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
m_slnFile = fopen ( filename_sln.c_str(), "wb" );
|
|
||||||
|
|
||||||
if ( !m_slnFile )
|
|
||||||
{
|
|
||||||
printf ( "Could not create file '%s'.\n", filename_sln.c_str() );
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
_generate_sln ( m_slnFile );
|
|
||||||
fclose ( m_slnFile );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_generate_sln ( m_slnFile );
|
||||||
|
fclose ( m_slnFile );
|
||||||
printf ( "Done.\n" );
|
printf ( "Done.\n" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue