diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-10-03 19:14:32 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-10-03 19:14:32 (GMT) |
commit | 599114fc706c005c853e2bbfd6b9ec0f49b2ce57 (patch) | |
tree | 1678582a95fa4f9009eb7b6d80fb2d5e5affeec7 /Source/cmLocalCodeWarriorGenerator.h | |
parent | 9f5cf38290758d854aaf965f726a84bdf04eb814 (diff) | |
download | CMake-599114fc706c005c853e2bbfd6b9ec0f49b2ce57.zip CMake-599114fc706c005c853e2bbfd6b9ec0f49b2ce57.tar.gz CMake-599114fc706c005c853e2bbfd6b9ec0f49b2ce57.tar.bz2 |
under development
Diffstat (limited to 'Source/cmLocalCodeWarriorGenerator.h')
-rw-r--r-- | Source/cmLocalCodeWarriorGenerator.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/Source/cmLocalCodeWarriorGenerator.h b/Source/cmLocalCodeWarriorGenerator.h new file mode 100644 index 0000000..5987fb8 --- /dev/null +++ b/Source/cmLocalCodeWarriorGenerator.h @@ -0,0 +1,69 @@ +/*========================================================================= + + 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 cmLocalCodeWarriorGenerator_h +#define cmLocalCodeWarriorGenerator_h + +#include "cmLocalGenerator.h" + +class cmMakeDepend; +class cmTarget; +class cmSourceFile; + +// please remove me.... Yuck +#include "cmSourceGroup.h" + +/** \class cmLocalCodeWarriorGenerator + * \brief Write a LocalUnix makefiles. + * + * cmLocalCodeWarriorGenerator produces a LocalUnix makefile from its + * member m_Makefile. + */ +class cmLocalCodeWarriorGenerator : public cmLocalGenerator +{ +public: + ///! Set cache only and recurse to false by default. + cmLocalCodeWarriorGenerator(); + + virtual ~cmLocalCodeWarriorGenerator(); + + /** + * Generate the makefile for this directory. fromTheTop indicates if this + * is being invoked as part of a global Generate or specific to this + * directory. The difference is that when done from the Top we might skip + * some steps to save time, such as dependency generation for the + * makefiles. This is done by a direct invocation from make. + */ + virtual void Generate(bool fromTheTop); + + 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); + + void WriteTargets(std::ostream& fout); + +private: + void WriteTarget(std::ostream& fout, const char *name, cmTarget const *l); + void WriteSettingList(std::ostream& fout, const char *name, + cmTarget const *l); + void WriteFileList(std::ostream& fout, const char *name, cmTarget const *l); +}; + +#endif + |