1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 10:05:46 -05:00

Server version: changed plugin lookup locations

This commit is contained in:
f4exb 2017-12-16 13:39:13 +01:00
parent 3169083013
commit 20c69adedf

View File

@ -56,14 +56,24 @@ PluginManager::~PluginManager()
void PluginManager::loadPlugins() void PluginManager::loadPlugins()
{ {
QString applicationDirPath = QCoreApplication::instance()->applicationDirPath(); QString applicationDirPath = QCoreApplication::instance()->applicationDirPath();
QString applicationLibPath = applicationDirPath + "/../lib"; QString applicationLibPath = applicationDirPath + "/lib/plugins";
qDebug() << "PluginManager::loadPlugins: " << qPrintable(applicationDirPath) << ", " << qPrintable(applicationLibPath); QString applicationBuildPath = applicationDirPath + "/plugins";
qDebug() << "PluginManager::loadPlugins: " << qPrintable(applicationLibPath) << "," << qPrintable(applicationBuildPath);
QDir pluginsBinDir = QDir(applicationDirPath); QDir pluginsLibDir = QDir(applicationLibPath);
QDir pluginsLibDir = QDir(applicationLibPath); QDir pluginsBuildDir = QDir(applicationBuildPath);
loadPlugins(pluginsBinDir); loadPlugins(pluginsLibDir);
loadPlugins(pluginsLibDir); loadPlugins(pluginsBuildDir);
// QString applicationLibPath = applicationDirPath + "/../lib/plugins";
// qDebug() << "PluginManager::loadPlugins: " << qPrintable(applicationDirPath) << ", " << qPrintable(applicationLibPath);
//
// QDir pluginsBinDir = QDir(applicationDirPath);
// QDir pluginsLibDir = QDir(applicationLibPath);
//
// loadPlugins(pluginsBinDir);
// loadPlugins(pluginsLibDir);
qSort(m_plugins); qSort(m_plugins);