cmNinjaGenerator: Require cmGeneratorTarget.
This commit is contained in:
parent
a3b210fd6c
commit
bb88668add
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
cmNinjaNormalTargetGenerator::
|
cmNinjaNormalTargetGenerator::
|
||||||
cmNinjaNormalTargetGenerator(cmGeneratorTarget* target)
|
cmNinjaNormalTargetGenerator(cmGeneratorTarget* target)
|
||||||
: cmNinjaTargetGenerator(target->Target)
|
: cmNinjaTargetGenerator(target)
|
||||||
, TargetNameOut()
|
, TargetNameOut()
|
||||||
, TargetNameSO()
|
, TargetNameSO()
|
||||||
, TargetNameReal()
|
, TargetNameReal()
|
||||||
|
|
|
@ -57,19 +57,18 @@ cmNinjaTargetGenerator::New(cmGeneratorTarget* target)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cmNinjaTargetGenerator::cmNinjaTargetGenerator(cmTarget* target)
|
cmNinjaTargetGenerator::cmNinjaTargetGenerator(cmGeneratorTarget* target)
|
||||||
:
|
:
|
||||||
MacOSXContentGenerator(0),
|
MacOSXContentGenerator(0),
|
||||||
OSXBundleGenerator(0),
|
OSXBundleGenerator(0),
|
||||||
MacContentFolders(),
|
MacContentFolders(),
|
||||||
Target(target),
|
Target(target->Target),
|
||||||
Makefile(target->GetMakefile()),
|
Makefile(target->Makefile),
|
||||||
LocalGenerator(
|
LocalGenerator(
|
||||||
static_cast<cmLocalNinjaGenerator*>(Makefile->GetLocalGenerator())),
|
static_cast<cmLocalNinjaGenerator*>(target->GetLocalGenerator())),
|
||||||
Objects()
|
Objects()
|
||||||
{
|
{
|
||||||
this->GeneratorTarget =
|
this->GeneratorTarget = target;
|
||||||
this->GetGlobalGenerator()->GetGeneratorTarget(target);
|
|
||||||
MacOSXContentGenerator = new MacOSXContentGeneratorType(this);
|
MacOSXContentGenerator = new MacOSXContentGeneratorType(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ public:
|
||||||
static cmNinjaTargetGenerator* New(cmGeneratorTarget* target);
|
static cmNinjaTargetGenerator* New(cmGeneratorTarget* target);
|
||||||
|
|
||||||
/// Build a NinjaTargetGenerator.
|
/// Build a NinjaTargetGenerator.
|
||||||
cmNinjaTargetGenerator(cmTarget* target);
|
cmNinjaTargetGenerator(cmGeneratorTarget* target);
|
||||||
|
|
||||||
/// Destructor.
|
/// Destructor.
|
||||||
virtual ~cmNinjaTargetGenerator();
|
virtual ~cmNinjaTargetGenerator();
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
cmNinjaUtilityTargetGenerator::cmNinjaUtilityTargetGenerator(
|
cmNinjaUtilityTargetGenerator::cmNinjaUtilityTargetGenerator(
|
||||||
cmGeneratorTarget *target)
|
cmGeneratorTarget *target)
|
||||||
: cmNinjaTargetGenerator(target->Target) {}
|
: cmNinjaTargetGenerator(target) {}
|
||||||
|
|
||||||
cmNinjaUtilityTargetGenerator::~cmNinjaUtilityTargetGenerator() {}
|
cmNinjaUtilityTargetGenerator::~cmNinjaUtilityTargetGenerator() {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue