More efficient solution: Only do exactly one call for each directory. During that call, mark all source-files as changed, and make all targets for those files.
| 193 | |
| 194 | ///More efficient solution: Only do exactly one call for each directory. During that call, mark all source-files as changed, and make all targets for those files. |
| 195 | PathResolutionResult MakeFileResolver::resolveIncludePath(const QString& file) |
| 196 | { |
| 197 | if (file.isEmpty()) { |
| 198 | // for unit tests with temporary files |
| 199 | return PathResolutionResult(); |
| 200 | } |
| 201 | |
| 202 | QFileInfo fi(file); |
| 203 | return resolveIncludePath(fi.fileName(), fi.absolutePath()); |
| 204 | } |
| 205 | |
| 206 | QString MakeFileResolver::mapToBuild(const QString &path) const |
| 207 | { |