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

Method maybePrependConfigureJob

plugins/qmakebuilder/qmakebuilder.cpp:140–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140KJob* QMakeBuilder::maybePrependConfigureJob(ProjectBaseItem* dom, KJob* job, BuilderJob::BuildType type)
141{
142 Q_ASSERT(dom);
143
144 if (!job) {
145 qCDebug(KDEV_QMAKEBUILDER) << "Null job passed";
146 return nullptr;
147 }
148
149 const bool needsConfigure = QMakeUtils::checkForNeedingConfigure(dom->project());
150 if (needsConfigure) {
151 qCDebug(KDEV_QMAKEBUILDER) << "Project" << dom->project()->name() << "needs configure";
152
153 auto builderJob = new BuilderJob;
154 builderJob->addCustomJob(BuilderJob::Configure, configure(dom->project()), dom);
155 builderJob->addCustomJob(type, job, dom);
156 builderJob->updateJobName();
157 return builderJob;
158 }
159
160 return job;
161}
162
163#include "qmakebuilder.moc"
164#include "moc_qmakebuilder.cpp"

Callers

nothing calls this directly

Calls 5

checkForNeedingConfigureFunction · 0.85
addCustomJobMethod · 0.80
updateJobNameMethod · 0.80
projectMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected