summaryrefslogtreecommitdiffstats
path: root/Source/cmDSPWriter.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-09-12 15:49:10 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-09-12 15:49:10 (GMT)
commitc8c89b653fb49befaa8f0771523b5254ea1a7d7e (patch)
tree74850ae8fb020aa610dfa7fee0b5e10bd96d9d15 /Source/cmDSPWriter.h
parent271e6ec3741e58d319e1c08142802f19bcebb73c (diff)
downloadCMake-c8c89b653fb49befaa8f0771523b5254ea1a7d7e.zip
CMake-c8c89b653fb49befaa8f0771523b5254ea1a7d7e.tar.gz
CMake-c8c89b653fb49befaa8f0771523b5254ea1a7d7e.tar.bz2
new arch
Diffstat (limited to 'Source/cmDSPWriter.h')
-rw-r--r--Source/cmDSPWriter.h97
1 files changed, 0 insertions, 97 deletions
diff --git a/Source/cmDSPWriter.h b/Source/cmDSPWriter.h
deleted file mode 100644
index 3e7f535..0000000
--- a/Source/cmDSPWriter.h
+++ /dev/null
@@ -1,97 +0,0 @@
-/*=========================================================================
-
- Program: Insight Segmentation & Registration Toolkit
- Module: $RCSfile$
- Language: C++
- Date: $Date$
- Version: $Revision$
-
- Copyright (c) 2002 Insight Consortium. All rights reserved.
- See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
-
- This software is distributed WITHOUT ANY WARRANTY; without even
- the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- PURPOSE. See the above copyright notices for more information.
-
-=========================================================================*/
-#ifndef cmDSPWriter_h
-#define cmDSPWriter_h
-
-#include "cmStandardIncludes.h"
-#include "cmMakefile.h"
-
-/** \class cmDSPWriter
- * \brief Generate a Microsoft DSP project file.
- *
- * cmDSPWriter generates a Microsoft DSP project file.
- * See the *.dsptemplate files for information on the templates
- * used for making the project files.
- */
-class cmDSPWriter
-{
-public:
- cmDSPWriter(cmMakefile*);
- ~cmDSPWriter();
- void OutputDSPFile();
- enum BuildType {STATIC_LIBRARY, DLL, EXECUTABLE, WIN32_EXECUTABLE, UTILITY};
-
- /**
- * Specify the type of the build: static, dll, or executable.
- */
- void SetBuildType(BuildType,const char *name);
-
- /**
- * Return array of created DSP names in a STL vector.
- * Each executable must have its own dsp.
- */
- std::vector<std::string> GetCreatedProjectNames()
- {
- return m_CreatedProjectNames;
- }
-
- /**
- * Return the makefile.
- */
- cmMakefile* GetMakefile()
- {
- return m_Makefile;
- }
-
-private:
- std::string m_DSPHeaderTemplate;
- std::string m_DSPFooterTemplate;
- std::vector<std::string> m_CreatedProjectNames;
-
- void CreateSingleDSP(const char *lname, cmTarget &tgt);
- void WriteDSPFile(std::ostream& fout, const char *libName,
- cmTarget &tgt);
- void WriteDSPBeginGroup(std::ostream& fout,
- const char* group,
- const char* filter);
- void WriteDSPEndGroup(std::ostream& fout);
-
- void WriteDSPHeader(std::ostream& fout, const char *libName,
- const cmTarget &tgt, std::vector<cmSourceGroup> &sgs);
-
- void WriteDSPFooter(std::ostream& fout);
- void AddDSPBuildRule(cmSourceGroup&);
- void WriteCustomRule(std::ostream& fout,
- const char* source,
- const char* command,
- const std::set<std::string>& depends,
- const std::set<std::string>& outputs,
- const char* flags);
-
- std::string CreateTargetRules(const cmTarget &target,
- const char *libName);
- std::string CombineCommands(const cmSourceGroup::Commands &commands,
- cmSourceGroup::CommandFiles &totalCommand,
- const char *source);
-
-
- std::string m_IncludeOptions;
- cmMakefile* m_Makefile;
- std::vector<std::string> m_Configurations;
-};
-
-#endif