mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-23 18:52:28 -04:00
Build ModWFM tx channel server plugin and apply corrections to other server plugins
This commit is contained in:
parent
b4d7a0a905
commit
83efddee9a
@ -1,5 +1,4 @@
|
|||||||
#include <QtPlugin>
|
#include <QtPlugin>
|
||||||
#include <QAction>
|
|
||||||
#include "plugin/pluginapi.h"
|
#include "plugin/pluginapi.h"
|
||||||
|
|
||||||
#ifndef SERVER_MODE
|
#ifndef SERVER_MODE
|
||||||
|
@ -15,10 +15,11 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include <QtPlugin>
|
#include <QtPlugin>
|
||||||
#include <QAction>
|
|
||||||
#include "plugin/pluginapi.h"
|
#include "plugin/pluginapi.h"
|
||||||
|
|
||||||
|
#ifndef SERVER_MODE
|
||||||
#include "ammodgui.h"
|
#include "ammodgui.h"
|
||||||
|
#endif
|
||||||
#include "ammod.h"
|
#include "ammod.h"
|
||||||
#include "ammodplugin.h"
|
#include "ammodplugin.h"
|
||||||
|
|
||||||
@ -50,10 +51,19 @@ void AMModPlugin::initPlugin(PluginAPI* pluginAPI)
|
|||||||
m_pluginAPI->registerTxChannel(AMMod::m_channelIdURI, AMMod::m_channelId, this);
|
m_pluginAPI->registerTxChannel(AMMod::m_channelIdURI, AMMod::m_channelId, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef SERVER_MODE
|
||||||
|
PluginInstanceGUI* AMModPlugin::createTxChannelGUI(
|
||||||
|
DeviceUISet *deviceUISet __attribute__((unused)),
|
||||||
|
BasebandSampleSource *txChannel __attribute__((unused)))
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#else
|
||||||
PluginInstanceGUI* AMModPlugin::createTxChannelGUI(DeviceUISet *deviceUISet, BasebandSampleSource *txChannel)
|
PluginInstanceGUI* AMModPlugin::createTxChannelGUI(DeviceUISet *deviceUISet, BasebandSampleSource *txChannel)
|
||||||
{
|
{
|
||||||
return AMModGUI::create(m_pluginAPI, deviceUISet, txChannel);
|
return AMModGUI::create(m_pluginAPI, deviceUISet, txChannel);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
BasebandSampleSource* AMModPlugin::createTxChannelBS(DeviceSinkAPI *deviceAPI)
|
BasebandSampleSource* AMModPlugin::createTxChannelBS(DeviceSinkAPI *deviceAPI)
|
||||||
{
|
{
|
||||||
|
@ -15,10 +15,12 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include <QtPlugin>
|
#include <QtPlugin>
|
||||||
#include <QAction>
|
|
||||||
#include "plugin/pluginapi.h"
|
#include "plugin/pluginapi.h"
|
||||||
|
|
||||||
|
#ifndef SERVER_MODE
|
||||||
#include "nfmmodgui.h"
|
#include "nfmmodgui.h"
|
||||||
|
#endif
|
||||||
|
#include "nfmmod.h"
|
||||||
#include "nfmmodplugin.h"
|
#include "nfmmodplugin.h"
|
||||||
|
|
||||||
const PluginDescriptor NFMModPlugin::m_pluginDescriptor = {
|
const PluginDescriptor NFMModPlugin::m_pluginDescriptor = {
|
||||||
|
@ -15,10 +15,11 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include <QtPlugin>
|
#include <QtPlugin>
|
||||||
#include <QAction>
|
|
||||||
#include "plugin/pluginapi.h"
|
#include "plugin/pluginapi.h"
|
||||||
|
|
||||||
|
#ifndef SERVER_MODE
|
||||||
#include "wfmmodgui.h"
|
#include "wfmmodgui.h"
|
||||||
|
#endif
|
||||||
#include "wfmmod.h"
|
#include "wfmmod.h"
|
||||||
#include "wfmmodplugin.h"
|
#include "wfmmodplugin.h"
|
||||||
|
|
||||||
@ -50,10 +51,19 @@ void WFMModPlugin::initPlugin(PluginAPI* pluginAPI)
|
|||||||
m_pluginAPI->registerTxChannel(WFMMod::m_channelIdURI, WFMMod::m_channelId, this);
|
m_pluginAPI->registerTxChannel(WFMMod::m_channelIdURI, WFMMod::m_channelId, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef SERVER_MODE
|
||||||
|
PluginInstanceGUI* WFMModPlugin::createTxChannelGUI(
|
||||||
|
DeviceUISet *deviceUISet __attribute__((unused)),
|
||||||
|
BasebandSampleSource *txChannel __attribute__((unused)))
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#else
|
||||||
PluginInstanceGUI* WFMModPlugin::createTxChannelGUI(DeviceUISet *deviceUISet, BasebandSampleSource *txChannel)
|
PluginInstanceGUI* WFMModPlugin::createTxChannelGUI(DeviceUISet *deviceUISet, BasebandSampleSource *txChannel)
|
||||||
{
|
{
|
||||||
return WFMModGUI::create(m_pluginAPI, deviceUISet, txChannel);
|
return WFMModGUI::create(m_pluginAPI, deviceUISet, txChannel);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
BasebandSampleSource* WFMModPlugin::createTxChannelBS(DeviceSinkAPI *deviceAPI)
|
BasebandSampleSource* WFMModPlugin::createTxChannelBS(DeviceSinkAPI *deviceAPI)
|
||||||
{
|
{
|
||||||
|
@ -37,6 +37,6 @@ target_link_libraries(demodamsrv
|
|||||||
swagger
|
swagger
|
||||||
)
|
)
|
||||||
|
|
||||||
qt5_use_modules(demodamsrv Core Widgets)
|
qt5_use_modules(demodamsrv Core)
|
||||||
|
|
||||||
install(TARGETS demodamsrv DESTINATION lib/pluginssrv/channelrx)
|
install(TARGETS demodamsrv DESTINATION lib/pluginssrv/channelrx)
|
@ -2,3 +2,4 @@ project(mod)
|
|||||||
|
|
||||||
add_subdirectory(modam)
|
add_subdirectory(modam)
|
||||||
add_subdirectory(modnfm)
|
add_subdirectory(modnfm)
|
||||||
|
add_subdirectory(modwfm)
|
||||||
|
@ -36,6 +36,6 @@ target_link_libraries(modamsrv
|
|||||||
swagger
|
swagger
|
||||||
)
|
)
|
||||||
|
|
||||||
qt5_use_modules(modamsrv Core Widgets)
|
qt5_use_modules(modamsrv Core)
|
||||||
|
|
||||||
install(TARGETS modamsrv DESTINATION lib/pluginssrv/channeltx)
|
install(TARGETS modamsrv DESTINATION lib/pluginssrv/channeltx)
|
@ -28,13 +28,11 @@ add_definitions(-DQT_SHARED)
|
|||||||
add_library(modnfmsrv SHARED
|
add_library(modnfmsrv SHARED
|
||||||
${modnfm_SOURCES}
|
${modnfm_SOURCES}
|
||||||
${modnfm_HEADERS_MOC}
|
${modnfm_HEADERS_MOC}
|
||||||
${modnfm_FORMS_HEADERS}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(modnfmsrv
|
target_link_libraries(modnfmsrv
|
||||||
${QT_LIBRARIES}
|
${QT_LIBRARIES}
|
||||||
sdrbase
|
sdrbase
|
||||||
sdrgui
|
|
||||||
swagger
|
swagger
|
||||||
)
|
)
|
||||||
|
|
||||||
|
41
pluginssrv/channeltx/modwfm/CMakeLists.txt
Normal file
41
pluginssrv/channeltx/modwfm/CMakeLists.txt
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
project(modwfm)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
||||||
|
set(PLUGIN_PREFIX "../../../plugins/channeltx/modwfm")
|
||||||
|
|
||||||
|
set(modwfm_SOURCES
|
||||||
|
${PLUGIN_PREFIX}/wfmmod.cpp
|
||||||
|
${PLUGIN_PREFIX}/wfmmodplugin.cpp
|
||||||
|
${PLUGIN_PREFIX}/wfmmodsettings.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
set(modwfm_HEADERS
|
||||||
|
${PLUGIN_PREFIX}/wfmmod.h
|
||||||
|
${PLUGIN_PREFIX}/wfmmodplugin.h
|
||||||
|
${PLUGIN_PREFIX}/wfmmodsettings.h
|
||||||
|
)
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
.
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
||||||
|
)
|
||||||
|
|
||||||
|
add_definitions(${QT_DEFINITIONS})
|
||||||
|
add_definitions(-DQT_PLUGIN)
|
||||||
|
add_definitions(-DQT_SHARED)
|
||||||
|
|
||||||
|
add_library(modwfmsrv SHARED
|
||||||
|
${modwfm_SOURCES}
|
||||||
|
${modwfm_HEADERS_MOC}
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(modwfmsrv
|
||||||
|
${QT_LIBRARIES}
|
||||||
|
sdrbase
|
||||||
|
swagger
|
||||||
|
)
|
||||||
|
|
||||||
|
qt5_use_modules(modwfmsrv Core)
|
||||||
|
|
||||||
|
install(TARGETS modwfmsrv DESTINATION lib/pluginssrv/channeltx)
|
Loading…
x
Reference in New Issue
Block a user