| 1745 | } |
| 1746 | |
| 1747 | void cmNinjaNormalTargetGenerator::WriteObjectLibStatement( |
| 1748 | std::string const& config) |
| 1749 | { |
| 1750 | // Write a phony output that depends on all object files. |
| 1751 | { |
| 1752 | cmNinjaBuild build("phony"); |
| 1753 | build.Comment = "Object library " + this->GetTargetName(); |
| 1754 | this->GetLocalGenerator()->AppendTargetOutputs(this->GetGeneratorTarget(), |
| 1755 | build.Outputs, config); |
| 1756 | this->GetLocalGenerator()->AppendTargetOutputs( |
| 1757 | this->GetGeneratorTarget(), |
| 1758 | this->GetGlobalGenerator()->GetByproductsForCleanTarget(config), config); |
| 1759 | build.ExplicitDeps = this->GetObjects(config); |
| 1760 | this->GetGlobalGenerator()->WriteBuild(this->GetCommonFileStream(), build); |
| 1761 | } |
| 1762 | |
| 1763 | // Add aliases for the target name. |
| 1764 | this->GetGlobalGenerator()->AddTargetAlias( |
| 1765 | this->GetTargetName(), this->GetGeneratorTarget(), config); |
| 1766 | } |
| 1767 | |
| 1768 | void cmNinjaNormalTargetGenerator::WriteCxxModuleLibraryStatement( |
| 1769 | std::string const& config, std::string const& /*fileConfig*/, |
no test coverage detected