MCPcopy Create free account
hub / github.com/KDE/kdevelop / newBuildDirectory

Method newBuildDirectory

plugins/meson/mesonmanager.cpp:448–469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446// ********************
447
448KJob* MesonManager::newBuildDirectory(IProject* project, Meson::BuildDir* outBuildDir)
449{
450 Q_ASSERT(project);
451 MesonNewBuildDir newBD(project);
452
453 if (!newBD.exec() || !newBD.isConfigValid()) {
454 qCWarning(KDEV_Meson) << "Failed to create new build directory for project " << project->name();
455 return nullptr;
456 }
457
458 Meson::BuildDir buildDir = newBD.currentConfig();
459 Meson::MesonConfig mesonCfg = Meson::getMesonConfig(project);
460 buildDir.canonicalizePaths();
461 mesonCfg.currentIndex = mesonCfg.addBuildDir(buildDir);
462 Meson::writeMesonConfig(project, mesonCfg);
463
464 if (outBuildDir) {
465 *outBuildDir = buildDir;
466 }
467
468 return m_builder->configure(project, buildDir, newBD.mesonArgs());
469}
470
471QStringList MesonManager::supportedMesonBackends() const
472{

Callers 2

configureMethod · 0.80
configureIfRequiredMethod · 0.80

Calls 8

execMethod · 0.80
isConfigValidMethod · 0.80
currentConfigMethod · 0.80
canonicalizePathsMethod · 0.80
mesonArgsMethod · 0.80
nameMethod · 0.45
addBuildDirMethod · 0.45
configureMethod · 0.45

Tested by

no test coverage detected