cmLocalCodeWarriorGenerator.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*=========================================================================
  2. Program: Insight Segmentation & Registration Toolkit
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Insight Consortium. All rights reserved.
  8. See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #ifndef cmLocalCodeWarriorGenerator_h
  14. #define cmLocalCodeWarriorGenerator_h
  15. #include "cmLocalGenerator.h"
  16. class cmMakeDepend;
  17. class cmTarget;
  18. class cmSourceFile;
  19. // please remove me.... Yuck
  20. #include "cmSourceGroup.h"
  21. /** \class cmLocalCodeWarriorGenerator
  22. * \brief Write a LocalUnix makefiles.
  23. *
  24. * cmLocalCodeWarriorGenerator produces a LocalUnix makefile from its
  25. * member m_Makefile.
  26. */
  27. class cmLocalCodeWarriorGenerator : public cmLocalGenerator
  28. {
  29. public:
  30. ///! Set cache only and recurse to false by default.
  31. cmLocalCodeWarriorGenerator();
  32. virtual ~cmLocalCodeWarriorGenerator();
  33. /**
  34. * Generate the makefile for this directory. fromTheTop indicates if this
  35. * is being invoked as part of a global Generate or specific to this
  36. * directory. The difference is that when done from the Top we might skip
  37. * some steps to save time, such as dependency generation for the
  38. * makefiles. This is done by a direct invocation from make.
  39. */
  40. virtual void Generate(bool fromTheTop);
  41. enum BuildType {STATIC_LIBRARY, DLL, EXECUTABLE, WIN32_EXECUTABLE, UTILITY};
  42. /**
  43. * Specify the type of the build: static, dll, or executable.
  44. */
  45. void SetBuildType(BuildType,const char *name);
  46. void WriteTargets(std::ostream& fout);
  47. private:
  48. void WriteTarget(std::ostream& fout, const char *name, cmTarget const *l);
  49. void WriteSettingList(std::ostream& fout, const char *name,
  50. cmTarget const *l);
  51. void WriteFileList(std::ostream& fout, const char *name, cmTarget const *l);
  52. };
  53. #endif