| 113 | } |
| 114 | |
| 115 | void cmInstallGetRuntimeDependenciesGenerator::GenerateScript(std::ostream& os) |
| 116 | { |
| 117 | // Track indentation. |
| 118 | Indent indent; |
| 119 | |
| 120 | // Begin this block of installation. |
| 121 | os << indent << "if("; |
| 122 | if (this->FrameworkComponent.empty() || |
| 123 | this->FrameworkComponent == this->LibraryComponent) { |
| 124 | os << this->CreateComponentTest(this->LibraryComponent, |
| 125 | this->ExcludeFromAll); |
| 126 | } else { |
| 127 | os << this->CreateComponentTest(this->LibraryComponent, true) << " OR " |
| 128 | << this->CreateComponentTest(this->FrameworkComponent, |
| 129 | this->ExcludeFromAll); |
| 130 | } |
| 131 | os << ")\n"; |
| 132 | |
| 133 | // Generate the script possibly with per-configuration code. |
| 134 | this->GenerateScriptConfigs(os, indent.Next()); |
| 135 | |
| 136 | // End this block of installation. |
| 137 | os << indent << "endif()\n\n"; |
| 138 | } |
| 139 | |
| 140 | void cmInstallGetRuntimeDependenciesGenerator::GenerateScriptForConfig( |
| 141 | std::ostream& os, std::string const& config, Indent indent) |
nothing calls this directly
no test coverage detected