| 332 | } |
| 333 | |
| 334 | void cmGhsMultiTargetGenerator::WriteBuildEvents(std::ostream& fout) |
| 335 | { |
| 336 | this->WriteBuildEventsHelper(fout, |
| 337 | this->GeneratorTarget->GetPreBuildCommands(), |
| 338 | std::string("prebuild"), |
| 339 | #ifdef _WIN32 |
| 340 | std::string("preexecShell") |
| 341 | #else |
| 342 | std::string("preexec") |
| 343 | #endif |
| 344 | ); |
| 345 | |
| 346 | if (this->TagType != GhsMultiGpj::CUSTOM_TARGET) { |
| 347 | this->WriteBuildEventsHelper(fout, |
| 348 | this->GeneratorTarget->GetPreLinkCommands(), |
| 349 | std::string("prelink"), |
| 350 | #ifdef _WIN32 |
| 351 | std::string("preexecShell") |
| 352 | #else |
| 353 | std::string("preexec") |
| 354 | #endif |
| 355 | ); |
| 356 | } |
| 357 | |
| 358 | this->WriteBuildEventsHelper(fout, |
| 359 | this->GeneratorTarget->GetPostBuildCommands(), |
| 360 | std::string("postbuild"), |
| 361 | #ifdef _WIN32 |
| 362 | std::string("postexecShell") |
| 363 | #else |
| 364 | std::string("postexec") |
| 365 | #endif |
| 366 | ); |
| 367 | } |
| 368 | |
| 369 | void cmGhsMultiTargetGenerator::WriteBuildEventsHelper( |
| 370 | std::ostream& fout, std::vector<cmCustomCommand> const& ccv, |
no test coverage detected