MCPcopy Create free account
hub / github.com/Kitware/CMake / WriteBuildEvents

Method WriteBuildEvents

Source/cmGhsMultiTargetGenerator.cxx:334–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334void 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
369void cmGhsMultiTargetGenerator::WriteBuildEventsHelper(
370 std::ostream& fout, std::vector<cmCustomCommand> const& ccv,

Callers 2

GenerateTargetMethod · 0.95
WriteSourcesMethod · 0.95

Calls 1

Tested by

no test coverage detected