diff options
author | Stephen Kelly <steveire@gmail.com> | 2012-05-09 21:47:37 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2012-06-04 21:42:37 (GMT) |
commit | db839bec7d076b54c5e9ad0d19386a26557a509e (patch) | |
tree | a9ad4797209348cc105d19e01eacf5c25ddff8bf /Source/cmGlobalNinjaGenerator.h | |
parent | 8778357898327c1e4893d8dc140fc0e63331e36b (diff) | |
download | CMake-db839bec7d076b54c5e9ad0d19386a26557a509e.zip CMake-db839bec7d076b54c5e9ad0d19386a26557a509e.tar.gz CMake-db839bec7d076b54c5e9ad0d19386a26557a509e.tar.bz2 |
Make the CMAKE_EXPORT_COMPILE_COMMANDS option work with Ninja.
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.h')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmGlobalNinjaGenerator.h b/Source/cmGlobalNinjaGenerator.h index e652972..7b6b9b7 100644 --- a/Source/cmGlobalNinjaGenerator.h +++ b/Source/cmGlobalNinjaGenerator.h @@ -213,6 +213,9 @@ public: cmGeneratedFileStream* GetRulesFileStream() const { return this->RulesFileStream; } + void AddCXXCompileCommand(const std::string &commandLine, + const std::string &sourceFile); + /** * Add a rule to the generated build system. * Call WriteRule() behind the scene but perform some check before like: @@ -254,6 +257,8 @@ private: void OpenBuildFileStream(); void CloseBuildFileStream(); + void CloseCompileCommandsStream(); + void OpenRulesFileStream(); void CloseRulesFileStream(); @@ -311,6 +316,7 @@ private: /// The file containing the rule statements. (The action attached to each /// edge of the compilation DAG). cmGeneratedFileStream* RulesFileStream; + cmGeneratedFileStream* CompileCommandsStream; /// The type used to store the set of rules added to the generated build /// system. |