cmExternalMakefileProjectGenerator.cxx 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #include "cmExternalMakefileProjectGenerator.h"
  4. #include "cmStringAlgorithms.h"
  5. #include <utility>
  6. class cmMakefile;
  7. void cmExternalMakefileProjectGenerator::EnableLanguage(
  8. std::vector<std::string> const& /*unused*/, cmMakefile* /*unused*/,
  9. bool /*unused*/)
  10. {
  11. }
  12. std::string cmExternalMakefileProjectGenerator::CreateFullGeneratorName(
  13. const std::string& globalGenerator, const std::string& extraGenerator)
  14. {
  15. std::string fullName;
  16. if (!globalGenerator.empty()) {
  17. if (!extraGenerator.empty()) {
  18. fullName = cmStrCat(extraGenerator, " - ");
  19. }
  20. fullName += globalGenerator;
  21. }
  22. return fullName;
  23. }
  24. bool cmExternalMakefileProjectGenerator::Open(
  25. const std::string& /*bindir*/, const std::string& /*projectName*/,
  26. bool /*dryRun*/)
  27. {
  28. return false;
  29. }
  30. cmExternalMakefileProjectGeneratorFactory::
  31. cmExternalMakefileProjectGeneratorFactory(std::string n, std::string doc)
  32. : Name(std::move(n))
  33. , Documentation(std::move(doc))
  34. {
  35. }
  36. cmExternalMakefileProjectGeneratorFactory::
  37. ~cmExternalMakefileProjectGeneratorFactory() = default;
  38. std::string cmExternalMakefileProjectGeneratorFactory::GetName() const
  39. {
  40. return this->Name;
  41. }
  42. std::string cmExternalMakefileProjectGeneratorFactory::GetDocumentation() const
  43. {
  44. return this->Documentation;
  45. }
  46. std::vector<std::string>
  47. cmExternalMakefileProjectGeneratorFactory::GetSupportedGlobalGenerators() const
  48. {
  49. return this->SupportedGlobalGenerators;
  50. }
  51. void cmExternalMakefileProjectGeneratorFactory::AddSupportedGlobalGenerator(
  52. const std::string& base)
  53. {
  54. this->SupportedGlobalGenerators.push_back(base);
  55. }