| 494 | } |
| 495 | |
| 496 | void 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 | |
| 516 | KDevelop::Path QMakeProjectManager::compiler(KDevelop::ProjectTargetItem* p) const |
| 517 | { |
nothing calls this directly
no test coverage detected