mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-18 07:35:47 -05:00
Local Input/Sink: added server plugins
This commit is contained in:
parent
ab98a84532
commit
52a2fc44b8
@ -35,35 +35,18 @@ add_library(localsink SHARED
|
|||||||
${localsink_FORMS_HEADERS}
|
${localsink_FORMS_HEADERS}
|
||||||
)
|
)
|
||||||
|
|
||||||
if (BUILD_DEBIAN)
|
|
||||||
target_include_directories(localsink PUBLIC
|
target_include_directories(localsink PUBLIC
|
||||||
.
|
.
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
${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
|
target_link_libraries(localsink
|
||||||
${QT_LIBRARIES}
|
${QT_LIBRARIES}
|
||||||
sdrbase
|
sdrbase
|
||||||
sdrgui
|
sdrgui
|
||||||
swagger
|
swagger
|
||||||
)
|
)
|
||||||
else (BUILD_DEBIAN)
|
|
||||||
target_link_libraries(localsink
|
|
||||||
${QT_LIBRARIES}
|
|
||||||
sdrbase
|
|
||||||
sdrgui
|
|
||||||
swagger
|
|
||||||
)
|
|
||||||
endif (BUILD_DEBIAN)
|
|
||||||
|
|
||||||
target_link_libraries(localsink Qt5::Core Qt5::Widgets)
|
target_link_libraries(localsink Qt5::Core Qt5::Widgets)
|
||||||
|
|
||||||
|
@ -20,7 +20,6 @@ set(localinput_FORMS
|
|||||||
localinputgui.ui
|
localinputgui.ui
|
||||||
)
|
)
|
||||||
|
|
||||||
#include(${QT_USE_FILE})
|
|
||||||
add_definitions(${QT_DEFINITIONS})
|
add_definitions(${QT_DEFINITIONS})
|
||||||
add_definitions(-DQT_PLUGIN)
|
add_definitions(-DQT_PLUGIN)
|
||||||
add_definitions(-DQT_SHARED)
|
add_definitions(-DQT_SHARED)
|
||||||
@ -33,39 +32,18 @@ add_library(inputlocal SHARED
|
|||||||
${localinput_FORMS_HEADERS}
|
${localinput_FORMS_HEADERS}
|
||||||
)
|
)
|
||||||
|
|
||||||
if (BUILD_DEBIAN)
|
|
||||||
target_include_directories(inputlocal PUBLIC
|
target_include_directories(inputlocal PUBLIC
|
||||||
.
|
.
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
${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
|
target_link_libraries(inputlocal
|
||||||
${QT_LIBRARIES}
|
${QT_LIBRARIES}
|
||||||
cm256cc
|
|
||||||
sdrbase
|
sdrbase
|
||||||
sdrgui
|
sdrgui
|
||||||
swagger
|
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)
|
target_link_libraries(inputlocal Qt5::Core Qt5::Widgets)
|
||||||
|
|
||||||
|
@ -21,3 +21,4 @@ add_subdirectory(demodnfm)
|
|||||||
add_subdirectory(demodssb)
|
add_subdirectory(demodssb)
|
||||||
add_subdirectory(demodwfm)
|
add_subdirectory(demodwfm)
|
||||||
add_subdirectory(udpsink)
|
add_subdirectory(udpsink)
|
||||||
|
add_subdirectory(localsink)
|
||||||
|
43
pluginssrv/channelrx/localsink/CMakeLists.txt
Normal file
43
pluginssrv/channelrx/localsink/CMakeLists.txt
Normal 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)
|
@ -106,3 +106,4 @@ endif (BUILD_DEBIAN)
|
|||||||
|
|
||||||
add_subdirectory(filesource)
|
add_subdirectory(filesource)
|
||||||
add_subdirectory(testsource)
|
add_subdirectory(testsource)
|
||||||
|
add_subdirectory(localinput)
|
41
pluginssrv/samplesource/localinput/CMakeLists.txt
Normal file
41
pluginssrv/samplesource/localinput/CMakeLists.txt
Normal 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)
|
Loading…
Reference in New Issue
Block a user