cmLocalGenerator: Require a global generator in the constructor.
Port generator factory methods to pass it.
This commit is contained in:
parent
3837c48334
commit
34c9ee2ed7
|
@ -41,13 +41,12 @@ cmLocalGenerator *cmGlobalBorlandMakefileGenerator::CreateLocalGenerator(
|
||||||
cmLocalGenerator* parent)
|
cmLocalGenerator* parent)
|
||||||
{
|
{
|
||||||
cmLocalUnixMakefileGenerator3* lg =
|
cmLocalUnixMakefileGenerator3* lg =
|
||||||
new cmLocalUnixMakefileGenerator3(parent);
|
new cmLocalUnixMakefileGenerator3(this, parent);
|
||||||
lg->SetIncludeDirective("!include");
|
lg->SetIncludeDirective("!include");
|
||||||
lg->SetWindowsShell(true);
|
lg->SetWindowsShell(true);
|
||||||
lg->SetDefineWindowsNULL(true);
|
lg->SetDefineWindowsNULL(true);
|
||||||
lg->SetMakefileVariableSize(32);
|
lg->SetMakefileVariableSize(32);
|
||||||
lg->SetPassMakeflags(true);
|
lg->SetPassMakeflags(true);
|
||||||
lg->SetGlobalGenerator(this);
|
|
||||||
lg->SetUnixCD(false);
|
lg->SetUnixCD(false);
|
||||||
lg->SetMakeCommandEscapeTargetTwice(true);
|
lg->SetMakeCommandEscapeTargetTwice(true);
|
||||||
lg->SetBorlandMakeCurlyHack(true);
|
lg->SetBorlandMakeCurlyHack(true);
|
||||||
|
|
|
@ -1877,9 +1877,7 @@ void cmGlobalGenerator::EnableInstallTarget()
|
||||||
cmLocalGenerator *
|
cmLocalGenerator *
|
||||||
cmGlobalGenerator::CreateLocalGenerator(cmLocalGenerator *parent)
|
cmGlobalGenerator::CreateLocalGenerator(cmLocalGenerator *parent)
|
||||||
{
|
{
|
||||||
cmLocalGenerator *lg = new cmLocalGenerator(parent);
|
return new cmLocalGenerator(this, parent);
|
||||||
lg->SetGlobalGenerator(this);
|
|
||||||
return lg;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmGlobalGenerator::EnableLanguagesFromGenerator(cmGlobalGenerator *gen,
|
void cmGlobalGenerator::EnableLanguagesFromGenerator(cmGlobalGenerator *gen,
|
||||||
|
|
|
@ -35,8 +35,7 @@ cmGlobalGhsMultiGenerator::~cmGlobalGhsMultiGenerator()
|
||||||
cmLocalGenerator *
|
cmLocalGenerator *
|
||||||
cmGlobalGhsMultiGenerator::CreateLocalGenerator(cmLocalGenerator* parent)
|
cmGlobalGhsMultiGenerator::CreateLocalGenerator(cmLocalGenerator* parent)
|
||||||
{
|
{
|
||||||
cmLocalGenerator *lg = new cmLocalGhsMultiGenerator(parent);
|
cmLocalGenerator *lg = new cmLocalGhsMultiGenerator(this, parent);
|
||||||
lg->SetGlobalGenerator(this);
|
|
||||||
this->SetCurrentLocalGenerator(lg);
|
this->SetCurrentLocalGenerator(lg);
|
||||||
return lg;
|
return lg;
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,11 +49,10 @@ cmLocalGenerator *
|
||||||
cmGlobalJOMMakefileGenerator::CreateLocalGenerator(cmLocalGenerator* parent)
|
cmGlobalJOMMakefileGenerator::CreateLocalGenerator(cmLocalGenerator* parent)
|
||||||
{
|
{
|
||||||
cmLocalUnixMakefileGenerator3* lg
|
cmLocalUnixMakefileGenerator3* lg
|
||||||
= new cmLocalUnixMakefileGenerator3(parent);
|
= new cmLocalUnixMakefileGenerator3(this, parent);
|
||||||
lg->SetDefineWindowsNULL(true);
|
lg->SetDefineWindowsNULL(true);
|
||||||
lg->SetWindowsShell(true);
|
lg->SetWindowsShell(true);
|
||||||
lg->SetMakeSilentFlag("/nologo");
|
lg->SetMakeSilentFlag("/nologo");
|
||||||
lg->SetGlobalGenerator(this);
|
|
||||||
lg->SetIgnoreLibPrefix(true);
|
lg->SetIgnoreLibPrefix(true);
|
||||||
lg->SetPassMakeflags(true);
|
lg->SetPassMakeflags(true);
|
||||||
lg->SetNMake(true);
|
lg->SetNMake(true);
|
||||||
|
|
|
@ -97,10 +97,9 @@ cmLocalGenerator *
|
||||||
cmGlobalMSYSMakefileGenerator::CreateLocalGenerator(cmLocalGenerator* parent)
|
cmGlobalMSYSMakefileGenerator::CreateLocalGenerator(cmLocalGenerator* parent)
|
||||||
{
|
{
|
||||||
cmLocalUnixMakefileGenerator3* lg =
|
cmLocalUnixMakefileGenerator3* lg =
|
||||||
new cmLocalUnixMakefileGenerator3(parent);
|
new cmLocalUnixMakefileGenerator3(this, parent);
|
||||||
lg->SetWindowsShell(false);
|
lg->SetWindowsShell(false);
|
||||||
lg->SetMSYSShell(true);
|
lg->SetMSYSShell(true);
|
||||||
lg->SetGlobalGenerator(this);
|
|
||||||
lg->SetIgnoreLibPrefix(true);
|
lg->SetIgnoreLibPrefix(true);
|
||||||
lg->SetPassMakeflags(false);
|
lg->SetPassMakeflags(false);
|
||||||
lg->SetUnixCD(true);
|
lg->SetUnixCD(true);
|
||||||
|
|
|
@ -61,9 +61,8 @@ cmLocalGenerator *
|
||||||
cmGlobalMinGWMakefileGenerator::CreateLocalGenerator(cmLocalGenerator* parent)
|
cmGlobalMinGWMakefileGenerator::CreateLocalGenerator(cmLocalGenerator* parent)
|
||||||
{
|
{
|
||||||
cmLocalUnixMakefileGenerator3* lg =
|
cmLocalUnixMakefileGenerator3* lg =
|
||||||
new cmLocalUnixMakefileGenerator3(parent);
|
new cmLocalUnixMakefileGenerator3(this, parent);
|
||||||
lg->SetWindowsShell(true);
|
lg->SetWindowsShell(true);
|
||||||
lg->SetGlobalGenerator(this);
|
|
||||||
lg->SetIgnoreLibPrefix(true);
|
lg->SetIgnoreLibPrefix(true);
|
||||||
lg->SetPassMakeflags(false);
|
lg->SetPassMakeflags(false);
|
||||||
lg->SetUnixCD(true);
|
lg->SetUnixCD(true);
|
||||||
|
|
|
@ -49,11 +49,10 @@ cmLocalGenerator *
|
||||||
cmGlobalNMakeMakefileGenerator::CreateLocalGenerator(cmLocalGenerator* parent)
|
cmGlobalNMakeMakefileGenerator::CreateLocalGenerator(cmLocalGenerator* parent)
|
||||||
{
|
{
|
||||||
cmLocalUnixMakefileGenerator3* lg =
|
cmLocalUnixMakefileGenerator3* lg =
|
||||||
new cmLocalUnixMakefileGenerator3(parent);
|
new cmLocalUnixMakefileGenerator3(this, parent);
|
||||||
lg->SetDefineWindowsNULL(true);
|
lg->SetDefineWindowsNULL(true);
|
||||||
lg->SetWindowsShell(true);
|
lg->SetWindowsShell(true);
|
||||||
lg->SetMakeSilentFlag("/nologo");
|
lg->SetMakeSilentFlag("/nologo");
|
||||||
lg->SetGlobalGenerator(this);
|
|
||||||
lg->SetIgnoreLibPrefix(true);
|
lg->SetIgnoreLibPrefix(true);
|
||||||
lg->SetPassMakeflags(true);
|
lg->SetPassMakeflags(true);
|
||||||
lg->SetNMake(true);
|
lg->SetNMake(true);
|
||||||
|
|
|
@ -500,9 +500,7 @@ cmGlobalNinjaGenerator::cmGlobalNinjaGenerator()
|
||||||
cmLocalGenerator*
|
cmLocalGenerator*
|
||||||
cmGlobalNinjaGenerator::CreateLocalGenerator(cmLocalGenerator* parent)
|
cmGlobalNinjaGenerator::CreateLocalGenerator(cmLocalGenerator* parent)
|
||||||
{
|
{
|
||||||
cmLocalGenerator* lg = new cmLocalNinjaGenerator(parent);
|
return new cmLocalNinjaGenerator(this, parent);
|
||||||
lg->SetGlobalGenerator(this);
|
|
||||||
return lg;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmGlobalNinjaGenerator
|
void cmGlobalNinjaGenerator
|
||||||
|
|
|
@ -56,9 +56,7 @@ void cmGlobalUnixMakefileGenerator3
|
||||||
cmLocalGenerator *
|
cmLocalGenerator *
|
||||||
cmGlobalUnixMakefileGenerator3::CreateLocalGenerator(cmLocalGenerator* parent)
|
cmGlobalUnixMakefileGenerator3::CreateLocalGenerator(cmLocalGenerator* parent)
|
||||||
{
|
{
|
||||||
cmLocalGenerator* lg = new cmLocalUnixMakefileGenerator3(parent);
|
return new cmLocalUnixMakefileGenerator3(this, parent);
|
||||||
lg->SetGlobalGenerator(this);
|
|
||||||
return lg;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
|
@ -311,11 +311,8 @@ void cmGlobalVisualStudio10Generator::WriteSLNHeader(std::ostream& fout)
|
||||||
cmLocalGenerator *
|
cmLocalGenerator *
|
||||||
cmGlobalVisualStudio10Generator::CreateLocalGenerator(cmLocalGenerator* parent)
|
cmGlobalVisualStudio10Generator::CreateLocalGenerator(cmLocalGenerator* parent)
|
||||||
{
|
{
|
||||||
cmLocalVisualStudio10Generator* lg =
|
return new cmLocalVisualStudio10Generator(
|
||||||
new cmLocalVisualStudio10Generator(cmLocalVisualStudioGenerator::VS10,
|
cmLocalVisualStudioGenerator::VS10, this, parent);
|
||||||
parent);
|
|
||||||
lg->SetGlobalGenerator(this);
|
|
||||||
return lg;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
|
@ -240,11 +240,8 @@ void cmGlobalVisualStudio11Generator::WriteSLNHeader(std::ostream& fout)
|
||||||
cmLocalGenerator *
|
cmLocalGenerator *
|
||||||
cmGlobalVisualStudio11Generator::CreateLocalGenerator(cmLocalGenerator* parent)
|
cmGlobalVisualStudio11Generator::CreateLocalGenerator(cmLocalGenerator* parent)
|
||||||
{
|
{
|
||||||
cmLocalVisualStudio10Generator* lg =
|
return new cmLocalVisualStudio10Generator(
|
||||||
new cmLocalVisualStudio10Generator(cmLocalVisualStudioGenerator::VS11,
|
cmLocalVisualStudioGenerator::VS11, this, parent);
|
||||||
parent);
|
|
||||||
lg->SetGlobalGenerator(this);
|
|
||||||
return lg;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
|
@ -220,11 +220,8 @@ void cmGlobalVisualStudio12Generator::WriteSLNHeader(std::ostream& fout)
|
||||||
cmLocalGenerator *
|
cmLocalGenerator *
|
||||||
cmGlobalVisualStudio12Generator::CreateLocalGenerator(cmLocalGenerator* parent)
|
cmGlobalVisualStudio12Generator::CreateLocalGenerator(cmLocalGenerator* parent)
|
||||||
{
|
{
|
||||||
cmLocalVisualStudio10Generator* lg =
|
return new cmLocalVisualStudio10Generator(
|
||||||
new cmLocalVisualStudio10Generator(cmLocalVisualStudioGenerator::VS12,
|
cmLocalVisualStudioGenerator::VS12, this, parent);
|
||||||
parent);
|
|
||||||
lg->SetGlobalGenerator(this);
|
|
||||||
return lg;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
|
@ -131,9 +131,6 @@ void cmGlobalVisualStudio14Generator::WriteSLNHeader(std::ostream& fout)
|
||||||
cmLocalGenerator *
|
cmLocalGenerator *
|
||||||
cmGlobalVisualStudio14Generator::CreateLocalGenerator(cmLocalGenerator* parent)
|
cmGlobalVisualStudio14Generator::CreateLocalGenerator(cmLocalGenerator* parent)
|
||||||
{
|
{
|
||||||
cmLocalVisualStudio10Generator* lg =
|
return new cmLocalVisualStudio10Generator(
|
||||||
new cmLocalVisualStudio10Generator(cmLocalVisualStudioGenerator::VS14,
|
cmLocalVisualStudioGenerator::VS14, this, parent);
|
||||||
parent);
|
|
||||||
lg->SetGlobalGenerator(this);
|
|
||||||
return lg;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -173,9 +173,7 @@ cmGlobalVisualStudio6Generator::GenerateBuildCommand(
|
||||||
cmLocalGenerator *
|
cmLocalGenerator *
|
||||||
cmGlobalVisualStudio6Generator::CreateLocalGenerator(cmLocalGenerator* parent)
|
cmGlobalVisualStudio6Generator::CreateLocalGenerator(cmLocalGenerator* parent)
|
||||||
{
|
{
|
||||||
cmLocalGenerator *lg = new cmLocalVisualStudio6Generator(parent);
|
return new cmLocalVisualStudio6Generator(this, parent);
|
||||||
lg->SetGlobalGenerator(this);
|
|
||||||
return lg;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -30,9 +30,8 @@ cmGlobalVisualStudio71Generator::CreateLocalGenerator(cmLocalGenerator* parent)
|
||||||
{
|
{
|
||||||
cmLocalVisualStudio7Generator *lg =
|
cmLocalVisualStudio7Generator *lg =
|
||||||
new cmLocalVisualStudio7Generator(cmLocalVisualStudioGenerator::VS71,
|
new cmLocalVisualStudio7Generator(cmLocalVisualStudioGenerator::VS71,
|
||||||
parent);
|
this, parent);
|
||||||
lg->SetExtraFlagTable(this->GetExtraFlagTableVS7());
|
lg->SetExtraFlagTable(this->GetExtraFlagTableVS7());
|
||||||
lg->SetGlobalGenerator(this);
|
|
||||||
return lg;
|
return lg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -255,9 +255,8 @@ cmGlobalVisualStudio7Generator::CreateLocalGenerator(cmLocalGenerator* parent)
|
||||||
{
|
{
|
||||||
cmLocalVisualStudio7Generator *lg =
|
cmLocalVisualStudio7Generator *lg =
|
||||||
new cmLocalVisualStudio7Generator(cmLocalVisualStudioGenerator::VS7,
|
new cmLocalVisualStudio7Generator(cmLocalVisualStudioGenerator::VS7,
|
||||||
parent);
|
this, parent);
|
||||||
lg->SetExtraFlagTable(this->GetExtraFlagTableVS7());
|
lg->SetExtraFlagTable(this->GetExtraFlagTableVS7());
|
||||||
lg->SetGlobalGenerator(this);
|
|
||||||
return lg;
|
return lg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -130,9 +130,8 @@ cmGlobalVisualStudio8Generator::CreateLocalGenerator(cmLocalGenerator* parent)
|
||||||
{
|
{
|
||||||
cmLocalVisualStudio7Generator *lg =
|
cmLocalVisualStudio7Generator *lg =
|
||||||
new cmLocalVisualStudio7Generator(cmLocalVisualStudioGenerator::VS8,
|
new cmLocalVisualStudio7Generator(cmLocalVisualStudioGenerator::VS8,
|
||||||
parent);
|
this, parent);
|
||||||
lg->SetExtraFlagTable(this->GetExtraFlagTableVS8());
|
lg->SetExtraFlagTable(this->GetExtraFlagTableVS8());
|
||||||
lg->SetGlobalGenerator(this);
|
|
||||||
return lg;
|
return lg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -119,9 +119,8 @@ cmGlobalVisualStudio9Generator::CreateLocalGenerator(cmLocalGenerator* parent)
|
||||||
{
|
{
|
||||||
cmLocalVisualStudio7Generator *lg
|
cmLocalVisualStudio7Generator *lg
|
||||||
= new cmLocalVisualStudio7Generator(cmLocalVisualStudioGenerator::VS9,
|
= new cmLocalVisualStudio7Generator(cmLocalVisualStudioGenerator::VS9,
|
||||||
parent);
|
this, parent);
|
||||||
lg->SetExtraFlagTable(this->GetExtraFlagTableVS8());
|
lg->SetExtraFlagTable(this->GetExtraFlagTableVS8());
|
||||||
lg->SetGlobalGenerator(this);
|
|
||||||
return lg;
|
return lg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,14 +45,13 @@ cmLocalGenerator *
|
||||||
cmGlobalWatcomWMakeGenerator::CreateLocalGenerator(cmLocalGenerator* parent)
|
cmGlobalWatcomWMakeGenerator::CreateLocalGenerator(cmLocalGenerator* parent)
|
||||||
{
|
{
|
||||||
cmLocalUnixMakefileGenerator3* lg
|
cmLocalUnixMakefileGenerator3* lg
|
||||||
= new cmLocalUnixMakefileGenerator3(parent);
|
= new cmLocalUnixMakefileGenerator3(this, parent);
|
||||||
lg->SetDefineWindowsNULL(true);
|
lg->SetDefineWindowsNULL(true);
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
lg->SetWindowsShell(true);
|
lg->SetWindowsShell(true);
|
||||||
#endif
|
#endif
|
||||||
lg->SetWatcomWMake(true);
|
lg->SetWatcomWMake(true);
|
||||||
lg->SetMakeSilentFlag("-h");
|
lg->SetMakeSilentFlag("-h");
|
||||||
lg->SetGlobalGenerator(this);
|
|
||||||
lg->SetIgnoreLibPrefix(true);
|
lg->SetIgnoreLibPrefix(true);
|
||||||
lg->SetPassMakeflags(false);
|
lg->SetPassMakeflags(false);
|
||||||
lg->SetUnixCD(false);
|
lg->SetUnixCD(false);
|
||||||
|
|
|
@ -371,9 +371,7 @@ cmGlobalXCodeGenerator::GenerateBuildCommand(
|
||||||
cmLocalGenerator *
|
cmLocalGenerator *
|
||||||
cmGlobalXCodeGenerator::CreateLocalGenerator(cmLocalGenerator* parent)
|
cmGlobalXCodeGenerator::CreateLocalGenerator(cmLocalGenerator* parent)
|
||||||
{
|
{
|
||||||
cmLocalGenerator *lg = new cmLocalXCodeGenerator(parent);
|
return new cmLocalXCodeGenerator(this, parent);
|
||||||
lg->SetGlobalGenerator(this);
|
|
||||||
return lg;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
|
@ -43,14 +43,17 @@
|
||||||
#include <StorageDefs.h>
|
#include <StorageDefs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
cmLocalGenerator::cmLocalGenerator(cmLocalGenerator* parent)
|
cmLocalGenerator::cmLocalGenerator(cmGlobalGenerator* gg,
|
||||||
|
cmLocalGenerator* parent)
|
||||||
{
|
{
|
||||||
this->Makefile = 0; // moved to after set on global
|
this->GlobalGenerator = gg;
|
||||||
this->Parent = parent;
|
this->Parent = parent;
|
||||||
if (parent)
|
if (parent)
|
||||||
{
|
{
|
||||||
parent->AddChild(this);
|
parent->AddChild(this);
|
||||||
}
|
}
|
||||||
|
this->Makefile = new cmMakefile(this);
|
||||||
|
|
||||||
this->WindowsShell = false;
|
this->WindowsShell = false;
|
||||||
this->WindowsVSIDE = false;
|
this->WindowsVSIDE = false;
|
||||||
this->WatcomWMake = false;
|
this->WatcomWMake = false;
|
||||||
|
@ -249,13 +252,6 @@ void cmLocalGenerator::SetupPathConversions()
|
||||||
this->StartOutputDirectoryComponents);
|
this->StartOutputDirectoryComponents);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void cmLocalGenerator::SetGlobalGenerator(cmGlobalGenerator *gg)
|
|
||||||
{
|
|
||||||
this->GlobalGenerator = gg;
|
|
||||||
this->Makefile = new cmMakefile(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
void cmLocalGenerator::ConfigureFinalPass()
|
void cmLocalGenerator::ConfigureFinalPass()
|
||||||
{
|
{
|
||||||
this->Makefile->ConfigureFinalPass();
|
this->Makefile->ConfigureFinalPass();
|
||||||
|
|
|
@ -33,7 +33,7 @@ class cmCustomCommandGenerator;
|
||||||
class cmLocalGenerator
|
class cmLocalGenerator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmLocalGenerator(cmLocalGenerator* parent);
|
cmLocalGenerator(cmGlobalGenerator* gg, cmLocalGenerator* parent);
|
||||||
virtual ~cmLocalGenerator();
|
virtual ~cmLocalGenerator();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -88,9 +88,6 @@ public:
|
||||||
const cmGlobalGenerator *GetGlobalGenerator() const {
|
const cmGlobalGenerator *GetGlobalGenerator() const {
|
||||||
return this->GlobalGenerator; }
|
return this->GlobalGenerator; }
|
||||||
|
|
||||||
///! Set the Global Generator, done on creation by the GlobalGenerator
|
|
||||||
void SetGlobalGenerator(cmGlobalGenerator *gg);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert something to something else. This is a centralized conversion
|
* Convert something to something else. This is a centralized conversion
|
||||||
* routine used by the generators to handle relative paths and the like.
|
* routine used by the generators to handle relative paths and the like.
|
||||||
|
|
|
@ -16,8 +16,9 @@
|
||||||
#include "cmGhsMultiTargetGenerator.h"
|
#include "cmGhsMultiTargetGenerator.h"
|
||||||
#include "cmGeneratedFileStream.h"
|
#include "cmGeneratedFileStream.h"
|
||||||
|
|
||||||
cmLocalGhsMultiGenerator::cmLocalGhsMultiGenerator(cmLocalGenerator* parent)
|
cmLocalGhsMultiGenerator::cmLocalGhsMultiGenerator(cmGlobalGenerator* gg,
|
||||||
: cmLocalGenerator(parent)
|
cmLocalGenerator* parent)
|
||||||
|
: cmLocalGenerator(gg, parent)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ class cmGeneratedFileStream;
|
||||||
class cmLocalGhsMultiGenerator : public cmLocalGenerator
|
class cmLocalGhsMultiGenerator : public cmLocalGenerator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmLocalGhsMultiGenerator(cmLocalGenerator* parent);
|
cmLocalGhsMultiGenerator(cmGlobalGenerator* gg, cmLocalGenerator* parent);
|
||||||
|
|
||||||
virtual ~cmLocalGhsMultiGenerator();
|
virtual ~cmLocalGhsMultiGenerator();
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,9 @@
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
cmLocalNinjaGenerator::cmLocalNinjaGenerator(cmLocalGenerator* parent)
|
cmLocalNinjaGenerator::cmLocalNinjaGenerator(cmGlobalGenerator* gg,
|
||||||
: cmLocalGenerator(parent)
|
cmLocalGenerator* parent)
|
||||||
|
: cmLocalGenerator(gg, parent)
|
||||||
, ConfigName("")
|
, ConfigName("")
|
||||||
, HomeRelativeOutputPath("")
|
, HomeRelativeOutputPath("")
|
||||||
{
|
{
|
||||||
|
|
|
@ -32,7 +32,7 @@ class cmLocalNinjaGenerator : public cmLocalGenerator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/// Default constructor.
|
/// Default constructor.
|
||||||
cmLocalNinjaGenerator(cmLocalGenerator* parent);
|
cmLocalNinjaGenerator(cmGlobalGenerator* gg, cmLocalGenerator* parent);
|
||||||
|
|
||||||
/// Destructor.
|
/// Destructor.
|
||||||
virtual ~cmLocalNinjaGenerator();
|
virtual ~cmLocalNinjaGenerator();
|
||||||
|
|
|
@ -80,8 +80,8 @@ static std::string cmSplitExtension(std::string const& in, std::string& base)
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
cmLocalUnixMakefileGenerator3::
|
cmLocalUnixMakefileGenerator3::
|
||||||
cmLocalUnixMakefileGenerator3(cmLocalGenerator* parent)
|
cmLocalUnixMakefileGenerator3(cmGlobalGenerator* gg, cmLocalGenerator* parent)
|
||||||
: cmLocalGenerator(parent)
|
: cmLocalGenerator(gg, parent)
|
||||||
{
|
{
|
||||||
this->WindowsShell = false;
|
this->WindowsShell = false;
|
||||||
this->IncludeDirective = "include";
|
this->IncludeDirective = "include";
|
||||||
|
|
|
@ -34,7 +34,8 @@ class cmSourceFile;
|
||||||
class cmLocalUnixMakefileGenerator3 : public cmLocalGenerator
|
class cmLocalUnixMakefileGenerator3 : public cmLocalGenerator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmLocalUnixMakefileGenerator3(cmLocalGenerator* parent);
|
cmLocalUnixMakefileGenerator3(cmGlobalGenerator* gg,
|
||||||
|
cmLocalGenerator* parent);
|
||||||
virtual ~cmLocalUnixMakefileGenerator3();
|
virtual ~cmLocalUnixMakefileGenerator3();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -62,8 +62,9 @@ class cmVS10XMLParser : public cmXMLParser
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
cmLocalVisualStudio10Generator
|
cmLocalVisualStudio10Generator
|
||||||
::cmLocalVisualStudio10Generator(VSVersion v, cmLocalGenerator* parent):
|
::cmLocalVisualStudio10Generator(VSVersion v, cmGlobalGenerator* gg,
|
||||||
cmLocalVisualStudio7Generator(v, parent)
|
cmLocalGenerator* parent):
|
||||||
|
cmLocalVisualStudio7Generator(v, gg, parent)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,8 @@ class cmLocalVisualStudio10Generator : public cmLocalVisualStudio7Generator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
///! Set cache only and recurse to false by default.
|
///! Set cache only and recurse to false by default.
|
||||||
cmLocalVisualStudio10Generator(VSVersion v, cmLocalGenerator* parent);
|
cmLocalVisualStudio10Generator(VSVersion v, cmGlobalGenerator* gg,
|
||||||
|
cmLocalGenerator* parent);
|
||||||
|
|
||||||
virtual ~cmLocalVisualStudio10Generator();
|
virtual ~cmLocalVisualStudio10Generator();
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,9 @@
|
||||||
#include <cmsys/FStream.hxx>
|
#include <cmsys/FStream.hxx>
|
||||||
|
|
||||||
cmLocalVisualStudio6Generator
|
cmLocalVisualStudio6Generator
|
||||||
::cmLocalVisualStudio6Generator(cmLocalGenerator* parent):
|
::cmLocalVisualStudio6Generator(cmGlobalGenerator* gg,
|
||||||
cmLocalVisualStudioGenerator(VS6, parent)
|
cmLocalGenerator* parent):
|
||||||
|
cmLocalVisualStudioGenerator(VS6, gg, parent)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,8 @@ class cmLocalVisualStudio6Generator : public cmLocalVisualStudioGenerator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
///! Set cache only and recurse to false by default.
|
///! Set cache only and recurse to false by default.
|
||||||
cmLocalVisualStudio6Generator(cmLocalGenerator* parent);
|
cmLocalVisualStudio6Generator(cmGlobalGenerator* gg,
|
||||||
|
cmLocalGenerator* parent);
|
||||||
|
|
||||||
virtual ~cmLocalVisualStudio6Generator();
|
virtual ~cmLocalVisualStudio6Generator();
|
||||||
|
|
||||||
|
|
|
@ -55,8 +55,9 @@ static void cmConvertToWindowsSlash(std::string& s)
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
cmLocalVisualStudio7Generator
|
cmLocalVisualStudio7Generator
|
||||||
::cmLocalVisualStudio7Generator(VSVersion v, cmLocalGenerator* parent):
|
::cmLocalVisualStudio7Generator(VSVersion v, cmGlobalGenerator* gg,
|
||||||
cmLocalVisualStudioGenerator(v, parent)
|
cmLocalGenerator* parent):
|
||||||
|
cmLocalVisualStudioGenerator(v, gg, parent)
|
||||||
{
|
{
|
||||||
this->ExtraFlagTable = 0;
|
this->ExtraFlagTable = 0;
|
||||||
this->Internal = new cmLocalVisualStudio7GeneratorInternals(this);
|
this->Internal = new cmLocalVisualStudio7GeneratorInternals(this);
|
||||||
|
|
|
@ -35,7 +35,8 @@ class cmLocalVisualStudio7Generator : public cmLocalVisualStudioGenerator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
///! Set cache only and recurse to false by default.
|
///! Set cache only and recurse to false by default.
|
||||||
cmLocalVisualStudio7Generator(VSVersion v, cmLocalGenerator* parent);
|
cmLocalVisualStudio7Generator(VSVersion v, cmGlobalGenerator* gg,
|
||||||
|
cmLocalGenerator* parent);
|
||||||
|
|
||||||
virtual ~cmLocalVisualStudio7Generator();
|
virtual ~cmLocalVisualStudio7Generator();
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,9 @@
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
cmLocalVisualStudioGenerator
|
cmLocalVisualStudioGenerator
|
||||||
::cmLocalVisualStudioGenerator(VSVersion v, cmLocalGenerator* parent)
|
::cmLocalVisualStudioGenerator(VSVersion v, cmGlobalGenerator* gg,
|
||||||
: cmLocalGenerator(parent)
|
cmLocalGenerator* parent)
|
||||||
|
: cmLocalGenerator(gg, parent)
|
||||||
{
|
{
|
||||||
this->WindowsShell = true;
|
this->WindowsShell = true;
|
||||||
this->WindowsVSIDE = true;
|
this->WindowsVSIDE = true;
|
||||||
|
|
|
@ -45,7 +45,8 @@ public:
|
||||||
VS14 = 140
|
VS14 = 140
|
||||||
};
|
};
|
||||||
|
|
||||||
cmLocalVisualStudioGenerator(VSVersion v, cmLocalGenerator* parent);
|
cmLocalVisualStudioGenerator(VSVersion v, cmGlobalGenerator* gg,
|
||||||
|
cmLocalGenerator* parent);
|
||||||
virtual ~cmLocalVisualStudioGenerator();
|
virtual ~cmLocalVisualStudioGenerator();
|
||||||
|
|
||||||
/** Construct a script from the given list of command lines. */
|
/** Construct a script from the given list of command lines. */
|
||||||
|
|
|
@ -15,8 +15,9 @@
|
||||||
#include "cmMakefile.h"
|
#include "cmMakefile.h"
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
cmLocalXCodeGenerator::cmLocalXCodeGenerator(cmLocalGenerator* parent)
|
cmLocalXCodeGenerator::cmLocalXCodeGenerator(cmGlobalGenerator* gg,
|
||||||
: cmLocalGenerator(parent)
|
cmLocalGenerator* parent)
|
||||||
|
: cmLocalGenerator(gg, parent)
|
||||||
{
|
{
|
||||||
// the global generator does this, so do not
|
// the global generator does this, so do not
|
||||||
// put these flags into the language flags
|
// put these flags into the language flags
|
||||||
|
|
|
@ -24,7 +24,7 @@ class cmLocalXCodeGenerator : public cmLocalGenerator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
///! Set cache only and recurse to false by default.
|
///! Set cache only and recurse to false by default.
|
||||||
cmLocalXCodeGenerator(cmLocalGenerator* parent);
|
cmLocalXCodeGenerator(cmGlobalGenerator* gg, cmLocalGenerator* parent);
|
||||||
|
|
||||||
virtual ~cmLocalXCodeGenerator();
|
virtual ~cmLocalXCodeGenerator();
|
||||||
virtual std::string GetTargetDirectory(cmTarget const& target) const;
|
virtual std::string GetTargetDirectory(cmTarget const& target) const;
|
||||||
|
|
Loading…
Reference in New Issue