| 1753 | } |
| 1754 | |
| 1755 | void cmVisualStudio10TargetGenerator::WriteCustomCommand( |
| 1756 | Elem& e0, cmSourceFile const* sf) |
| 1757 | { |
| 1758 | if (this->LocalGenerator->GetSourcesVisited(this->GeneratorTarget) |
| 1759 | .insert(sf) |
| 1760 | .second) { |
| 1761 | if (std::vector<cmSourceFile*> const* depends = |
| 1762 | this->GeneratorTarget->GetSourceDepends(sf)) { |
| 1763 | for (cmSourceFile const* di : *depends) { |
| 1764 | this->WriteCustomCommand(e0, di); |
| 1765 | } |
| 1766 | } |
| 1767 | if (cmCustomCommand const* command = sf->GetCustomCommand()) { |
| 1768 | // C# projects write their <Target> within WriteCustomRule() |
| 1769 | this->WriteCustomRule(e0, sf, *command); |
| 1770 | } |
| 1771 | } |
| 1772 | } |
| 1773 | |
| 1774 | void cmVisualStudio10TargetGenerator::WriteCustomRule( |
| 1775 | Elem& e0, cmSourceFile const* source, cmCustomCommand const& command) |
no test coverage detected