Changeset View
Changeset View
Standalone View
Standalone View
plugins/custom-buildsystem/custombuildsystemplugin.cpp
Show First 20 Lines • Show All 189 Lines • ▼ Show 20 Line(s) | |||||
190 | KDevelop::ConfigPage* CustomBuildSystem::perProjectConfigPage(int number, const KDevelop::ProjectConfigOptions& options, QWidget* parent) | 190 | KDevelop::ConfigPage* CustomBuildSystem::perProjectConfigPage(int number, const KDevelop::ProjectConfigOptions& options, QWidget* parent) | ||
191 | { | 191 | { | ||
192 | if (number == 0) { | 192 | if (number == 0) { | ||
193 | return new CustomBuildSystemKCModule(this, options, parent); | 193 | return new CustomBuildSystemKCModule(this, options, parent); | ||
194 | } | 194 | } | ||
195 | return nullptr; | 195 | return nullptr; | ||
196 | } | 196 | } | ||
197 | 197 | | |||
198 | KDevelop::Path CustomBuildSystem::compiler(KDevelop::ProjectTargetItem* item) const | ||||
199 | { | ||||
200 | KConfigGroup g = configuration( item->project() ); | ||||
201 | const QString subgrpname = ConfigConstants::toolGroupPrefix() + QLatin1String("Build"); | ||||
mwolff: this is wrong, you'll have to introduce another key for this, building could e.g. be "make" and… | |||||
202 | KConfigGroup grp = g.group( subgrpname ); | ||||
mwolff: remove the second empty line | |||||
203 | return KDevelop::Path(grp.readEntry(ConfigConstants::toolExecutable(), QUrl())); | ||||
204 | } | ||||
205 | | ||||
206 | | ||||
198 | #include "custombuildsystemplugin.moc" | 207 | #include "custombuildsystemplugin.moc" |
this is wrong, you'll have to introduce another key for this, building could e.g. be "make" and not the compiler itself
feel free to leave this not-implemented and return nothing for now, and then get some sane default in the IADM