| 4985 | } |
| 4986 | |
| 4987 | void 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 | |
| 5011 | void cmVisualStudio10TargetGenerator::WriteEvent( |
| 5012 | Elem& e1, std::string const& name, |
no test coverage detected