| 480 | } |
| 481 | |
| 482 | Path MesonManager::findMeson() const |
| 483 | { |
| 484 | QString mesonPath; |
| 485 | |
| 486 | const static QStringList mesonExecutables = { QStringLiteral("meson"), QStringLiteral("meson.py") }; |
| 487 | const static QStringList mesonPaths |
| 488 | = { QStringLiteral("%1/.local/bin").arg(QStandardPaths::standardLocations(QStandardPaths::HomeLocation)[0]) }; |
| 489 | |
| 490 | for (const auto& i : mesonExecutables) { |
| 491 | mesonPath = QStandardPaths::findExecutable(i); |
| 492 | if (!mesonPath.isEmpty()) { |
| 493 | break; |
| 494 | } |
| 495 | |
| 496 | mesonPath = QStandardPaths::findExecutable(i, mesonPaths); |
| 497 | if (!mesonPath.isEmpty()) { |
| 498 | break; |
| 499 | } |
| 500 | } |
| 501 | |
| 502 | return Path(mesonPath); |
| 503 | } |
| 504 | |
| 505 | // *********** |
| 506 | // * IPlugin * |