1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-17 23:28:50 -05:00

Local Input/Sink: added server plugins

This commit is contained in:
f4exb 2019-05-02 11:33:32 +02:00
parent ab98a84532
commit 52a2fc44b8
6 changed files with 86 additions and 39 deletions

View File

@ -35,35 +35,18 @@ add_library(localsink SHARED
${localsink_FORMS_HEADERS}
)
if (BUILD_DEBIAN)
target_include_directories(localsink PUBLIC
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
)
else (BUILD_DEBIAN)
target_include_directories(localsink PUBLIC
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
)
endif (BUILD_DEBIAN)
if (BUILD_DEBIAN)
target_link_libraries(localsink
${QT_LIBRARIES}
sdrbase
sdrgui
swagger
)
else (BUILD_DEBIAN)
target_link_libraries(localsink
${QT_LIBRARIES}
sdrbase
sdrgui
swagger
)
endif (BUILD_DEBIAN)
target_link_libraries(localsink Qt5::Core Qt5::Widgets)

View File

@ -20,7 +20,6 @@ set(localinput_FORMS
localinputgui.ui
)
#include(${QT_USE_FILE})
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_SHARED)
@ -33,39 +32,18 @@ add_library(inputlocal SHARED
${localinput_FORMS_HEADERS}
)
if (BUILD_DEBIAN)
target_include_directories(inputlocal PUBLIC
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${LIBCM256CCSRC}/..
)
else (BUILD_DEBIAN)
target_include_directories(inputlocal PUBLIC
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${CM256CC_INCLUDE_DIR}
)
endif (BUILD_DEBIAN)
if (BUILD_DEBIAN)
target_link_libraries(inputlocal
${QT_LIBRARIES}
cm256cc
sdrbase
sdrgui
swagger
)
else (BUILD_DEBIAN)
target_link_libraries(inputlocal
${QT_LIBRARIES}
${CM256CC_LIBRARIES}
sdrbase
sdrgui
swagger
)
endif (BUILD_DEBIAN)
target_link_libraries(inputlocal Qt5::Core Qt5::Widgets)

View File

@ -21,3 +21,4 @@ add_subdirectory(demodnfm)
add_subdirectory(demodssb)
add_subdirectory(demodwfm)
add_subdirectory(udpsink)
add_subdirectory(localsink)

View File

@ -0,0 +1,43 @@
project(localsink)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(PLUGIN_PREFIX "../../../plugins/channelrx/localsink")
set(localsink_SOURCES
${PLUGIN_PREFIX}/localsink.cpp
${PLUGIN_PREFIX}/localsinksettings.cpp
${PLUGIN_PREFIX}/localsinkthread.cpp
${PLUGIN_PREFIX}/localsinkplugin.cpp
)
set(localsink_HEADERS
${PLUGIN_PREFIX}/localsink.h
${PLUGIN_PREFIX}/localsinksettings.h
${PLUGIN_PREFIX}/localsinkthread.h
${PLUGIN_PREFIX}/localsinkplugin.h
)
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_SHARED)
add_library(localsinksrv SHARED
${localsink_SOURCES}
${localsink_HEADERS_MOC}
)
target_include_directories(localsinksrv PUBLIC
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
)
target_link_libraries(localsinksrv
${QT_LIBRARIES}
sdrbase
swagger
)
target_link_libraries(localsinksrv Qt5::Core)
install(TARGETS localsinksrv DESTINATION lib/pluginssrv/channelrx)

View File

@ -106,3 +106,4 @@ endif (BUILD_DEBIAN)
add_subdirectory(filesource)
add_subdirectory(testsource)
add_subdirectory(localinput)

View File

@ -0,0 +1,41 @@
project(localinput)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(PLUGIN_PREFIX "../../../plugins/samplesource/localinput")
set(localinput_SOURCES
${PLUGIN_PREFIX}/localinput.cpp
${PLUGIN_PREFIX}/localinputsettings.cpp
${PLUGIN_PREFIX}/localinputplugin.cpp
)
set(localinput_HEADERS
${PLUGIN_PREFIX}/localinput.h
${PLUGIN_PREFIX}/localinputsettings.h
${PLUGIN_PREFIX}/localinputplugin.h
)
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_SHARED)
add_library(inputlocalsrv SHARED
${localinput_SOURCES}
${localinput_HEADERS_MOC}
)
target_include_directories(inputlocalsrv PUBLIC
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
)
target_link_libraries(inputlocalsrv
${QT_LIBRARIES}
sdrbase
swagger
)
target_link_libraries(inputlocalsrv Qt5::Core)
install(TARGETS inputlocalsrv DESTINATION lib/pluginssrv/samplesource)