| 129 | } |
| 130 | |
| 131 | QStringList targetPluginPaths(const QString &probeABI) |
| 132 | { |
| 133 | QStringList l; |
| 134 | |
| 135 | // based on rootPath() |
| 136 | addPluginPath(l, rootPath() + QLatin1String("/" GAMMARAY_TARGET_PLUGIN_INSTALL_DIR "/" GAMMARAY_PLUGIN_VERSION "/") + probeABI); |
| 137 | addPluginPath(l, rootPath() + QLatin1String("/" GAMMARAY_TARGET_PLUGIN_INSTALL_DIR)); |
| 138 | |
| 139 | // based on Qt plugin search paths |
| 140 | foreach (const auto &path, QCoreApplication::libraryPaths()) { |
| 141 | addPluginPath(l, path + QLatin1String("/gammaray/" GAMMARAY_PLUGIN_VERSION "/") + probeABI + QLatin1String("/target")); |
| 142 | addPluginPath(l, path + QLatin1String("/gammaray-target")); |
| 143 | } |
| 144 | |
| 145 | // based on Qt's own install layout and/or qt.conf |
| 146 | const auto path = QLibraryInfo::path(QLibraryInfo::PluginsPath); |
| 147 | addPluginPath(l, path + QLatin1String("/gammaray/" GAMMARAY_PLUGIN_VERSION "/") + probeABI + QLatin1String("/target")); |
| 148 | addPluginPath(l, path + QLatin1String("/gammaray-target")); |
| 149 | |
| 150 | return l; |
| 151 | } |
| 152 | |
| 153 | QString currentPluginsPath() |
| 154 | { |
no test coverage detected