1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 01:39:05 -05:00

Server: added SSB demod plugin

This commit is contained in:
f4exb 2018-05-29 10:34:00 +02:00
parent c07bb0cd4d
commit f30b3fab0f
3 changed files with 55 additions and 0 deletions

View File

@ -3,7 +3,9 @@
#include <device/devicesourceapi.h>
#include <QtPlugin>
#include "plugin/pluginapi.h"
#ifndef SERVER_MODE
#include "ssbdemodgui.h"
#endif
#include "ssbdemod.h"
const PluginDescriptor SSBPlugin::m_pluginDescriptor = {
@ -34,10 +36,19 @@ void SSBPlugin::initPlugin(PluginAPI* pluginAPI)
m_pluginAPI->registerRxChannel(SSBDemod::m_channelIdURI, SSBDemod::m_channelId, this);
}
#ifdef SERVER_MODE
PluginInstanceGUI* SSBPlugin::createRxChannelGUI(
DeviceUISet *deviceUISet __attribute__((unused)),
BasebandSampleSink *rxChannel __attribute__((unused)))
{
return 0;
}
#else
PluginInstanceGUI* SSBPlugin::createRxChannelGUI(DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
{
return SSBDemodGUI::create(m_pluginAPI, deviceUISet, rxChannel);
}
#endif
BasebandSampleSink* SSBPlugin::createRxChannelBS(DeviceSourceAPI *deviceAPI)
{

View File

@ -4,3 +4,4 @@ add_subdirectory(demodam)
add_subdirectory(demodbfm)
add_subdirectory(demoddsd)
add_subdirectory(demodnfm)
add_subdirectory(demodssb)

View File

@ -0,0 +1,43 @@
project(ssb)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(PLUGIN_PREFIX "../../../plugins/channelrx/demodssb")
set(ssb_SOURCES
${PLUGIN_PREFIX}/ssbdemod.cpp
${PLUGIN_PREFIX}/ssbdemodsettings.cpp
${PLUGIN_PREFIX}/ssbplugin.cpp
)
set(ssb_HEADERS
${PLUGIN_PREFIX}/ssbdemod.h
${PLUGIN_PREFIX}/ssbdemodsettings.h
${PLUGIN_PREFIX}/ssbplugin.h
)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
)
#include(${QT_USE_FILE})
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_SHARED)
#qt5_wrap_cpp(ssb_HEADERS_MOC ${ssb_HEADERS})
add_library(demodssbsrv SHARED
${ssb_SOURCES}
${ssb_HEADERS_MOC}
)
target_link_libraries(demodssbsrv
${QT_LIBRARIES}
sdrbase
)
qt5_use_modules(demodssbsrv Core)
install(TARGETS demodssbsrv DESTINATION lib/pluginssrv/channelrx)