mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-18 17:31:57 +08:00
Ninja: Factor metadata cleanup into dedicated method
This commit is contained in:
@@ -528,6 +528,11 @@ void cmGlobalNinjaGenerator::Generate()
|
|||||||
this->CloseRulesFileStream();
|
this->CloseRulesFileStream();
|
||||||
this->CloseBuildFileStreams();
|
this->CloseBuildFileStreams();
|
||||||
|
|
||||||
|
this->CleanMetaData();
|
||||||
|
}
|
||||||
|
|
||||||
|
void cmGlobalNinjaGenerator::CleanMetaData()
|
||||||
|
{
|
||||||
auto run_ninja_tool = [this](std::vector<char const*> const& args) {
|
auto run_ninja_tool = [this](std::vector<char const*> const& args) {
|
||||||
std::vector<std::string> command;
|
std::vector<std::string> command;
|
||||||
command.push_back(this->NinjaCommand);
|
command.push_back(this->NinjaCommand);
|
||||||
|
@@ -438,6 +438,7 @@ private:
|
|||||||
|
|
||||||
bool OpenRulesFileStream();
|
bool OpenRulesFileStream();
|
||||||
void CloseRulesFileStream();
|
void CloseRulesFileStream();
|
||||||
|
void CleanMetaData();
|
||||||
|
|
||||||
/// Write the common disclaimer text at the top of each build file.
|
/// Write the common disclaimer text at the top of each build file.
|
||||||
void WriteDisclaimer(std::ostream& os);
|
void WriteDisclaimer(std::ostream& os);
|
||||||
|
Reference in New Issue
Block a user