2009-09-28 19:43:28 +04:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
2007-06-08 19:57:16 +04:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
2007-06-08 19:57:16 +04:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the License for more information.
|
|
|
|
============================================================================*/
|
2007-06-08 19:57:16 +04:00
|
|
|
|
|
|
|
#include "cmExternalMakefileProjectGenerator.h"
|
|
|
|
|
2016-09-01 21:59:28 +03:00
|
|
|
class cmMakefile;
|
2016-04-29 16:40:20 +03:00
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
void cmExternalMakefileProjectGenerator::EnableLanguage(
|
2016-08-17 02:49:57 +03:00
|
|
|
std::vector<std::string> const& /*unused*/, cmMakefile* /*unused*/,
|
|
|
|
bool /*unused*/)
|
2013-08-29 22:43:54 +04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2007-06-08 19:57:16 +04:00
|
|
|
std::string cmExternalMakefileProjectGenerator::CreateFullGeneratorName(
|
2016-05-16 17:34:04 +03:00
|
|
|
const std::string& globalGenerator, const std::string& extraGenerator)
|
2007-06-08 19:57:16 +04:00
|
|
|
{
|
|
|
|
std::string fullName;
|
2016-05-16 17:34:04 +03:00
|
|
|
if (!globalGenerator.empty()) {
|
|
|
|
if (!extraGenerator.empty()) {
|
2007-07-04 00:10:50 +04:00
|
|
|
fullName = extraGenerator;
|
2007-06-08 19:57:16 +04:00
|
|
|
fullName += " - ";
|
|
|
|
}
|
2016-05-16 17:34:04 +03:00
|
|
|
fullName += globalGenerator;
|
|
|
|
}
|
2007-06-08 19:57:16 +04:00
|
|
|
return fullName;
|
|
|
|
}
|
|
|
|
|
2016-07-20 19:28:39 +03:00
|
|
|
cmExternalMakefileProjectGeneratorFactory::
|
|
|
|
cmExternalMakefileProjectGeneratorFactory(const std::string& n,
|
|
|
|
const std::string& doc)
|
|
|
|
: Name(n)
|
|
|
|
, Documentation(doc)
|
2007-06-08 19:57:16 +04:00
|
|
|
{
|
2016-07-20 19:28:39 +03:00
|
|
|
}
|
2007-06-08 19:57:16 +04:00
|
|
|
|
2016-07-20 19:28:39 +03:00
|
|
|
cmExternalMakefileProjectGeneratorFactory::
|
|
|
|
~cmExternalMakefileProjectGeneratorFactory()
|
|
|
|
{
|
|
|
|
}
|
2007-06-08 19:57:16 +04:00
|
|
|
|
2016-07-20 19:28:39 +03:00
|
|
|
std::string cmExternalMakefileProjectGeneratorFactory::GetName() const
|
|
|
|
{
|
|
|
|
return this->Name;
|
|
|
|
}
|
2007-06-08 19:57:16 +04:00
|
|
|
|
2016-07-20 19:28:39 +03: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 19:57:16 +04:00
|
|
|
}
|