| 126 | } |
| 127 | |
| 128 | Json::Value CMakeFiles::DumpGlobDependent(cmGlobCacheEntry const& entry) |
| 129 | { |
| 130 | Json::Value globDependent = Json::objectValue; |
| 131 | globDependent["expression"] = entry.Expression; |
| 132 | if (entry.Recurse) { |
| 133 | globDependent["recurse"] = true; |
| 134 | } |
| 135 | if (entry.ListDirectories) { |
| 136 | globDependent["listDirectories"] = true; |
| 137 | } |
| 138 | if (entry.FollowSymlinks) { |
| 139 | globDependent["followSymlinks"] = true; |
| 140 | } |
| 141 | if (!entry.Relative.empty()) { |
| 142 | globDependent["relative"] = entry.Relative; |
| 143 | } |
| 144 | Json::Value paths = Json::arrayValue; |
| 145 | for (std::string const& file : entry.Files) { |
| 146 | paths.append(file); |
| 147 | } |
| 148 | globDependent["paths"] = std::move(paths); |
| 149 | return globDependent; |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | Json::Value cmFileAPICMakeFilesDump(cmFileAPI& fileAPI, unsigned int version) |
no test coverage detected