MCPcopy Create free account
hub / github.com/KDAB/GammaRay / targetPluginPaths

Function targetPluginPaths

common/paths.cpp:131–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131QStringList 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
153QString currentPluginsPath()
154{

Callers 1

addTargetPluginPathsFunction · 0.85

Calls 2

addPluginPathFunction · 0.85
rootPathFunction · 0.85

Tested by

no test coverage detected