mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-03 09:44:01 -05:00
Server: added UDP source plugin
This commit is contained in:
parent
1770192116
commit
358f683e37
@ -30,7 +30,6 @@
|
||||
#include "dsp/dspcommands.h"
|
||||
#include "device/devicesourceapi.h"
|
||||
|
||||
#include "udpsrcgui.h"
|
||||
#include "udpsrc.h"
|
||||
|
||||
const Real UDPSrc::m_agcTarget = 16384.0f;
|
||||
|
@ -20,7 +20,9 @@
|
||||
#include <QtPlugin>
|
||||
#include "plugin/pluginapi.h"
|
||||
|
||||
#ifndef SERVER_MODE
|
||||
#include "udpsrcgui.h"
|
||||
#endif
|
||||
#include "udpsrc.h"
|
||||
|
||||
const PluginDescriptor UDPSrcPlugin::m_pluginDescriptor = {
|
||||
@ -51,10 +53,19 @@ void UDPSrcPlugin::initPlugin(PluginAPI* pluginAPI)
|
||||
m_pluginAPI->registerRxChannel(UDPSrc::m_channelIdURI, UDPSrc::m_channelId, this);
|
||||
}
|
||||
|
||||
#ifdef SERVER_MODE
|
||||
PluginInstanceGUI* UDPSrcPlugin::createRxChannelGUI(
|
||||
DeviceUISet *deviceUISet __attribute__((unused)),
|
||||
BasebandSampleSink *rxChannel __attribute__((unused)))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
PluginInstanceGUI* UDPSrcPlugin::createRxChannelGUI(DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
|
||||
{
|
||||
return UDPSrcGUI::create(m_pluginAPI, deviceUISet, rxChannel);
|
||||
}
|
||||
#endif
|
||||
|
||||
BasebandSampleSink* UDPSrcPlugin::createRxChannelBS(DeviceSourceAPI *deviceAPI)
|
||||
{
|
||||
|
@ -2,7 +2,12 @@ project(demod)
|
||||
|
||||
add_subdirectory(demodam)
|
||||
add_subdirectory(demodbfm)
|
||||
add_subdirectory(demoddsd)
|
||||
|
||||
if((LIBDSDCC_FOUND AND LIBMBE_FOUND) OR BUILD_DEBIAN)
|
||||
add_subdirectory(demoddsd)
|
||||
endif()
|
||||
|
||||
add_subdirectory(demodnfm)
|
||||
add_subdirectory(demodssb)
|
||||
add_subdirectory(demodwfm)
|
||||
add_subdirectory(udpsrc)
|
||||
|
41
pluginssrv/channelrx/udpsrc/CMakeLists.txt
Normal file
41
pluginssrv/channelrx/udpsrc/CMakeLists.txt
Normal file
@ -0,0 +1,41 @@
|
||||
project(udpsrc)
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
||||
set(PLUGIN_PREFIX "../../../plugins/channelrx/udpsrc")
|
||||
|
||||
set(udpsrc_SOURCES
|
||||
${PLUGIN_PREFIX}/udpsrc.cpp
|
||||
${PLUGIN_PREFIX}/udpsrcplugin.cpp
|
||||
${PLUGIN_PREFIX}/udpsrcsettings.cpp
|
||||
)
|
||||
|
||||
set(udpsrc_HEADERS
|
||||
${PLUGIN_PREFIX}/udpsrc.h
|
||||
${PLUGIN_PREFIX}/udpsrcplugin.h
|
||||
${PLUGIN_PREFIX}/udpsrcsettings.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)
|
||||
|
||||
add_library(demodudpsrcsrv SHARED
|
||||
${udpsrc_SOURCES}
|
||||
${udpsrc_HEADERS_MOC}
|
||||
)
|
||||
|
||||
target_link_libraries(demodudpsrcsrv
|
||||
${QT_LIBRARIES}
|
||||
sdrbase
|
||||
)
|
||||
|
||||
qt5_use_modules(demodudpsrcsrv Core Network)
|
||||
|
||||
install(TARGETS demodudpsrcsrv DESTINATION lib/pluginssrv/channelrx)
|
Loading…
Reference in New Issue
Block a user