cmLocalGenerator: Remove Parent pointer.
This commit is contained in:
parent
11d5088a2f
commit
9b6a743b80
|
@ -44,10 +44,10 @@ void cmGlobalBorlandMakefileGenerator
|
||||||
|
|
||||||
///! Create a local generator appropriate to this Global Generator
|
///! Create a local generator appropriate to this Global Generator
|
||||||
cmLocalGenerator *cmGlobalBorlandMakefileGenerator::CreateLocalGenerator(
|
cmLocalGenerator *cmGlobalBorlandMakefileGenerator::CreateLocalGenerator(
|
||||||
cmLocalGenerator* parent, cmState::Snapshot snapshot)
|
cmState::Snapshot snapshot)
|
||||||
{
|
{
|
||||||
cmLocalUnixMakefileGenerator3* lg =
|
cmLocalUnixMakefileGenerator3* lg =
|
||||||
new cmLocalUnixMakefileGenerator3(this, parent, snapshot);
|
new cmLocalUnixMakefileGenerator3(this, snapshot);
|
||||||
lg->SetMakefileVariableSize(32);
|
lg->SetMakefileVariableSize(32);
|
||||||
lg->SetMakeCommandEscapeTargetTwice(true);
|
lg->SetMakeCommandEscapeTargetTwice(true);
|
||||||
lg->SetBorlandMakeCurlyHack(true);
|
lg->SetBorlandMakeCurlyHack(true);
|
||||||
|
|
|
@ -36,8 +36,7 @@ public:
|
||||||
static void GetDocumentation(cmDocumentationEntry& entry);
|
static void GetDocumentation(cmDocumentationEntry& entry);
|
||||||
|
|
||||||
///! Create a local generator appropriate to this Global Generator
|
///! Create a local generator appropriate to this Global Generator
|
||||||
virtual cmLocalGenerator *CreateLocalGenerator(cmLocalGenerator* parent,
|
virtual cmLocalGenerator *CreateLocalGenerator(cmState::Snapshot snapshot);
|
||||||
cmState::Snapshot snapshot);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Try to determine system information such as shared library
|
* Try to determine system information such as shared library
|
||||||
|
|
|
@ -1986,22 +1986,20 @@ void cmGlobalGenerator::EnableInstallTarget()
|
||||||
}
|
}
|
||||||
|
|
||||||
cmLocalGenerator *
|
cmLocalGenerator *
|
||||||
cmGlobalGenerator::MakeLocalGenerator(cmState::Snapshot snapshot,
|
cmGlobalGenerator::MakeLocalGenerator(cmState::Snapshot snapshot)
|
||||||
cmLocalGenerator *parent)
|
|
||||||
{
|
{
|
||||||
if (!snapshot.IsValid())
|
if (!snapshot.IsValid())
|
||||||
{
|
{
|
||||||
snapshot = this->CMakeInstance->GetCurrentSnapshot();
|
snapshot = this->CMakeInstance->GetCurrentSnapshot();
|
||||||
}
|
}
|
||||||
|
|
||||||
return this->CreateLocalGenerator(parent, snapshot);
|
return this->CreateLocalGenerator(snapshot);
|
||||||
}
|
}
|
||||||
|
|
||||||
cmLocalGenerator*
|
cmLocalGenerator*
|
||||||
cmGlobalGenerator::CreateLocalGenerator(cmLocalGenerator* parent,
|
cmGlobalGenerator::CreateLocalGenerator(cmState::Snapshot snapshot)
|
||||||
cmState::Snapshot snapshot)
|
|
||||||
{
|
{
|
||||||
return new cmLocalGenerator(this, parent, snapshot);
|
return new cmLocalGenerator(this, snapshot);
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmGlobalGenerator::EnableLanguagesFromGenerator(cmGlobalGenerator *gen,
|
void cmGlobalGenerator::EnableLanguagesFromGenerator(cmGlobalGenerator *gen,
|
||||||
|
|
|
@ -56,9 +56,8 @@ public:
|
||||||
cmGlobalGenerator(cmake* cm);
|
cmGlobalGenerator(cmake* cm);
|
||||||
virtual ~cmGlobalGenerator();
|
virtual ~cmGlobalGenerator();
|
||||||
|
|
||||||
cmLocalGenerator* MakeLocalGenerator(
|
cmLocalGenerator*
|
||||||
cmState::Snapshot snapshot = cmState::Snapshot(),
|
MakeLocalGenerator(cmState::Snapshot snapshot = cmState::Snapshot());
|
||||||
cmLocalGenerator* parent = 0);
|
|
||||||
|
|
||||||
///! Get the name for this generator
|
///! Get the name for this generator
|
||||||
virtual std::string GetName() const { return "Generic"; }
|
virtual std::string GetName() const { return "Generic"; }
|
||||||
|
@ -442,8 +441,7 @@ protected:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
///! Create a local generator appropriate to this Global Generator
|
///! Create a local generator appropriate to this Global Generator
|
||||||
virtual cmLocalGenerator *CreateLocalGenerator(cmLocalGenerator* parent,
|
virtual cmLocalGenerator *CreateLocalGenerator(cmState::Snapshot snapshot);
|
||||||
cmState::Snapshot snapshot);
|
|
||||||
|
|
||||||
cmMakefile* TryCompileOuterMakefile;
|
cmMakefile* TryCompileOuterMakefile;
|
||||||
// If you add a new map here, make sure it is copied
|
// If you add a new map here, make sure it is copied
|
||||||
|
|
|
@ -33,10 +33,9 @@ cmGlobalGhsMultiGenerator::~cmGlobalGhsMultiGenerator()
|
||||||
}
|
}
|
||||||
|
|
||||||
cmLocalGenerator *
|
cmLocalGenerator *
|
||||||
cmGlobalGhsMultiGenerator::CreateLocalGenerator(cmLocalGenerator* parent,
|
cmGlobalGhsMultiGenerator::CreateLocalGenerator(cmState::Snapshot snapshot)
|
||||||
cmState::Snapshot snapshot)
|
|
||||||
{
|
{
|
||||||
return new cmLocalGhsMultiGenerator(this, parent, snapshot);
|
return new cmLocalGhsMultiGenerator(this, snapshot);
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmGlobalGhsMultiGenerator::GetDocumentation(cmDocumentationEntry &entry)
|
void cmGlobalGhsMultiGenerator::GetDocumentation(cmDocumentationEntry &entry)
|
||||||
|
|
|
@ -31,8 +31,7 @@ public:
|
||||||
{ return new cmGlobalGeneratorSimpleFactory<cmGlobalGhsMultiGenerator>(); }
|
{ return new cmGlobalGeneratorSimpleFactory<cmGlobalGhsMultiGenerator>(); }
|
||||||
|
|
||||||
///! create the correct local generator
|
///! create the correct local generator
|
||||||
virtual cmLocalGenerator *CreateLocalGenerator(cmLocalGenerator* parent,
|
virtual cmLocalGenerator *CreateLocalGenerator(cmState::Snapshot snapshot);
|
||||||
cmState::Snapshot snapshot);
|
|
||||||
|
|
||||||
/// @return the name of this generator.
|
/// @return the name of this generator.
|
||||||
static std::string GetActualName() { return "Green Hills MULTI"; }
|
static std::string GetActualName() { return "Green Hills MULTI"; }
|
||||||
|
|
|
@ -528,10 +528,9 @@ cmGlobalNinjaGenerator::cmGlobalNinjaGenerator(cmake* cm)
|
||||||
// Virtual public methods.
|
// Virtual public methods.
|
||||||
|
|
||||||
cmLocalGenerator*
|
cmLocalGenerator*
|
||||||
cmGlobalNinjaGenerator::CreateLocalGenerator(cmLocalGenerator* parent,
|
cmGlobalNinjaGenerator::CreateLocalGenerator(cmState::Snapshot snapshot)
|
||||||
cmState::Snapshot snapshot)
|
|
||||||
{
|
{
|
||||||
return new cmLocalNinjaGenerator(this, parent, snapshot);
|
return new cmLocalNinjaGenerator(this, snapshot);
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmGlobalNinjaGenerator
|
void cmGlobalNinjaGenerator
|
||||||
|
|
|
@ -170,8 +170,7 @@ public:
|
||||||
virtual ~cmGlobalNinjaGenerator() { }
|
virtual ~cmGlobalNinjaGenerator() { }
|
||||||
|
|
||||||
/// Overloaded methods. @see cmGlobalGenerator::CreateLocalGenerator()
|
/// Overloaded methods. @see cmGlobalGenerator::CreateLocalGenerator()
|
||||||
virtual cmLocalGenerator* CreateLocalGenerator(cmLocalGenerator* parent,
|
virtual cmLocalGenerator* CreateLocalGenerator(cmState::Snapshot snapshot);
|
||||||
cmState::Snapshot snapshot);
|
|
||||||
|
|
||||||
/// Overloaded methods. @see cmGlobalGenerator::GetName().
|
/// Overloaded methods. @see cmGlobalGenerator::GetName().
|
||||||
virtual std::string GetName() const {
|
virtual std::string GetName() const {
|
||||||
|
|
|
@ -59,11 +59,10 @@ void cmGlobalUnixMakefileGenerator3
|
||||||
}
|
}
|
||||||
|
|
||||||
///! Create a local generator appropriate to this Global Generator
|
///! Create a local generator appropriate to this Global Generator
|
||||||
cmLocalGenerator *
|
cmLocalGenerator* cmGlobalUnixMakefileGenerator3::CreateLocalGenerator(
|
||||||
cmGlobalUnixMakefileGenerator3::CreateLocalGenerator(cmLocalGenerator* parent,
|
|
||||||
cmState::Snapshot snapshot)
|
cmState::Snapshot snapshot)
|
||||||
{
|
{
|
||||||
return new cmLocalUnixMakefileGenerator3(this, parent, snapshot);
|
return new cmLocalUnixMakefileGenerator3(this, snapshot);
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
|
@ -68,8 +68,7 @@ public:
|
||||||
static void GetDocumentation(cmDocumentationEntry& entry);
|
static void GetDocumentation(cmDocumentationEntry& entry);
|
||||||
|
|
||||||
///! Create a local generator appropriate to this Global Generator3
|
///! Create a local generator appropriate to this Global Generator3
|
||||||
virtual cmLocalGenerator *CreateLocalGenerator(cmLocalGenerator* parent,
|
virtual cmLocalGenerator *CreateLocalGenerator(cmState::Snapshot snapshot);
|
||||||
cmState::Snapshot snapshot);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Try to determine system information such as shared library
|
* Try to determine system information such as shared library
|
||||||
|
|
|
@ -306,11 +306,10 @@ void cmGlobalVisualStudio10Generator::WriteSLNHeader(std::ostream& fout)
|
||||||
}
|
}
|
||||||
|
|
||||||
///! Create a local generator appropriate to this Global Generator
|
///! Create a local generator appropriate to this Global Generator
|
||||||
cmLocalGenerator *
|
cmLocalGenerator* cmGlobalVisualStudio10Generator::CreateLocalGenerator(
|
||||||
cmGlobalVisualStudio10Generator::CreateLocalGenerator(cmLocalGenerator* parent,
|
|
||||||
cmState::Snapshot snapshot)
|
cmState::Snapshot snapshot)
|
||||||
{
|
{
|
||||||
return new cmLocalVisualStudio10Generator(this, parent, snapshot);
|
return new cmLocalVisualStudio10Generator(this, snapshot);
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
|
@ -48,8 +48,7 @@ public:
|
||||||
virtual bool Compute();
|
virtual bool Compute();
|
||||||
|
|
||||||
///! create the correct local generator
|
///! create the correct local generator
|
||||||
virtual cmLocalGenerator *CreateLocalGenerator(cmLocalGenerator* parent,
|
virtual cmLocalGenerator *CreateLocalGenerator(cmState::Snapshot snapshot);
|
||||||
cmState::Snapshot snapshot);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Try to determine system information such as shared library
|
* Try to determine system information such as shared library
|
||||||
|
|
|
@ -173,10 +173,10 @@ cmGlobalVisualStudio6Generator::GenerateBuildCommand(
|
||||||
|
|
||||||
///! Create a local generator appropriate to this Global Generator
|
///! Create a local generator appropriate to this Global Generator
|
||||||
cmLocalGenerator *
|
cmLocalGenerator *
|
||||||
cmGlobalVisualStudio6Generator::CreateLocalGenerator(cmLocalGenerator* parent,
|
cmGlobalVisualStudio6Generator::CreateLocalGenerator(
|
||||||
cmState::Snapshot snapshot)
|
cmState::Snapshot snapshot)
|
||||||
{
|
{
|
||||||
return new cmLocalVisualStudio6Generator(this, parent, snapshot);
|
return new cmLocalVisualStudio6Generator(this, snapshot);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -39,8 +39,7 @@ public:
|
||||||
static void GetDocumentation(cmDocumentationEntry& entry);
|
static void GetDocumentation(cmDocumentationEntry& entry);
|
||||||
|
|
||||||
///! Create a local generator appropriate to this Global Generator
|
///! Create a local generator appropriate to this Global Generator
|
||||||
virtual cmLocalGenerator *CreateLocalGenerator(cmLocalGenerator* parent,
|
virtual cmLocalGenerator *CreateLocalGenerator(cmState::Snapshot snapshot);
|
||||||
cmState::Snapshot snapshot);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Try to determine system information such as shared library
|
* Try to determine system information such as shared library
|
||||||
|
|
|
@ -279,12 +279,11 @@ void cmGlobalVisualStudio7Generator::GenerateBuildCommand(
|
||||||
}
|
}
|
||||||
|
|
||||||
///! Create a local generator appropriate to this Global Generator
|
///! Create a local generator appropriate to this Global Generator
|
||||||
cmLocalGenerator *
|
cmLocalGenerator *cmGlobalVisualStudio7Generator::CreateLocalGenerator(
|
||||||
cmGlobalVisualStudio7Generator::CreateLocalGenerator(cmLocalGenerator* parent,
|
|
||||||
cmState::Snapshot snapshot)
|
cmState::Snapshot snapshot)
|
||||||
{
|
{
|
||||||
cmLocalVisualStudio7Generator *lg =
|
cmLocalVisualStudio7Generator *lg =
|
||||||
new cmLocalVisualStudio7Generator(this, parent, snapshot);
|
new cmLocalVisualStudio7Generator(this, snapshot);
|
||||||
return lg;
|
return lg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,8 +43,7 @@ public:
|
||||||
std::string const& GetPlatformName() const;
|
std::string const& GetPlatformName() const;
|
||||||
|
|
||||||
///! Create a local generator appropriate to this Global Generator
|
///! Create a local generator appropriate to this Global Generator
|
||||||
virtual cmLocalGenerator *CreateLocalGenerator(cmLocalGenerator* parent,
|
virtual cmLocalGenerator *CreateLocalGenerator(cmState::Snapshot snapshot);
|
||||||
cmState::Snapshot snapshot);
|
|
||||||
|
|
||||||
virtual bool SetSystemName(std::string const& s, cmMakefile* mf);
|
virtual bool SetSystemName(std::string const& s, cmMakefile* mf);
|
||||||
|
|
||||||
|
|
|
@ -371,10 +371,9 @@ cmGlobalXCodeGenerator::GenerateBuildCommand(
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
///! Create a local generator appropriate to this Global Generator
|
///! Create a local generator appropriate to this Global Generator
|
||||||
cmLocalGenerator *
|
cmLocalGenerator *
|
||||||
cmGlobalXCodeGenerator::CreateLocalGenerator(cmLocalGenerator* parent,
|
cmGlobalXCodeGenerator::CreateLocalGenerator(cmState::Snapshot snapshot)
|
||||||
cmState::Snapshot snapshot)
|
|
||||||
{
|
{
|
||||||
return new cmLocalXCodeGenerator(this, parent, snapshot);
|
return new cmLocalXCodeGenerator(this, snapshot);
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
|
@ -41,8 +41,7 @@ public:
|
||||||
static void GetDocumentation(cmDocumentationEntry& entry);
|
static void GetDocumentation(cmDocumentationEntry& entry);
|
||||||
|
|
||||||
///! Create a local generator appropriate to this Global Generator
|
///! Create a local generator appropriate to this Global Generator
|
||||||
virtual cmLocalGenerator *CreateLocalGenerator(cmLocalGenerator* parent,
|
virtual cmLocalGenerator *CreateLocalGenerator(cmState::Snapshot snapshot);
|
||||||
cmState::Snapshot snapshot);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Try to determine system information such as shared library
|
* Try to determine system information such as shared library
|
||||||
|
|
|
@ -14,9 +14,8 @@
|
||||||
#include "cmMakefile.h"
|
#include "cmMakefile.h"
|
||||||
|
|
||||||
cmLocalCommonGenerator::cmLocalCommonGenerator(cmGlobalGenerator* gg,
|
cmLocalCommonGenerator::cmLocalCommonGenerator(cmGlobalGenerator* gg,
|
||||||
cmLocalGenerator* parent,
|
|
||||||
cmState::Snapshot snapshot):
|
cmState::Snapshot snapshot):
|
||||||
cmLocalGenerator(gg, parent, snapshot)
|
cmLocalGenerator(gg, snapshot)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,6 @@ class cmLocalCommonGenerator: public cmLocalGenerator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmLocalCommonGenerator(cmGlobalGenerator* gg,
|
cmLocalCommonGenerator(cmGlobalGenerator* gg,
|
||||||
cmLocalGenerator* parent,
|
|
||||||
cmState::Snapshot snapshot);
|
cmState::Snapshot snapshot);
|
||||||
~cmLocalCommonGenerator();
|
~cmLocalCommonGenerator();
|
||||||
|
|
||||||
|
|
|
@ -43,13 +43,11 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
cmLocalGenerator::cmLocalGenerator(cmGlobalGenerator* gg,
|
cmLocalGenerator::cmLocalGenerator(cmGlobalGenerator* gg,
|
||||||
cmLocalGenerator* parent,
|
|
||||||
cmState::Snapshot snapshot)
|
cmState::Snapshot snapshot)
|
||||||
: cmOutputConverter(snapshot), StateSnapshot(snapshot)
|
: cmOutputConverter(snapshot), StateSnapshot(snapshot)
|
||||||
{
|
{
|
||||||
assert(snapshot.IsValid());
|
assert(snapshot.IsValid());
|
||||||
this->GlobalGenerator = gg;
|
this->GlobalGenerator = gg;
|
||||||
this->Parent = parent;
|
|
||||||
|
|
||||||
this->Makefile = new cmMakefile(this);
|
this->Makefile = new cmMakefile(this);
|
||||||
|
|
||||||
|
|
|
@ -36,8 +36,7 @@ class cmCustomCommandGenerator;
|
||||||
class cmLocalGenerator : public cmOutputConverter
|
class cmLocalGenerator : public cmOutputConverter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmLocalGenerator(cmGlobalGenerator* gg, cmLocalGenerator* parent,
|
cmLocalGenerator(cmGlobalGenerator* gg, cmState::Snapshot snapshot);
|
||||||
cmState::Snapshot snapshot);
|
|
||||||
virtual ~cmLocalGenerator();
|
virtual ~cmLocalGenerator();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -86,9 +85,6 @@ public:
|
||||||
cmState* GetState() const;
|
cmState* GetState() const;
|
||||||
cmState::Snapshot GetStateSnapshot() const;
|
cmState::Snapshot GetStateSnapshot() const;
|
||||||
|
|
||||||
///! set/get the parent generator
|
|
||||||
cmLocalGenerator* GetParent() const {return this->Parent;}
|
|
||||||
|
|
||||||
void AddArchitectureFlags(std::string& flags,
|
void AddArchitectureFlags(std::string& flags,
|
||||||
cmGeneratorTarget const* target,
|
cmGeneratorTarget const* target,
|
||||||
const std::string&lang, const std::string& config);
|
const std::string&lang, const std::string& config);
|
||||||
|
@ -343,7 +339,6 @@ protected:
|
||||||
cmMakefile *Makefile;
|
cmMakefile *Makefile;
|
||||||
cmState::Snapshot StateSnapshot;
|
cmState::Snapshot StateSnapshot;
|
||||||
cmGlobalGenerator *GlobalGenerator;
|
cmGlobalGenerator *GlobalGenerator;
|
||||||
cmLocalGenerator* Parent;
|
|
||||||
std::map<std::string, std::string> UniqueObjectNamesMap;
|
std::map<std::string, std::string> UniqueObjectNamesMap;
|
||||||
std::string::size_type ObjectPathMax;
|
std::string::size_type ObjectPathMax;
|
||||||
std::set<std::string> ObjectMaxPathViolations;
|
std::set<std::string> ObjectMaxPathViolations;
|
||||||
|
|
|
@ -17,9 +17,8 @@
|
||||||
#include "cmGeneratedFileStream.h"
|
#include "cmGeneratedFileStream.h"
|
||||||
|
|
||||||
cmLocalGhsMultiGenerator::cmLocalGhsMultiGenerator(cmGlobalGenerator* gg,
|
cmLocalGhsMultiGenerator::cmLocalGhsMultiGenerator(cmGlobalGenerator* gg,
|
||||||
cmLocalGenerator* parent,
|
|
||||||
cmState::Snapshot snapshot)
|
cmState::Snapshot snapshot)
|
||||||
: cmLocalGenerator(gg, parent, snapshot)
|
: cmLocalGenerator(gg, snapshot)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ class cmGeneratedFileStream;
|
||||||
class cmLocalGhsMultiGenerator : public cmLocalGenerator
|
class cmLocalGhsMultiGenerator : public cmLocalGenerator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmLocalGhsMultiGenerator(cmGlobalGenerator* gg, cmLocalGenerator* parent,
|
cmLocalGhsMultiGenerator(cmGlobalGenerator* gg,
|
||||||
cmState::Snapshot snapshot);
|
cmState::Snapshot snapshot);
|
||||||
|
|
||||||
virtual ~cmLocalGhsMultiGenerator();
|
virtual ~cmLocalGhsMultiGenerator();
|
||||||
|
|
|
@ -23,9 +23,8 @@
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
cmLocalNinjaGenerator::cmLocalNinjaGenerator(cmGlobalGenerator* gg,
|
cmLocalNinjaGenerator::cmLocalNinjaGenerator(cmGlobalGenerator* gg,
|
||||||
cmLocalGenerator* parent,
|
|
||||||
cmState::Snapshot snapshot)
|
cmState::Snapshot snapshot)
|
||||||
: cmLocalCommonGenerator(gg, parent, snapshot)
|
: cmLocalCommonGenerator(gg, snapshot)
|
||||||
, HomeRelativeOutputPath("")
|
, HomeRelativeOutputPath("")
|
||||||
{
|
{
|
||||||
this->TargetImplib = "$TARGET_IMPLIB";
|
this->TargetImplib = "$TARGET_IMPLIB";
|
||||||
|
|
|
@ -31,7 +31,7 @@ class cmake;
|
||||||
class cmLocalNinjaGenerator : public cmLocalCommonGenerator
|
class cmLocalNinjaGenerator : public cmLocalCommonGenerator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmLocalNinjaGenerator(cmGlobalGenerator* gg, cmLocalGenerator* parent,
|
cmLocalNinjaGenerator(cmGlobalGenerator* gg,
|
||||||
cmState::Snapshot snapshot);
|
cmState::Snapshot snapshot);
|
||||||
|
|
||||||
virtual ~cmLocalNinjaGenerator();
|
virtual ~cmLocalNinjaGenerator();
|
||||||
|
|
|
@ -80,9 +80,9 @@ static std::string cmSplitExtension(std::string const& in, std::string& base)
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
cmLocalUnixMakefileGenerator3::
|
cmLocalUnixMakefileGenerator3::
|
||||||
cmLocalUnixMakefileGenerator3(cmGlobalGenerator* gg, cmLocalGenerator* parent,
|
cmLocalUnixMakefileGenerator3(cmGlobalGenerator* gg,
|
||||||
cmState::Snapshot snapshot)
|
cmState::Snapshot snapshot)
|
||||||
: cmLocalCommonGenerator(gg, parent, snapshot)
|
: cmLocalCommonGenerator(gg, snapshot)
|
||||||
{
|
{
|
||||||
this->MakefileVariableSize = 0;
|
this->MakefileVariableSize = 0;
|
||||||
this->ColorMakefile = false;
|
this->ColorMakefile = false;
|
||||||
|
|
|
@ -35,7 +35,6 @@ class cmLocalUnixMakefileGenerator3 : public cmLocalCommonGenerator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmLocalUnixMakefileGenerator3(cmGlobalGenerator* gg,
|
cmLocalUnixMakefileGenerator3(cmGlobalGenerator* gg,
|
||||||
cmLocalGenerator* parent,
|
|
||||||
cmState::Snapshot snapshot);
|
cmState::Snapshot snapshot);
|
||||||
virtual ~cmLocalUnixMakefileGenerator3();
|
virtual ~cmLocalUnixMakefileGenerator3();
|
||||||
|
|
||||||
|
|
|
@ -63,9 +63,8 @@ class cmVS10XMLParser : public cmXMLParser
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
cmLocalVisualStudio10Generator
|
cmLocalVisualStudio10Generator
|
||||||
::cmLocalVisualStudio10Generator(cmGlobalGenerator* gg,
|
::cmLocalVisualStudio10Generator(cmGlobalGenerator* gg,
|
||||||
cmLocalGenerator* parent,
|
|
||||||
cmState::Snapshot snapshot):
|
cmState::Snapshot snapshot):
|
||||||
cmLocalVisualStudio7Generator(gg, parent, snapshot)
|
cmLocalVisualStudio7Generator(gg, snapshot)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,6 @@ 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(cmGlobalGenerator* gg,
|
cmLocalVisualStudio10Generator(cmGlobalGenerator* gg,
|
||||||
cmLocalGenerator* parent,
|
|
||||||
cmState::Snapshot snapshot);
|
cmState::Snapshot snapshot);
|
||||||
|
|
||||||
virtual ~cmLocalVisualStudio10Generator();
|
virtual ~cmLocalVisualStudio10Generator();
|
||||||
|
|
|
@ -25,9 +25,8 @@
|
||||||
|
|
||||||
cmLocalVisualStudio6Generator
|
cmLocalVisualStudio6Generator
|
||||||
::cmLocalVisualStudio6Generator(cmGlobalGenerator* gg,
|
::cmLocalVisualStudio6Generator(cmGlobalGenerator* gg,
|
||||||
cmLocalGenerator* parent,
|
|
||||||
cmState::Snapshot snapshot):
|
cmState::Snapshot snapshot):
|
||||||
cmLocalVisualStudioGenerator(gg, parent, snapshot)
|
cmLocalVisualStudioGenerator(gg, snapshot)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,6 @@ 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(cmGlobalGenerator* gg,
|
cmLocalVisualStudio6Generator(cmGlobalGenerator* gg,
|
||||||
cmLocalGenerator* parent,
|
|
||||||
cmState::Snapshot snapshot);
|
cmState::Snapshot snapshot);
|
||||||
|
|
||||||
virtual ~cmLocalVisualStudio6Generator();
|
virtual ~cmLocalVisualStudio6Generator();
|
||||||
|
|
|
@ -54,9 +54,8 @@ static void cmConvertToWindowsSlash(std::string& s)
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
cmLocalVisualStudio7Generator
|
cmLocalVisualStudio7Generator
|
||||||
::cmLocalVisualStudio7Generator(cmGlobalGenerator* gg,
|
::cmLocalVisualStudio7Generator(cmGlobalGenerator* gg,
|
||||||
cmLocalGenerator* parent,
|
|
||||||
cmState::Snapshot snapshot):
|
cmState::Snapshot snapshot):
|
||||||
cmLocalVisualStudioGenerator(gg, parent, snapshot)
|
cmLocalVisualStudioGenerator(gg, snapshot)
|
||||||
{
|
{
|
||||||
this->Internal = new cmLocalVisualStudio7GeneratorInternals(this);
|
this->Internal = new cmLocalVisualStudio7GeneratorInternals(this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,6 @@ 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(cmGlobalGenerator* gg,
|
cmLocalVisualStudio7Generator(cmGlobalGenerator* gg,
|
||||||
cmLocalGenerator* parent,
|
|
||||||
cmState::Snapshot snapshot);
|
cmState::Snapshot snapshot);
|
||||||
|
|
||||||
virtual ~cmLocalVisualStudio7Generator();
|
virtual ~cmLocalVisualStudio7Generator();
|
||||||
|
|
|
@ -20,9 +20,8 @@
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
cmLocalVisualStudioGenerator
|
cmLocalVisualStudioGenerator
|
||||||
::cmLocalVisualStudioGenerator(cmGlobalGenerator* gg,
|
::cmLocalVisualStudioGenerator(cmGlobalGenerator* gg,
|
||||||
cmLocalGenerator* parent,
|
|
||||||
cmState::Snapshot snapshot)
|
cmState::Snapshot snapshot)
|
||||||
: cmLocalGenerator(gg, parent, snapshot)
|
: cmLocalGenerator(gg, snapshot)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,6 @@ class cmLocalVisualStudioGenerator : public cmLocalGenerator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmLocalVisualStudioGenerator(cmGlobalGenerator* gg,
|
cmLocalVisualStudioGenerator(cmGlobalGenerator* gg,
|
||||||
cmLocalGenerator* parent,
|
|
||||||
cmState::Snapshot snapshot);
|
cmState::Snapshot snapshot);
|
||||||
virtual ~cmLocalVisualStudioGenerator();
|
virtual ~cmLocalVisualStudioGenerator();
|
||||||
|
|
||||||
|
|
|
@ -16,9 +16,8 @@
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
cmLocalXCodeGenerator::cmLocalXCodeGenerator(cmGlobalGenerator* gg,
|
cmLocalXCodeGenerator::cmLocalXCodeGenerator(cmGlobalGenerator* gg,
|
||||||
cmLocalGenerator* parent,
|
|
||||||
cmState::Snapshot snapshot)
|
cmState::Snapshot snapshot)
|
||||||
: cmLocalGenerator(gg, parent, snapshot)
|
: cmLocalGenerator(gg, snapshot)
|
||||||
{
|
{
|
||||||
// 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(cmGlobalGenerator* gg, cmLocalGenerator* parent,
|
cmLocalXCodeGenerator(cmGlobalGenerator* gg,
|
||||||
cmState::Snapshot snapshot);
|
cmState::Snapshot snapshot);
|
||||||
|
|
||||||
virtual ~cmLocalXCodeGenerator();
|
virtual ~cmLocalXCodeGenerator();
|
||||||
|
|
|
@ -1755,7 +1755,7 @@ void cmMakefile::AddSubDirectory(const std::string& srcPath,
|
||||||
|
|
||||||
// create a new local generator and set its parent
|
// create a new local generator and set its parent
|
||||||
cmLocalGenerator *lg2 = this->GetGlobalGenerator()
|
cmLocalGenerator *lg2 = this->GetGlobalGenerator()
|
||||||
->MakeLocalGenerator(newSnapshot, this->LocalGenerator);
|
->MakeLocalGenerator(newSnapshot);
|
||||||
this->GetGlobalGenerator()->AddMakefile(lg2->GetMakefile());
|
this->GetGlobalGenerator()->AddMakefile(lg2->GetMakefile());
|
||||||
this->GetGlobalGenerator()->AddLocalGenerator(lg2);
|
this->GetGlobalGenerator()->AddLocalGenerator(lg2);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue