| 79 | } |
| 80 | |
| 81 | QString AndroidRuntime::findExecutable(const QString& executableName) const |
| 82 | { |
| 83 | QStringList rtPaths; |
| 84 | |
| 85 | auto envPaths = getenv(QByteArrayLiteral("PATH")).split(':'); |
| 86 | std::transform(envPaths.begin(), envPaths.end(), std::back_inserter(rtPaths), |
| 87 | [this](QByteArray p) { |
| 88 | return pathInHost(Path(QString::fromLocal8Bit(p))).toLocalFile(); |
| 89 | }); |
| 90 | |
| 91 | return QStandardPaths::findExecutable(executableName, rtPaths); |
| 92 | } |
| 93 | |
| 94 | #include "moc_androidruntime.cpp" |
nothing calls this directly
no test coverage detected