cmGlobalBorlandMakefileGenerator.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 cmGlobalBorlandMakefileGenerator_h
  4. #define cmGlobalBorlandMakefileGenerator_h
  5. #include <iosfwd>
  6. #include <memory>
  7. #include "cmGlobalNMakeMakefileGenerator.h"
  8. /** \class cmGlobalBorlandMakefileGenerator
  9. * \brief Write a Borland makefiles.
  10. *
  11. * cmGlobalBorlandMakefileGenerator manages nmake build process for a tree
  12. */
  13. class cmGlobalBorlandMakefileGenerator : public cmGlobalUnixMakefileGenerator3
  14. {
  15. public:
  16. cmGlobalBorlandMakefileGenerator(cmake* cm);
  17. static std::unique_ptr<cmGlobalGeneratorFactory> NewFactory()
  18. {
  19. return std::unique_ptr<cmGlobalGeneratorFactory>(
  20. new cmGlobalGeneratorSimpleFactory<cmGlobalBorlandMakefileGenerator>());
  21. }
  22. //! Get the name for the generator.
  23. std::string GetName() const override
  24. {
  25. return cmGlobalBorlandMakefileGenerator::GetActualName();
  26. }
  27. static std::string GetActualName() { return "Borland Makefiles"; }
  28. /** Get the documentation entry for this generator. */
  29. static void GetDocumentation(cmDocumentationEntry& entry);
  30. //! Create a local generator appropriate to this Global Generator
  31. std::unique_ptr<cmLocalGenerator> CreateLocalGenerator(
  32. cmMakefile* mf) override;
  33. /**
  34. * Try to determine system information such as shared library
  35. * extension, pthreads, byte order etc.
  36. */
  37. void EnableLanguage(std::vector<std::string> const& languages, cmMakefile*,
  38. bool optional) override;
  39. bool AllowNotParallel() const override { return false; }
  40. bool AllowDeleteOnError() const override { return false; }
  41. bool CanEscapeOctothorpe() const override { return true; }
  42. protected:
  43. std::vector<GeneratedMakeCommand> GenerateBuildCommand(
  44. const std::string& makeProgram, const std::string& projectName,
  45. const std::string& projectDir, std::vector<std::string> const& targetNames,
  46. const std::string& config, bool fast, int jobs, bool verbose,
  47. std::vector<std::string> const& makeOptions =
  48. std::vector<std::string>()) override;
  49. void PrintBuildCommandAdvice(std::ostream& os, int jobs) const override;
  50. };
  51. #endif