| 222 | } |
| 223 | |
| 224 | KDevelop::IProjectBuilder* CMakeBuilder::builderForProject(KDevelop::IProject* p) const |
| 225 | { |
| 226 | QString builddir = CMake::currentBuildDir( p ).toLocalFile(); |
| 227 | QMap<QString, IProjectBuilder*>::const_iterator it = m_builders.constBegin(), itEnd = m_builders.constEnd(); |
| 228 | for(; it!=itEnd; ++it) { |
| 229 | if (QFile::exists(builddir+QLatin1Char('/')+it.key())) |
| 230 | return it.value(); |
| 231 | } |
| 232 | //It means that it still has to be generated, so use the builder for |
| 233 | //the generator we use |
| 234 | return m_buildersForGenerator[CMake::defaultGenerator()]; |
| 235 | } |
| 236 | |
| 237 | QList< KDevelop::IProjectBuilder* > CMakeBuilder::additionalBuilderPlugins( KDevelop::IProject* project ) const |
| 238 | { |
nothing calls this directly
no test coverage detected