cmake/Source/cmExternalMakefileProjectGenerator.cxx

61 lines
1.5 KiB
C++
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmExternalMakefileProjectGenerator.h"
2016-10-30 18:24:19 +01:00
class cmMakefile;
2016-07-09 11:21:54 +02:00
void cmExternalMakefileProjectGenerator::EnableLanguage(
2016-10-30 18:24:19 +01:00
std::vector<std::string> const& /*unused*/, cmMakefile* /*unused*/,
bool /*unused*/)
2014-08-03 19:52:23 +02:00
{
}
std::string cmExternalMakefileProjectGenerator::CreateFullGeneratorName(
2016-07-09 11:21:54 +02:00
const std::string& globalGenerator, const std::string& extraGenerator)
{
std::string fullName;
2016-07-09 11:21:54 +02:00
if (!globalGenerator.empty()) {
if (!extraGenerator.empty()) {
fullName = extraGenerator;
fullName += " - ";
}
2016-07-09 11:21:54 +02:00
fullName += globalGenerator;
}
return fullName;
}
2016-10-30 18:24:19 +01:00
cmExternalMakefileProjectGeneratorFactory::
cmExternalMakefileProjectGeneratorFactory(const std::string& n,
const std::string& doc)
: Name(n)
, Documentation(doc)
{
2016-10-30 18:24:19 +01:00
}
2016-10-30 18:24:19 +01:00
cmExternalMakefileProjectGeneratorFactory::
~cmExternalMakefileProjectGeneratorFactory()
{
}
2016-10-30 18:24:19 +01:00
std::string cmExternalMakefileProjectGeneratorFactory::GetName() const
{
return this->Name;
}
2016-10-30 18:24:19 +01:00
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);
}