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

Method GenerateAppleLibraryScript

Source/cmInstallRuntimeDependencySetGenerator.cxx:153–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void cmInstallRuntimeDependencySetGenerator::GenerateAppleLibraryScript(
154 std::ostream& os, std::string const& config,
155 std::vector<std::string> const& evaluatedRPaths, Indent indent)
156{
157 os << indent << "if(NOT " << this->TmpVarPrefix
158 << "_dep MATCHES \"\\\\.framework/\")\n";
159
160 auto depName = cmStrCat(this->TmpVarPrefix, "_dep");
161 this->AddInstallRule(
162 os, this->GetDestination(config), cmInstallType_SHARED_LIBRARY, {}, false,
163 this->Permissions.c_str(), nullptr, nullptr, " FOLLOW_SYMLINK_CHAIN",
164 indent.Next(), depName.c_str());
165
166 os << indent.Next() << "get_filename_component(" << this->TmpVarPrefix
167 << "_dep_name \"${" << this->TmpVarPrefix << "_dep}\" NAME)\n";
168 auto depNameVar = cmStrCat("${", this->TmpVarPrefix, "_dep_name}");
169 this->GenerateInstallNameFixup(os, config, evaluatedRPaths,
170 cmStrCat("${", this->TmpVarPrefix, "_dep}"),
171 depNameVar, indent.Next());
172
173 os << indent << "endif()\n";
174}
175
176void cmInstallRuntimeDependencySetGenerator::GenerateAppleFrameworkScript(
177 std::ostream& os, std::string const& config,

Callers 1

Calls 6

GetDestinationMethod · 0.95
AddInstallRuleMethod · 0.80
c_strMethod · 0.80
cmStrCatFunction · 0.70
NextMethod · 0.45

Tested by

no test coverage detected