summaryrefslogtreecommitdiff
path: root/Source/cmNinjaTargetGenerator.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmNinjaTargetGenerator.h')
-rw-r--r--Source/cmNinjaTargetGenerator.h52
1 files changed, 25 insertions, 27 deletions
diff --git a/Source/cmNinjaTargetGenerator.h b/Source/cmNinjaTargetGenerator.h
index 8225a60f4c..414aa09c48 100644
--- a/Source/cmNinjaTargetGenerator.h
+++ b/Source/cmNinjaTargetGenerator.h
@@ -27,7 +27,7 @@ class cmMakefile;
class cmSourceFile;
class cmCustomCommand;
-class cmNinjaTargetGenerator: public cmCommonTargetGenerator
+class cmNinjaTargetGenerator : public cmCommonTargetGenerator
{
public:
/// Create a cmNinjaTargetGenerator according to the @a target's type.
@@ -46,22 +46,24 @@ public:
bool NeedDepTypeMSVC(const std::string& lang) const;
protected:
-
bool SetMsvcTargetPdbVariable(cmNinjaVars&) const;
cmGeneratedFileStream& GetBuildFileStream() const;
cmGeneratedFileStream& GetRulesFileStream() const;
cmGeneratorTarget* GetGeneratorTarget() const
- { return this->GeneratorTarget; }
+ {
+ return this->GeneratorTarget;
+ }
cmLocalNinjaGenerator* GetLocalGenerator() const
- { return this->LocalGenerator; }
+ {
+ return this->LocalGenerator;
+ }
cmGlobalNinjaGenerator* GetGlobalGenerator() const;
- cmMakefile* GetMakefile() const
- { return this->Makefile; }
+ cmMakefile* GetMakefile() const { return this->Makefile; }
std::string LanguageCompilerRule(const std::string& lang) const;
@@ -82,10 +84,12 @@ protected:
std::string ComputeDefines(cmSourceFile const* source,
const std::string& language);
- std::string ConvertToNinjaPath(const std::string& path) const {
+ std::string ConvertToNinjaPath(const std::string& path) const
+ {
return this->GetGlobalGenerator()->ConvertToNinjaPath(path);
}
- cmGlobalNinjaGenerator::MapToNinjaPathImpl MapToNinjaPath() const {
+ cmGlobalNinjaGenerator::MapToNinjaPathImpl MapToNinjaPath() const
+ {
return this->GetGlobalGenerator()->MapToNinjaPath();
}
@@ -111,28 +115,24 @@ protected:
bool writeOrderDependsTargetForTarget);
void ExportObjectCompileCommand(
- std::string const& language,
- std::string const& sourceFileName,
- std::string const& objectDir,
- std::string const& objectFileName,
- std::string const& objectFileDir,
- std::string const& flags,
- std::string const& defines,
- std::string const& includes
- );
-
- cmNinjaDeps GetObjects() const
- { return this->Objects; }
+ std::string const& language, std::string const& sourceFileName,
+ std::string const& objectDir, std::string const& objectFileName,
+ std::string const& objectFileDir, std::string const& flags,
+ std::string const& defines, std::string const& includes);
+
+ cmNinjaDeps GetObjects() const { return this->Objects; }
void EnsureDirectoryExists(const std::string& dir) const;
void EnsureParentDirectoryExists(const std::string& path) const;
// write rules for Mac OS X Application Bundle content.
- struct MacOSXContentGeneratorType :
- cmOSXBundleGenerator::MacOSXContentGeneratorType
+ struct MacOSXContentGeneratorType
+ : cmOSXBundleGenerator::MacOSXContentGeneratorType
{
- MacOSXContentGeneratorType(cmNinjaTargetGenerator* g) :
- Generator(g) {}
+ MacOSXContentGeneratorType(cmNinjaTargetGenerator* g)
+ : Generator(g)
+ {
+ }
void operator()(cmSourceFile const& source, const char* pkgloc);
@@ -141,15 +141,13 @@ protected:
};
friend struct MacOSXContentGeneratorType;
-
MacOSXContentGeneratorType* MacOSXContentGenerator;
// Properly initialized by sub-classes.
cmOSXBundleGenerator* OSXBundleGenerator;
std::set<std::string> MacContentFolders;
void addPoolNinjaVariable(const std::string& pool_property,
- cmGeneratorTarget* target,
- cmNinjaVars& vars);
+ cmGeneratorTarget* target, cmNinjaVars& vars);
bool ForceResponseFile();