cmExternalMakefileProjectGenerator.cxx 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 <utility>
  5. class cmMakefile;
  6. void cmExternalMakefileProjectGenerator::EnableLanguage(
  7. std::vector<std::string> const& /*unused*/, cmMakefile* /*unused*/,
  8. bool /*unused*/)
  9. {
  10. }
  11. std::string cmExternalMakefileProjectGenerator::CreateFullGeneratorName(
  12. const std::string& globalGenerator, const std::string& extraGenerator)
  13. {
  14. std::string fullName;
  15. if (!globalGenerator.empty()) {
  16. if (!extraGenerator.empty()) {
  17. fullName = extraGenerator;
  18. fullName += " - ";
  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()
  38. {
  39. }
  40. std::string cmExternalMakefileProjectGeneratorFactory::GetName() const
  41. {
  42. return this->Name;
  43. }
  44. std::string cmExternalMakefileProjectGeneratorFactory::GetDocumentation() const
  45. {
  46. return this->Documentation;
  47. }
  48. std::vector<std::string>
  49. cmExternalMakefileProjectGeneratorFactory::GetSupportedGlobalGenerators() const
  50. {
  51. return this->SupportedGlobalGenerators;
  52. }
  53. void cmExternalMakefileProjectGeneratorFactory::AddSupportedGlobalGenerator(
  54. const std::string& base)
  55. {
  56. this->SupportedGlobalGenerators.push_back(base);
  57. }