| 111 | cmComputeTargetDepends::~cmComputeTargetDepends() = default; |
| 112 | |
| 113 | bool cmComputeTargetDepends::Compute() |
| 114 | { |
| 115 | // Build the original graph. |
| 116 | this->CollectTargets(); |
| 117 | this->CollectDepends(); |
| 118 | if (this->DebugMode) { |
| 119 | this->DisplayGraph(this->InitialGraph, "initial"); |
| 120 | } |
| 121 | cmComputeComponentGraph ccg1(this->InitialGraph); |
| 122 | ccg1.Compute(); |
| 123 | if (!this->CheckComponents(ccg1)) { |
| 124 | return false; |
| 125 | } |
| 126 | |
| 127 | // Compute the intermediate graph. |
| 128 | this->CollectSideEffects(); |
| 129 | this->ComputeIntermediateGraph(); |
| 130 | if (this->DebugMode) { |
| 131 | this->DisplaySideEffects(); |
| 132 | this->DisplayGraph(this->IntermediateGraph, "intermediate"); |
| 133 | } |
| 134 | |
| 135 | // Identify components. |
| 136 | cmComputeComponentGraph ccg2(this->IntermediateGraph); |
| 137 | ccg2.Compute(); |
| 138 | if (this->DebugMode) { |
| 139 | this->DisplayComponents(ccg2, "intermediate"); |
| 140 | } |
| 141 | if (!this->CheckComponents(ccg2)) { |
| 142 | return false; |
| 143 | } |
| 144 | |
| 145 | // Compute the final dependency graph. |
| 146 | if (!this->ComputeFinalDepends(ccg2)) { |
| 147 | return false; |
| 148 | } |
| 149 | if (this->DebugMode) { |
| 150 | this->DisplayGraph(this->FinalGraph, "final"); |
| 151 | } |
| 152 | |
| 153 | return true; |
| 154 | } |
| 155 | |
| 156 | void cmComputeTargetDepends::GetTargetDirectDepends(cmGeneratorTarget const* t, |
| 157 | cmTargetDependSet& deps) |
nothing calls this directly
no test coverage detected