diff --git a/plugins/channelrx/demodssb/ssbplugin.cpp b/plugins/channelrx/demodssb/ssbplugin.cpp index c5e930f84..646de708f 100644 --- a/plugins/channelrx/demodssb/ssbplugin.cpp +++ b/plugins/channelrx/demodssb/ssbplugin.cpp @@ -3,7 +3,9 @@ #include #include #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) { diff --git a/pluginssrv/channelrx/CMakeLists.txt b/pluginssrv/channelrx/CMakeLists.txt index 38a342c1f..93d93d349 100644 --- a/pluginssrv/channelrx/CMakeLists.txt +++ b/pluginssrv/channelrx/CMakeLists.txt @@ -4,3 +4,4 @@ add_subdirectory(demodam) add_subdirectory(demodbfm) add_subdirectory(demoddsd) add_subdirectory(demodnfm) +add_subdirectory(demodssb) diff --git a/pluginssrv/channelrx/demodssb/CMakeLists.txt b/pluginssrv/channelrx/demodssb/CMakeLists.txt new file mode 100644 index 000000000..d7c87016e --- /dev/null +++ b/pluginssrv/channelrx/demodssb/CMakeLists.txt @@ -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)