cmExternalMakefileProjectGenerator.cxx 1.67 KB
Newer Older
1 2
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
   file Copyright.txt or https://cmake.org/licensing for details.  */
3 4
#include "cmExternalMakefileProjectGenerator.h"

wahikihiki's avatar
wahikihiki committed
5 6
#include <utility>

7
class cmMakefile;
8

9
void cmExternalMakefileProjectGenerator::EnableLanguage(
10 11
  std::vector<std::string> const& /*unused*/, cmMakefile* /*unused*/,
  bool /*unused*/)
12 13 14
{
}

15
std::string cmExternalMakefileProjectGenerator::CreateFullGeneratorName(
16
  const std::string& globalGenerator, const std::string& extraGenerator)
17 18
{
  std::string fullName;
19 20
  if (!globalGenerator.empty()) {
    if (!extraGenerator.empty()) {
21
      fullName = extraGenerator;
22 23
      fullName += " - ";
    }
24 25
    fullName += globalGenerator;
  }
26 27 28
  return fullName;
}

29 30 31 32 33 34 35
bool cmExternalMakefileProjectGenerator::Open(
  const std::string& /*bindir*/, const std::string& /*projectName*/,
  bool /*dryRun*/)
{
  return false;
}

36
cmExternalMakefileProjectGeneratorFactory::
wahikihiki's avatar
wahikihiki committed
37 38 39
  cmExternalMakefileProjectGeneratorFactory(std::string n, std::string doc)
  : Name(std::move(n))
  , Documentation(std::move(doc))
40
{
41
}
42

43
cmExternalMakefileProjectGeneratorFactory::
wahikihiki's avatar
wahikihiki committed
44
  ~cmExternalMakefileProjectGeneratorFactory() = default;
45

46 47 48 49
std::string cmExternalMakefileProjectGeneratorFactory::GetName() const
{
  return this->Name;
}
50

51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
std::string cmExternalMakefileProjectGeneratorFactory::GetDocumentation() const
{
  return this->Documentation;
}

std::vector<std::string>
cmExternalMakefileProjectGeneratorFactory::GetSupportedGlobalGenerators() const
{
  return this->SupportedGlobalGenerators;
}

void cmExternalMakefileProjectGeneratorFactory::AddSupportedGlobalGenerator(
  const std::string& base)
{
  this->SupportedGlobalGenerators.push_back(base);
66
}