summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-05-30 09:15:07 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-05-30 14:44:30 (GMT)
commit15c644437ae355ac196cfcfe1e874d8280451b43 (patch)
treea2801f85b58a74e3ebfc61b710d08dbce352d793 /Source/cmGlobalNinjaGenerator.h
parent1b16d7656733a89d1d9735cf31654824b76aab9b (diff)
downloadCMake-15c644437ae355ac196cfcfe1e874d8280451b43.zip
CMake-15c644437ae355ac196cfcfe1e874d8280451b43.tar.gz
CMake-15c644437ae355ac196cfcfe1e874d8280451b43.tar.bz2
Ninja: Add cmNinjaBuild based WriteBuild (wrapper) method
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.h')
-rw-r--r--Source/cmGlobalNinjaGenerator.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmGlobalNinjaGenerator.h b/Source/cmGlobalNinjaGenerator.h
index dcc358b..037c20e 100644
--- a/Source/cmGlobalNinjaGenerator.h
+++ b/Source/cmGlobalNinjaGenerator.h
@@ -117,6 +117,13 @@ public:
int cmdLineLimit = 0, bool* usedResponseFile = nullptr);
/**
+ * Write a build statement @a build to @a os.
+ * @warning no escaping of any kind is done here.
+ */
+ void WriteBuild(std::ostream& os, cmNinjaBuild const& build,
+ int cmdLineLimit = 0, bool* usedResponseFile = nullptr);
+
+ /**
* Helper to write a build statement with the special 'phony' rule.
*/
void WritePhonyBuild(std::ostream& os, const std::string& comment,