| 245 | } |
| 246 | |
| 247 | void cmLocalNinjaGenerator::WriteBuildFileTop() |
| 248 | { |
| 249 | this->WriteProjectHeader(this->GetCommonFileStream()); |
| 250 | |
| 251 | if (this->GetGlobalGenerator()->IsMultiConfig()) { |
| 252 | for (auto const& config : this->GetConfigNames()) { |
| 253 | auto& stream = this->GetImplFileStream(config); |
| 254 | this->WriteProjectHeader(stream); |
| 255 | this->WriteNinjaRequiredVersion(stream); |
| 256 | this->WriteNinjaConfigurationVariable(stream, config); |
| 257 | this->WriteNinjaFilesInclusionConfig(stream); |
| 258 | } |
| 259 | } else { |
| 260 | this->WriteNinjaRequiredVersion(this->GetCommonFileStream()); |
| 261 | this->WriteNinjaConfigurationVariable(this->GetCommonFileStream(), |
| 262 | this->GetConfigNames().front()); |
| 263 | } |
| 264 | this->WriteNinjaFilesInclusionCommon(this->GetCommonFileStream()); |
| 265 | this->WriteNinjaWorkDir(this->GetCommonFileStream()); |
| 266 | |
| 267 | // For the rule file. |
| 268 | this->WriteProjectHeader(this->GetRulesFileStream()); |
| 269 | } |
| 270 | |
| 271 | void cmLocalNinjaGenerator::WriteProjectHeader(std::ostream& os) |
| 272 | { |
no test coverage detected