2001-01-05 16:41:20 +00:00
|
|
|
/*=========================================================================
|
|
|
|
|
|
|
|
Program: Insight Segmentation & Registration Toolkit
|
|
|
|
Module: $RCSfile$
|
|
|
|
Language: C++
|
|
|
|
Date: $Date$
|
|
|
|
Version: $Revision$
|
|
|
|
|
|
|
|
|
|
|
|
Copyright (c) 2000 National Library of Medicine
|
|
|
|
All rights reserved.
|
|
|
|
|
|
|
|
See COPYRIGHT.txt for copyright details.
|
|
|
|
|
|
|
|
=========================================================================*/
|
|
|
|
#ifndef cmMSProjectGenerator_h
|
|
|
|
#define cmMSProjectGenerator_h
|
2001-01-11 19:47:38 +00:00
|
|
|
|
2001-01-05 16:41:20 +00:00
|
|
|
#include "cmStandardIncludes.h"
|
|
|
|
#include "cmMakefileGenerator.h"
|
|
|
|
|
|
|
|
class cmDSPMakefile;
|
|
|
|
class cmDSWMakefile;
|
|
|
|
|
2001-01-11 19:47:38 +00:00
|
|
|
/** \class cmMSProjectGenerator
|
|
|
|
* \brief Write a Microsoft Visual C++ DSP (project) file.
|
|
|
|
*
|
|
|
|
* cmMSProjectGenerator produces a Microsoft Visual C++ DSP (project) file.
|
|
|
|
*/
|
2001-01-05 16:41:20 +00:00
|
|
|
class cmMSProjectGenerator : public cmMakefileGenerator
|
|
|
|
{
|
|
|
|
public:
|
2001-01-11 19:47:38 +00:00
|
|
|
/**
|
|
|
|
* Constructor sets the generation of DSW files on.
|
|
|
|
*/
|
2001-01-05 16:41:20 +00:00
|
|
|
cmMSProjectGenerator();
|
2001-01-11 19:47:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Destructor.
|
|
|
|
*/
|
2001-01-05 16:41:20 +00:00
|
|
|
~cmMSProjectGenerator();
|
2001-01-11 19:47:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Produce the makefile (in this case a Microsoft Visual C++ project).
|
|
|
|
*/
|
2001-01-05 16:41:20 +00:00
|
|
|
virtual void GenerateMakefile();
|
2001-01-11 19:47:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Turn off the generation of a Microsoft Visual C++ DSP file.
|
|
|
|
*/
|
|
|
|
void BuildDSPOff()
|
|
|
|
{m_BuildDSW = false;}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Turn on the generation of a Microsoft Visual C++ DSW file.
|
|
|
|
*/
|
|
|
|
void BuildDSWOn()
|
|
|
|
{m_BuildDSW = true;}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Retrieve a pointer to a cmDSWMakefile instance.
|
|
|
|
*/
|
|
|
|
cmDSWMakefile* GetDSWMakefile()
|
|
|
|
{return m_DSWMakefile;}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Retrieve a pointer to a cmDSPMakefile instance.
|
|
|
|
*/
|
|
|
|
cmDSPMakefile* GetDSPMakefile()
|
|
|
|
{return m_DSPMakefile;}
|
|
|
|
|
2001-01-05 16:41:20 +00:00
|
|
|
private:
|
|
|
|
cmDSWMakefile* m_DSWMakefile;
|
|
|
|
cmDSPMakefile* m_DSPMakefile;
|
|
|
|
bool m_BuildDSW;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|