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. */
|
2008-10-12 18:41:06 +02:00
|
|
|
#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
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2008-10-12 18:41:06 +02:00
|
|
|
std::string cmExternalMakefileProjectGenerator::CreateFullGeneratorName(
|
2016-07-09 11:21:54 +02:00
|
|
|
const std::string& globalGenerator, const std::string& extraGenerator)
|
2008-10-12 18:41:06 +02:00
|
|
|
{
|
2023-07-02 19:51:09 +02:00
|
|
|
if (globalGenerator.empty()) {
|
|
|
|
return {};
|
2016-07-09 11:21:54 +02:00
|
|
|
}
|
2023-07-02 19:51:09 +02:00
|
|
|
if (extraGenerator.empty()) {
|
|
|
|
return globalGenerator;
|
|
|
|
}
|
|
|
|
return cmStrCat(extraGenerator, " - ", globalGenerator);
|
2008-10-12 18:41:06 +02:00
|
|
|
}
|
|
|
|
|
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))
|
2008-10-12 18:41:06 +02:00
|
|
|
{
|
2016-10-30 18:24:19 +01:00
|
|
|
}
|
2008-10-12 18:41:06 +02:00
|
|
|
|
2016-10-30 18:24:19 +01:00
|
|
|
cmExternalMakefileProjectGeneratorFactory::
|
2019-11-11 23:01:05 +01:00
|
|
|
~cmExternalMakefileProjectGeneratorFactory() = default;
|
2008-10-12 18:41:06 +02:00
|
|
|
|
2016-10-30 18:24:19 +01:00
|
|
|
std::string cmExternalMakefileProjectGeneratorFactory::GetName() const
|
|
|
|
{
|
|
|
|
return this->Name;
|
|
|
|
}
|
2008-10-12 18:41:06 +02:00
|
|
|
|
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);
|
2008-10-12 18:41:06 +02:00
|
|
|
}
|