| 37 | } |
| 38 | |
| 39 | bool cmExportInstallAndroidMKGenerator::GenerateMainFile(std::ostream& os) |
| 40 | { |
| 41 | std::vector<cmTargetExport const*> allTargets; |
| 42 | { |
| 43 | auto visitor = [&](cmTargetExport const* te) { allTargets.push_back(te); }; |
| 44 | |
| 45 | if (!this->CollectExports(visitor)) { |
| 46 | return false; |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | // Create all the imported targets. |
| 51 | for (cmTargetExport const* te : allTargets) { |
| 52 | cmGeneratorTarget const* gt = te->Target; |
| 53 | |
| 54 | this->GenerateImportTargetCode(os, gt, this->GetExportTargetType(te)); |
| 55 | |
| 56 | ImportPropertyMap properties; |
| 57 | if (!this->PopulateInterfaceProperties(te, properties)) { |
| 58 | return false; |
| 59 | } |
| 60 | |
| 61 | this->PopulateInterfaceLinkLibrariesProperty( |
| 62 | gt, cmGeneratorExpression::InstallInterface, properties); |
| 63 | |
| 64 | this->GenerateInterfaceProperties(gt, os, properties); |
| 65 | } |
| 66 | |
| 67 | return true; |
| 68 | } |
| 69 | |
| 70 | void cmExportInstallAndroidMKGenerator::GenerateImportHeaderCode( |
| 71 | std::ostream& os, std::string const&) |
nothing calls this directly
no test coverage detected