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

Method GenerateMainFile

Source/cmExportBuildAndroidMKGenerator.cxx:18–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16cmExportBuildAndroidMKGenerator::cmExportBuildAndroidMKGenerator() = default;
17
18bool cmExportBuildAndroidMKGenerator::GenerateMainFile(std::ostream& os)
19{
20 if (!this->CollectExports([&](cmGeneratorTarget const*) {})) {
21 return false;
22 }
23
24 // Create all the imported targets.
25 for (auto const& exp : this->Exports) {
26 cmGeneratorTarget* gte = exp.Target;
27
28 this->GenerateImportTargetCode(os, gte, this->GetExportTargetType(gte));
29
30 gte->Target->AppendBuildInterfaceIncludes();
31
32 ImportPropertyMap properties;
33 if (!this->PopulateInterfaceProperties(gte, properties)) {
34 return false;
35 }
36
37 this->PopulateInterfaceLinkLibrariesProperty(
38 gte, cmGeneratorExpression::BuildInterface, properties);
39
40 this->GenerateInterfaceProperties(gte, os, properties);
41 }
42
43 return true;
44}
45
46void cmExportBuildAndroidMKGenerator::GenerateImportHeaderCode(
47 std::ostream& os, std::string const&)

Callers

nothing calls this directly

Tested by

no test coverage detected