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

Method WriteEvents

Source/cmVisualStudio10TargetGenerator.cxx:4987–5009  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4985}
4986
4987void cmVisualStudio10TargetGenerator::WriteEvents(
4988 Elem& e1, std::string const& configName)
4989{
4990 bool addedPrelink = false;
4991 cmGeneratorTarget::ModuleDefinitionInfo const* mdi =
4992 this->GeneratorTarget->GetModuleDefinitionInfo(configName);
4993 if (mdi && mdi->DefFileGenerated) {
4994 addedPrelink = true;
4995 std::vector<cmCustomCommand> commands =
4996 this->GeneratorTarget->GetPreLinkCommands();
4997 this->GlobalGenerator->AddSymbolExportCommand(this->GeneratorTarget,
4998 commands, configName);
4999 this->WriteEvent(e1, "PreLinkEvent", commands, configName);
5000 }
5001 if (!addedPrelink) {
5002 this->WriteEvent(e1, "PreLinkEvent",
5003 this->GeneratorTarget->GetPreLinkCommands(), configName);
5004 }
5005 this->WriteEvent(e1, "PreBuildEvent",
5006 this->GeneratorTarget->GetPreBuildCommands(), configName);
5007 this->WriteEvent(e1, "PostBuildEvent",
5008 this->GeneratorTarget->GetPostBuildCommands(), configName);
5009}
5010
5011void cmVisualStudio10TargetGenerator::WriteEvent(
5012 Elem& e1, std::string const& name,

Callers 2

Calls 3

WriteEventMethod · 0.95

Tested by

no test coverage detected