mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-15 21:01:45 -05:00
Have Windows plugins (.dll) searched by plugin manager loader. Added .pro file for filesource input plugin
This commit is contained in:
parent
f4f8c3d2f5
commit
f81820fa58
33
plugins/samplesource/filesource/filesource.pro
Normal file
33
plugins/samplesource/filesource/filesource.pro
Normal 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
|
@ -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
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user