2016-09-27 15:01:08 -04:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2007-06-08 11:57:16 -04:00
|
|
|
#include "cmExternalMakefileProjectGenerator.h"
|
|
|
|
|
2016-09-01 20:59:28 +02:00
|
|
|
class cmMakefile;
|
2016-04-29 09:40:20 -04:00
|
|
|
|
2016-05-16 10:34:04 -04:00
|
|
|
void cmExternalMakefileProjectGenerator::EnableLanguage(
|
2016-08-17 01:49:57 +02:00
|
|
|
std::vector<std::string> const& /*unused*/, cmMakefile* /*unused*/,
|
|
|
|
bool /*unused*/)
|
2013-08-29 14:43:54 -04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2007-06-08 11:57:16 -04:00
|
|
|
std::string cmExternalMakefileProjectGenerator::CreateFullGeneratorName(
|
2016-05-16 10:34:04 -04:00
|
|
|
const std::string& globalGenerator, const std::string& extraGenerator)
|
2007-06-08 11:57:16 -04:00
|
|
|
{
|
|
|
|
std::string fullName;
|
2016-05-16 10:34:04 -04:00
|
|
|
if (!globalGenerator.empty()) {
|
|
|
|
if (!extraGenerator.empty()) {
|
2007-07-03 16:10:50 -04:00
|
|
|
fullName = extraGenerator;
|
2007-06-08 11:57:16 -04:00
|
|
|
fullName += " - ";
|
|
|
|
}
|
2016-05-16 10:34:04 -04:00
|
|
|
fullName += globalGenerator;
|
|
|
|
}
|
2007-06-08 11:57:16 -04:00
|
|
|
return fullName;
|
|
|
|
}
|
|
|
|
|
2016-07-20 18:28:39 +02:00
|
|
|
cmExternalMakefileProjectGeneratorFactory::
|
|
|
|
cmExternalMakefileProjectGeneratorFactory(const std::string& n,
|
|
|
|
const std::string& doc)
|
|
|
|
: Name(n)
|
|
|
|
, Documentation(doc)
|
2007-06-08 11:57:16 -04:00
|
|
|
{
|
2016-07-20 18:28:39 +02:00
|
|
|
}
|
2007-06-08 11:57:16 -04:00
|
|
|
|
2016-07-20 18:28:39 +02:00
|
|
|
cmExternalMakefileProjectGeneratorFactory::
|
|
|
|
~cmExternalMakefileProjectGeneratorFactory()
|
|
|
|
{
|
|
|
|
}
|
2007-06-08 11:57:16 -04:00
|
|
|
|
2016-07-20 18:28:39 +02:00
|
|
|
std::string cmExternalMakefileProjectGeneratorFactory::GetName() const
|
|
|
|
{
|
|
|
|
return this->Name;
|
|
|
|
}
|
2007-06-08 11:57:16 -04:00
|
|
|
|
2016-07-20 18:28:39 +02: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);
|
2007-06-08 11:57:16 -04:00
|
|
|
}
|