| 257 | } |
| 258 | |
| 259 | KJob* MesonBuilder::prune(KDevelop::IProject* project) |
| 260 | { |
| 261 | Q_ASSERT(project); |
| 262 | Meson::BuildDir buildDir = Meson::currentBuildDir(project); |
| 263 | if (!buildDir.isValid()) { |
| 264 | qCWarning(KDEV_Meson) << "The current build directory is invalid"; |
| 265 | return new ErrorJob(this, i18n("The current build directory for %1 is invalid", project->name())); |
| 266 | } |
| 267 | |
| 268 | KJob* job = new MesonJobPrune(buildDir, this); |
| 269 | connect(job, &KJob::result, this, [this, project]() { emit pruned(project); }); |
| 270 | return job; |
| 271 | } |
| 272 | |
| 273 | QList<IProjectBuilder*> MesonBuilder::additionalBuilderPlugins(IProject*) const |
| 274 | { |
nothing calls this directly
no test coverage detected