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

Method AppendExtraResources

Source/cmFastbuildNormalTargetGenerator.cxx:1209–1235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1207}
1208
1209void cmFastbuildNormalTargetGenerator::AppendExtraResources(
1210 std::set<std::string>& deps) const
1211{
1212 // Generate Fastbuild's "Copy" commands to copy resources.
1213 auto const generateCopyCommands =
1214 [this](std::vector<cmSourceFile const*>& frameworkDeps) {
1215 this->OSXBundleGenerator->GenerateMacOSXContentStatements(
1216 frameworkDeps, this->MacOSXContentGenerator.get(), Config);
1217 };
1218
1219 std::vector<cmSourceFile const*> headerSources;
1220 this->GeneratorTarget->GetHeaderSources(headerSources, Config);
1221 generateCopyCommands(headerSources);
1222
1223 std::vector<cmSourceFile const*> extraSources;
1224 this->GeneratorTarget->GetExtraSources(extraSources, Config);
1225 generateCopyCommands(extraSources);
1226
1227 std::vector<cmSourceFile const*> externalObjects;
1228 this->GeneratorTarget->GetExternalObjects(externalObjects, Config);
1229 generateCopyCommands(externalObjects);
1230
1231 for (FastbuildCopyNode const& node : this->CopyNodes) {
1232 LogMessage("Adding resource: " + node.Name);
1233 deps.emplace(node.Name);
1234 }
1235}
1236
1237std::string cmFastbuildNormalTargetGenerator::GetCompileOptions(
1238 cmSourceFile const& srcFile, std::string const& arch)

Callers

nothing calls this directly

Calls 6

GetHeaderSourcesMethod · 0.80
GetExtraSourcesMethod · 0.80
GetExternalObjectsMethod · 0.80
emplaceMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected