summaryrefslogtreecommitdiffstats
path: root/Source/cmMSProjectGenerator.cxx
blob: f029035ca35bc21addfd0aff9c5133cdcab356c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "cmMSProjectGenerator.h"
#include "cmDSWMakefile.h"
#include "cmDSPMakefile.h"

cmMSProjectGenerator::cmMSProjectGenerator()
{
  m_DSWMakefile = 0;
  m_DSPMakefile = 0;
  SetBuildDSW();
}

void cmMSProjectGenerator::GenerateMakefile()
{
  if(m_BuildDSW)
    {
    m_DSWMakefile = new cmDSWMakefile(m_Makefile);
    m_DSWMakefile->OutputDSWFile();
    }
  else
    {
    m_DSPMakefile = new cmDSPMakefile(m_Makefile);
    m_DSPMakefile->OutputDSPFile();
    }
}

cmMSProjectGenerator::~cmMSProjectGenerator()
{
  delete m_DSPMakefile;
  delete m_DSWMakefile;
}