| 2314 | } |
| 2315 | |
| 2316 | Json::Value Target::DumpLinkItem(cmLinkItem const& linkItem) |
| 2317 | { |
| 2318 | Json::Value itemJson = Json::objectValue; |
| 2319 | if (linkItem.Target) { |
| 2320 | itemJson["id"] = TargetId(linkItem.Target, this->TopBuild); |
| 2321 | } else { |
| 2322 | itemJson["fragment"] = linkItem.AsStr(); |
| 2323 | } |
| 2324 | if (linkItem.InterfaceDirectFrom) { |
| 2325 | Json::Value jsonDirectFrom = Json::objectValue; |
| 2326 | jsonDirectFrom["id"] = |
| 2327 | TargetId(linkItem.InterfaceDirectFrom, this->TopBuild); |
| 2328 | itemJson["fromDependency"] = jsonDirectFrom; |
| 2329 | } |
| 2330 | this->AddBacktrace(itemJson, linkItem.Backtrace); |
| 2331 | return itemJson; |
| 2332 | } |
| 2333 | |
| 2334 | Json::Value Target::DumpLinkImplementationLibraries( |
| 2335 | cmGeneratorTarget::UseTo usage) |
no test coverage detected