1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-15 12:51:49 -05:00

Have Windows plugins (.dll) searched by plugin manager loader. Added .pro file for filesource input plugin

This commit is contained in:
Edouard Griffiths 2016-03-08 13:58:53 +01:00
parent f4f8c3d2f5
commit f81820fa58
3 changed files with 35 additions and 1 deletions

View File

@ -0,0 +1,33 @@
#--------------------------------------------------------
#
# Pro file for Android and Windows builds with Qt Creator
#
#--------------------------------------------------------
TEMPLATE = lib
CONFIG += plugin
QT += core gui widgets multimedia
TARGET = inputfilesource
INCLUDEPATH += $$PWD
INCLUDEPATH += ../../../sdrbase
CONFIG(release): build_subdir = release
CONFIG(debug): build_subdir = debug
SOURCES += filesourcegui.cpp\
filesourceinput.cpp\
filesourceplugin.cpp\
filesourcethread.cpp
HEADERS += filesourcegui.h\
filesourceinput.h\
filesourceplugin.h\
filesourcethread.h
FORMS += filesourcegui.ui
LIBS += -L../../../sdrbase/$${build_subdir} -lsdrbase
RESOURCES = ../../../sdrbase/resources/res.qrc

View File

@ -6,6 +6,7 @@
TEMPLATE = subdirs TEMPLATE = subdirs
SUBDIRS = sdrbase SUBDIRS = sdrbase
SUBDIRS += plugins/samplesource/filesource
# Main app must be last # Main app must be last
CONFIG += ordered CONFIG += ordered

View File

@ -448,7 +448,7 @@ void PluginManager::loadPlugins(const QDir& dir)
foreach (QString fileName, pluginsDir.entryList(QDir::Files)) foreach (QString fileName, pluginsDir.entryList(QDir::Files))
{ {
if (fileName.endsWith(".so")) if (fileName.endsWith(".so") || fileName.endsWith(".dll"))
{ {
qDebug() << "PluginManager::loadPlugins: fileName: " << qPrintable(fileName); qDebug() << "PluginManager::loadPlugins: fileName: " << qPrintable(fileName);