MCPcopy Create free account
hub / github.com/KDE/kdevelop / findMeson

Method findMeson

plugins/meson/mesonmanager.cpp:482–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480}
481
482Path 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 *

Callers 4

getMesonConfigMethod · 0.80
resetFieldsMethod · 0.80
defaultsMethod · 0.80
MesonIntrospectJobMethod · 0.80

Calls 3

findExecutableFunction · 0.50
PathClass · 0.50
isEmptyMethod · 0.45

Tested by 1

MesonIntrospectJobMethod · 0.64