cmake/Source/cmExternalMakefileProjectGenerator.cxx

68 lines
1.7 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"
2019-11-11 23:01:05 +01:00
#include <utility>
2020-02-01 23:06:01 +01:00
#include "cmStringAlgorithms.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()) {
2020-02-01 23:06:01 +01:00
fullName = cmStrCat(extraGenerator, " - ");
}
2016-07-09 11:21:54 +02:00
fullName += globalGenerator;
}
return fullName;
}
2018-04-23 21:13:27 +02:00
bool cmExternalMakefileProjectGenerator::Open(
const std::string& /*bindir*/, const std::string& /*projectName*/,
bool /*dryRun*/)
{
return false;
}
2016-10-30 18:24:19 +01:00
cmExternalMakefileProjectGeneratorFactory::
2019-11-11 23:01:05 +01:00
cmExternalMakefileProjectGeneratorFactory(std::string n, std::string doc)
: Name(std::move(n))
, Documentation(std::move(doc))
{
2016-10-30 18:24:19 +01:00
}
2016-10-30 18:24:19 +01:00
cmExternalMakefileProjectGeneratorFactory::
2019-11-11 23:01:05 +01:00
~cmExternalMakefileProjectGeneratorFactory() = default;
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);
}