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

Method slotRunQMake

plugins/qmakemanager/qmakemanager.cpp:496–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494}
495
496void QMakeProjectManager::slotRunQMake()
497{
498 Q_ASSERT(m_actionItem);
499
500 Path srcDir = m_actionItem->path();
501 Path buildDir = QMakeConfig::buildDirFromSrc(m_actionItem->project(), srcDir);
502 auto* job = new QMakeJob(srcDir.toLocalFile(), buildDir.toLocalFile(), this);
503
504 job->setQMakePath(QMakeConfig::qmakeExecutable(m_actionItem->project()));
505
506 KConfigGroup cg(m_actionItem->project()->projectConfiguration(), QMakeConfig::CONFIG_GROUP());
507 QString installPrefix = cg.readEntry(QMakeConfig::INSTALL_PREFIX, QString());
508 if (!installPrefix.isEmpty())
509 job->setInstallPrefix(installPrefix);
510 job->setBuildType(cg.readEntry<int>(QMakeConfig::BUILD_TYPE, 0));
511 job->setExtraArguments(cg.readEntry(QMakeConfig::EXTRA_ARGUMENTS, QString()));
512
513 KDevelop::ICore::self()->runController()->registerJob(job);
514}
515
516KDevelop::Path QMakeProjectManager::compiler(KDevelop::ProjectTargetItem* p) const
517{

Callers

nothing calls this directly

Calls 13

toLocalFileMethod · 0.80
setQMakePathMethod · 0.80
readEntryMethod · 0.80
registerJobMethod · 0.80
runControllerMethod · 0.80
QStringClass · 0.50
pathMethod · 0.45
projectMethod · 0.45
projectConfigurationMethod · 0.45
isEmptyMethod · 0.45
setInstallPrefixMethod · 0.45
setBuildTypeMethod · 0.45

Tested by

no test coverage detected