cmMSProjectGenerator.cxx 570 B

12345678910111213141516171819202122232425262728293031
  1. #include "cmMSProjectGenerator.h"
  2. #include "cmDSWMakefile.h"
  3. #include "cmDSPMakefile.h"
  4. cmMSProjectGenerator::cmMSProjectGenerator()
  5. {
  6. m_DSWMakefile = 0;
  7. m_DSPMakefile = 0;
  8. SetBuildDSW();
  9. }
  10. void cmMSProjectGenerator::GenerateMakefile()
  11. {
  12. if(m_BuildDSW)
  13. {
  14. m_DSWMakefile = new cmDSWMakefile(m_Makefile);
  15. m_DSWMakefile->OutputDSWFile();
  16. }
  17. else
  18. {
  19. m_DSPMakefile = new cmDSPMakefile(m_Makefile);
  20. m_DSPMakefile->OutputDSPFile();
  21. }
  22. }
  23. cmMSProjectGenerator::~cmMSProjectGenerator()
  24. {
  25. delete m_DSPMakefile;
  26. delete m_DSWMakefile;
  27. }