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

Method WriteObjectLibStatement

Source/cmNinjaNormalTargetGenerator.cxx:1747–1766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1745}
1746
1747void 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
1768void cmNinjaNormalTargetGenerator::WriteCxxModuleLibraryStatement(
1769 std::string const& config, std::string const& /*fileConfig*/,

Callers 1

GenerateMethod · 0.95

Calls 9

GetObjectsMethod · 0.80
WriteBuildMethod · 0.80
AddTargetAliasMethod · 0.80
GetTargetNameMethod · 0.45
AppendTargetOutputsMethod · 0.45
GetLocalGeneratorMethod · 0.45
GetGeneratorTargetMethod · 0.45
GetGlobalGeneratorMethod · 0.45
GetCommonFileStreamMethod · 0.45

Tested by

no test coverage detected