cmGlobalMSYSMakefileGenerator.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmGlobalMSYSMakefileGenerator_h
  4. #define cmGlobalMSYSMakefileGenerator_h
  5. #include "cmGlobalUnixMakefileGenerator3.h"
  6. /** \class cmGlobalMSYSMakefileGenerator
  7. * \brief Write a NMake makefiles.
  8. *
  9. * cmGlobalMSYSMakefileGenerator manages nmake build process for a tree
  10. */
  11. class cmGlobalMSYSMakefileGenerator : public cmGlobalUnixMakefileGenerator3
  12. {
  13. public:
  14. cmGlobalMSYSMakefileGenerator(cmake* cm);
  15. static cmGlobalGeneratorFactory* NewFactory()
  16. {
  17. return new cmGlobalGeneratorSimpleFactory<cmGlobalMSYSMakefileGenerator>();
  18. }
  19. ///! Get the name for the generator.
  20. virtual std::string GetName() const
  21. {
  22. return cmGlobalMSYSMakefileGenerator::GetActualName();
  23. }
  24. static std::string GetActualName() { return "MSYS Makefiles"; }
  25. /** Get the documentation entry for this generator. */
  26. static void GetDocumentation(cmDocumentationEntry& entry);
  27. /**
  28. * Try to determine system information such as shared library
  29. * extension, pthreads, byte order etc.
  30. */
  31. virtual void EnableLanguage(std::vector<std::string> const& languages,
  32. cmMakefile*, bool optional);
  33. private:
  34. std::string FindMinGW(std::string const& makeloc);
  35. };
  36. #endif