| 32 | static const QString BACKEND = QStringLiteral("Meson Generator Backend"); |
| 33 | |
| 34 | int MesonConfig::addBuildDir(BuildDir dir) |
| 35 | { |
| 36 | int newIndex = buildDirs.size(); |
| 37 | dir.canonicalizePaths(); |
| 38 | qCDebug(KDEV_Meson) << "BuildDirectories::addBuildDir()=" << dir.buildDir; |
| 39 | buildDirs.push_back(dir); |
| 40 | |
| 41 | // Make sure m_currentIndex is valid |
| 42 | if (currentIndex < 0) { |
| 43 | currentIndex = newIndex; |
| 44 | } |
| 45 | |
| 46 | return newIndex; |
| 47 | } |
| 48 | |
| 49 | bool MesonConfig::removeBuildDir(int index) |
| 50 | { |
no test coverage detected