cmOSXBundleGenerator: Make MacOSXContentGeneratorType arg const.
This commit is contained in:
parent
6132d979d9
commit
04cf50ff62
@ -373,7 +373,7 @@ void cmMakefileTargetGenerator::WriteTargetLanguageFlags()
|
|||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void
|
void
|
||||||
cmMakefileTargetGenerator::MacOSXContentGeneratorType::operator()
|
cmMakefileTargetGenerator::MacOSXContentGeneratorType::operator()
|
||||||
(cmSourceFile& source, const char* pkgloc)
|
(cmSourceFile const& source, const char* pkgloc)
|
||||||
{
|
{
|
||||||
// Skip OS X content when not building a Framework or Bundle.
|
// Skip OS X content when not building a Framework or Bundle.
|
||||||
if(!this->Generator->GetTarget()->IsBundleOnApple())
|
if(!this->Generator->GetTarget()->IsBundleOnApple())
|
||||||
|
@ -81,7 +81,7 @@ protected:
|
|||||||
MacOSXContentGeneratorType(cmMakefileTargetGenerator* gen) :
|
MacOSXContentGeneratorType(cmMakefileTargetGenerator* gen) :
|
||||||
Generator(gen) {}
|
Generator(gen) {}
|
||||||
|
|
||||||
void operator()(cmSourceFile& source, const char* pkgloc);
|
void operator()(cmSourceFile const& source, const char* pkgloc);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
cmMakefileTargetGenerator* Generator;
|
cmMakefileTargetGenerator* Generator;
|
||||||
|
@ -733,7 +733,7 @@ cmNinjaTargetGenerator
|
|||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void
|
void
|
||||||
cmNinjaTargetGenerator::MacOSXContentGeneratorType::operator()(
|
cmNinjaTargetGenerator::MacOSXContentGeneratorType::operator()(
|
||||||
cmSourceFile& source, const char* pkgloc)
|
cmSourceFile const& source, const char* pkgloc)
|
||||||
{
|
{
|
||||||
// Skip OS X content when not building a Framework or Bundle.
|
// Skip OS X content when not building a Framework or Bundle.
|
||||||
if(!this->Generator->GetTarget()->IsBundleOnApple())
|
if(!this->Generator->GetTarget()->IsBundleOnApple())
|
||||||
|
@ -129,7 +129,7 @@ protected:
|
|||||||
MacOSXContentGeneratorType(cmNinjaTargetGenerator* g) :
|
MacOSXContentGeneratorType(cmNinjaTargetGenerator* g) :
|
||||||
Generator(g) {}
|
Generator(g) {}
|
||||||
|
|
||||||
void operator()(cmSourceFile& source, const char* pkgloc);
|
void operator()(cmSourceFile const& source, const char* pkgloc);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
cmNinjaTargetGenerator* Generator;
|
cmNinjaTargetGenerator* Generator;
|
||||||
|
@ -44,7 +44,8 @@ public:
|
|||||||
struct MacOSXContentGeneratorType
|
struct MacOSXContentGeneratorType
|
||||||
{
|
{
|
||||||
virtual ~MacOSXContentGeneratorType() {}
|
virtual ~MacOSXContentGeneratorType() {}
|
||||||
virtual void operator()(cmSourceFile& source, const char* pkgloc) = 0;
|
virtual void operator()(cmSourceFile const& source,
|
||||||
|
const char* pkgloc) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
void GenerateMacOSXContentStatements(
|
void GenerateMacOSXContentStatements(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user