| 138 | } |
| 139 | |
| 140 | KJob* 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" |
nothing calls this directly
no test coverage detected