cmExternalMakefileProjectGenerator.cxx 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #include "cmExternalMakefileProjectGenerator.h"
  11. #include <assert.h>
  12. void cmExternalMakefileProjectGenerator::EnableLanguage(
  13. std::vector<std::string> const& /*unused*/, cmMakefile* /*unused*/,
  14. bool /*unused*/)
  15. {
  16. }
  17. std::string cmExternalMakefileProjectGenerator::CreateFullGeneratorName(
  18. const std::string& globalGenerator, const std::string& extraGenerator)
  19. {
  20. std::string fullName;
  21. if (!globalGenerator.empty()) {
  22. if (!extraGenerator.empty()) {
  23. fullName = extraGenerator;
  24. fullName += " - ";
  25. }
  26. fullName += globalGenerator;
  27. }
  28. return fullName;
  29. }
  30. cmExternalMakefileProjectGeneratorFactory::
  31. cmExternalMakefileProjectGeneratorFactory(const std::string& n,
  32. const std::string& doc)
  33. : Name(n)
  34. , Documentation(doc)
  35. {
  36. }
  37. cmExternalMakefileProjectGeneratorFactory::
  38. ~cmExternalMakefileProjectGeneratorFactory()
  39. {
  40. }
  41. std::string cmExternalMakefileProjectGeneratorFactory::GetName() const
  42. {
  43. return this->Name;
  44. }
  45. std::string cmExternalMakefileProjectGeneratorFactory::GetDocumentation() const
  46. {
  47. return this->Documentation;
  48. }
  49. std::vector<std::string>
  50. cmExternalMakefileProjectGeneratorFactory::GetSupportedGlobalGenerators() const
  51. {
  52. return this->SupportedGlobalGenerators;
  53. }
  54. void cmExternalMakefileProjectGeneratorFactory::AddSupportedGlobalGenerator(
  55. const std::string& base)
  56. {
  57. this->SupportedGlobalGenerators.push_back(base);
  58. }