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

Method WriteObjectLibraryRules

Source/cmMakefileLibraryTargetGenerator.cxx:111–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void cmMakefileLibraryTargetGenerator::WriteObjectLibraryRules()
112{
113 std::vector<std::string> commands;
114 std::vector<std::string> depends;
115
116 // Add post-build rules.
117 this->LocalGenerator->AppendCustomCommands(
118 commands, this->GeneratorTarget->GetPostBuildCommands(),
119 this->GeneratorTarget, this->LocalGenerator->GetBinaryDirectory());
120
121 // Depend on the object files.
122 this->AppendObjectDepends(depends);
123
124 // Write the rule.
125 this->LocalGenerator->WriteMakeRule(*this->BuildFileStream, nullptr,
126 this->GeneratorTarget->GetName(),
127 depends, commands, true);
128
129 // Write the main driver rule to build everything in this target.
130 this->WriteTargetDriverRule(this->GeneratorTarget->GetName(), false);
131}
132
133void cmMakefileLibraryTargetGenerator::WriteStaticLibraryRules()
134{

Callers 1

WriteRuleFilesMethod · 0.95

Calls 5

AppendCustomCommandsMethod · 0.80
AppendObjectDependsMethod · 0.80
WriteTargetDriverRuleMethod · 0.80
WriteMakeRuleMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected