summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.h
diff options
context:
space:
mode:
authorPeter Kuemmel <syntheticpp@gmx.net>2012-06-10 18:20:29 (GMT)
committerPeter Kuemmel <syntheticpp@gmx.net>2012-06-10 18:20:29 (GMT)
commitba8d0db217399dede6d897c928b4dbf52e7e141b (patch)
tree5a0e167cdc7c98a26a3a5a52599ec6aa476674d4 /Source/cmGlobalNinjaGenerator.h
parent343ff7a72e7c08f3a63dde25bd1f06c8c3854f56 (diff)
downloadCMake-ba8d0db217399dede6d897c928b4dbf52e7e141b.zip
CMake-ba8d0db217399dede6d897c928b4dbf52e7e141b.tar.gz
CMake-ba8d0db217399dede6d897c928b4dbf52e7e141b.tar.bz2
Ninja: don't pollute the rules file with useless comments
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.h')
-rw-r--r--Source/cmGlobalNinjaGenerator.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmGlobalNinjaGenerator.h b/Source/cmGlobalNinjaGenerator.h
index 0c740e8..b2c2aa8 100644
--- a/Source/cmGlobalNinjaGenerator.h
+++ b/Source/cmGlobalNinjaGenerator.h
@@ -16,6 +16,8 @@
# include "cmGlobalGenerator.h"
# include "cmNinjaTypes.h"
+//#define NINJA_GEN_VERBOSE_FILES
+
class cmLocalGenerator;
class cmGeneratedFileStream;
class cmGeneratorTarget;
@@ -215,6 +217,11 @@ public:
cmGeneratedFileStream* GetRulesFileStream() const
{ return this->RulesFileStream; }
+ void ClearCommentStream();
+ cmsys_ios::stringstream& GetCommentStream() const
+ { return *this->CommentStream; }
+
+
void AddCXXCompileCommand(const std::string &commandLine,
const std::string &sourceFile);
@@ -346,6 +353,9 @@ private:
static cmLocalGenerator* LocalGenerator;
static bool UsingMinGW;
+
+ cmsys_ios::stringstream* CommentStream;
+
};
#endif // ! cmGlobalNinjaGenerator_h