cmGlobalMSYSMakefileGenerator.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmGlobalMSYSMakefileGenerator_h
  11. #define cmGlobalMSYSMakefileGenerator_h
  12. #include "cmGlobalUnixMakefileGenerator3.h"
  13. /** \class cmGlobalMSYSMakefileGenerator
  14. * \brief Write a NMake makefiles.
  15. *
  16. * cmGlobalMSYSMakefileGenerator manages nmake build process for a tree
  17. */
  18. class cmGlobalMSYSMakefileGenerator : public cmGlobalUnixMakefileGenerator3
  19. {
  20. public:
  21. cmGlobalMSYSMakefileGenerator();
  22. static cmGlobalGenerator* New() {
  23. return new cmGlobalMSYSMakefileGenerator; }
  24. ///! Get the name for the generator.
  25. virtual const char* GetName() const {
  26. return cmGlobalMSYSMakefileGenerator::GetActualName();}
  27. static const char* GetActualName() {return "MSYS Makefiles";}
  28. /** Get the documentation entry for this generator. */
  29. virtual void GetDocumentation(cmDocumentationEntry& entry) const;
  30. ///! Create a local generator appropriate to this Global Generator
  31. virtual cmLocalGenerator *CreateLocalGenerator();
  32. /**
  33. * Try to determine system infomation such as shared library
  34. * extension, pthreads, byte order etc.
  35. */
  36. virtual void EnableLanguage(std::vector<std::string>const& languages,
  37. cmMakefile *, bool optional);
  38. private:
  39. std::string FindMinGW(std::string const& makeloc);
  40. };
  41. #endif