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. class cmMakefile;
  5. void cmExternalMakefileProjectGenerator::EnableLanguage(
  6. std::vector<std::string> const& /*unused*/, cmMakefile* /*unused*/,
  7. bool /*unused*/)
  8. {
  9. }
  10. std::string cmExternalMakefileProjectGenerator::CreateFullGeneratorName(
  11. const std::string& globalGenerator, const std::string& extraGenerator)
  12. {
  13. std::string fullName;
  14. if (!globalGenerator.empty()) {
  15. if (!extraGenerator.empty()) {
  16. fullName = extraGenerator;
  17. fullName += " - ";
  18. }
  19. fullName += globalGenerator;
  20. }
  21. return fullName;
  22. }
  23. bool cmExternalMakefileProjectGenerator::Open(
  24. const std::string& /*bindir*/, const std::string& /*projectName*/,
  25. bool /*dryRun*/)
  26. {
  27. return false;
  28. }
  29. cmExternalMakefileProjectGeneratorFactory::
  30. cmExternalMakefileProjectGeneratorFactory(const std::string& n,
  31. const std::string& doc)
  32. : Name(n)
  33. , Documentation(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. }