new cmake stuff

This commit is contained in:
AlexandreRouma 2023-02-14 16:25:05 +01:00
parent a1b6cbb38a
commit 7cfc30ee6e
42 changed files with 134 additions and 906 deletions

View File

@ -1,24 +1,6 @@
cmake_minimum_required(VERSION 3.13)
project(sdrpp)
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_INSTALL_PREFIX "/usr/local")
else()
set(CMAKE_INSTALL_PREFIX "/usr")
endif()
endif()
# Configure toolchain for android
if (ANDROID)
set(CMAKE_SHARED_LINKER_FLAGS
"${CMAKE_SHARED_LINKER_FLAGS} -u ANativeActivity_onCreate"
)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX14_EXTENSION_COMPILE_OPTION "-std=c++17")
endif (ANDROID)
# Backends
option(OPT_BACKEND_GLFW "Use the GLFW backend" ON)
option(OPT_BACKEND_ANDROID "Use the Android backend" OFF)
@ -75,6 +57,41 @@ option(OPT_BUILD_SCHEDULER "Build the scheduler" OFF)
option(USE_INTERNAL_LIBCORRECT "Use an internal version of libcorrect" ON)
option(USE_BUNDLE_DEFAULTS "Set the default resource and module directories to the right ones for a MacOS .app" OFF)
# Module cmake path
set(SDRPP_MODULE_CMAKE "${CMAKE_SOURCE_DIR}/sdrpp_module.cmake")
# Root source folder
set(SDRPP_CORE_ROOT "${CMAKE_SOURCE_DIR}/core/src/")
# Compiler flags
if (MSVC)
set(SDRPP_COMPILER_ARGS /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(SDRPP_COMPILER_ARGS -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
set(SDRPP_COMPILER_ARGS -O3 -std=c++17)
endif ()
set(SDRPP_MODULE_COMPILER_ARGS ${SDRPP_COMPILER_ARGS})
# Set a default install prefix
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_INSTALL_PREFIX "/usr/local")
else()
set(CMAKE_INSTALL_PREFIX "/usr")
endif()
endif()
# Configure toolchain for android
if (ANDROID)
set(CMAKE_SHARED_LINKER_FLAGS
"${CMAKE_SHARED_LINKER_FLAGS} -u ANativeActivity_onCreate"
)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX14_EXTENSION_COMPILE_OPTION "-std=c++17")
endif (ANDROID)
# Core of SDR++
add_subdirectory("core")
@ -236,15 +253,8 @@ endif (OPT_BUILD_SCHEDULER)
add_executable(sdrpp "src/main.cpp" "win32/resources.rc")
target_link_libraries(sdrpp PRIVATE sdrpp_core)
# Compiler arguments for each platform
if (MSVC)
target_compile_options(sdrpp PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(sdrpp PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(sdrpp PRIVATE -O3 -std=c++17)
endif ()
# Compiler arguments
target_compile_options(sdrpp PRIVATE ${SDRPP_COMPILER_ARGS})
# Copy dynamic libs over
if (MSVC)
@ -272,6 +282,9 @@ endif ()
# cmake .. "-DCMAKE_TOOLCHAIN_FILE=C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake" -DOPT_BUILD_BLADERF_SOURCE=ON -DOPT_BUILD_LIMESDR_SOURCE=ON -DOPT_BUILD_SDRPLAY_SOURCE=ON -DOPT_BUILD_M17_DECODER=ON -DOPT_BUILD_SCANNER=ON -DOPT_BUILD_SCHEDULER=ON -DOPT_BUILD_USRP_SOURCE=ON
# Create module cmake file
configure_file(${CMAKE_SOURCE_DIR}/sdrpp_module.cmake ${CMAKE_CURRENT_BINARY_DIR}/sdrpp_module.cmake @ONLY)
# Install directives
install(TARGETS sdrpp DESTINATION bin)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/root/res/bandplans DESTINATION share/sdrpp)

View File

@ -30,13 +30,7 @@ endif (OPT_BACKEND_ANDROID)
add_library(sdrpp_core SHARED ${SRC} ${BACKEND_SRC})
# Set compiler options
if (MSVC)
target_compile_options(sdrpp_core PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(sdrpp_core PRIVATE -O3 -std=c++17)
else ()
target_compile_options(sdrpp_core PRIVATE -O3 -std=c++17)
endif ()
target_compile_options(sdrpp_core PRIVATE ${SDRPP_COMPILER_ARGS})
# Set the install prefix
target_compile_definitions(sdrpp_core PUBLIC INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}")

View File

@ -3,19 +3,6 @@ project(atv_decoder)
file(GLOB_RECURSE SRC "src/*.cpp" "src/*.c")
include_directories("src/")
include(${SDRPP_MODULE_CMAKE})
add_library(atv_decoder SHARED ${SRC})
target_link_libraries(atv_decoder PRIVATE sdrpp_core)
set_target_properties(atv_decoder PROPERTIES PREFIX "")
if (MSVC)
target_compile_options(atv_decoder PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(atv_decoder PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(atv_decoder PRIVATE -O3 -std=c++17)
endif ()
# Install directives
install(TARGETS atv_decoder DESTINATION lib/sdrpp/plugins)
target_include_directories(atv_decoder PRIVATE "src/")

View File

@ -3,19 +3,6 @@ project(falcon9_decoder)
file(GLOB_RECURSE SRC "src/*.cpp")
add_library(falcon9_decoder SHARED ${SRC})
target_link_libraries(falcon9_decoder PRIVATE sdrpp_core)
set_target_properties(falcon9_decoder PROPERTIES PREFIX "")
include(${SDRPP_MODULE_CMAKE})
target_include_directories(falcon9_decoder PRIVATE "src/")
if (MSVC)
target_compile_options(falcon9_decoder PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(falcon9_decoder PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(falcon9_decoder PRIVATE -O3 -std=c++17)
endif ()
# Install directives
install(TARGETS falcon9_decoder DESTINATION lib/sdrpp/plugins)

View File

@ -3,19 +3,6 @@ project(kg_sstv_decoder)
file(GLOB_RECURSE SRC "src/*.cpp" "src/*.c")
add_library(kg_sstv_decoder SHARED ${SRC})
target_link_libraries(kg_sstv_decoder PRIVATE sdrpp_core)
set_target_properties(kg_sstv_decoder PROPERTIES PREFIX "")
include(${SDRPP_MODULE_CMAKE})
target_include_directories(kg_sstv_decoder PRIVATE "src/")
if (MSVC)
target_compile_options(kg_sstv_decoder PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(kg_sstv_decoder PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(kg_sstv_decoder PRIVATE -O3 -std=c++17)
endif ()
# Install directives
install(TARGETS kg_sstv_decoder DESTINATION lib/sdrpp/plugins)

View File

@ -3,20 +3,10 @@ project(m17_decoder)
file(GLOB_RECURSE SRC "src/*.cpp" "src/*.c")
add_library(m17_decoder SHARED ${SRC})
target_link_libraries(m17_decoder PRIVATE sdrpp_core)
set_target_properties(m17_decoder PROPERTIES PREFIX "")
include(${SDRPP_MODULE_CMAKE})
target_include_directories(m17_decoder PRIVATE "src/")
if (MSVC)
target_compile_options(m17_decoder PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(m17_decoder PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(m17_decoder PRIVATE -O3 -std=c++17)
endif ()
if (MSVC)
# Lib path
target_include_directories(m17_decoder PRIVATE "C:/Program Files/codec2/include/")
@ -45,10 +35,4 @@ else ()
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
target_include_directories(m17_decoder PRIVATE "/usr/local/include")
endif()
endif ()
# Install directives
install(TARGETS m17_decoder DESTINATION lib/sdrpp/plugins)

View File

@ -3,19 +3,6 @@ project(meteor_demodulator)
file(GLOB_RECURSE SRC "src/*.cpp" "src/*.c")
include_directories("src/")
include(${SDRPP_MODULE_CMAKE})
add_library(meteor_demodulator SHARED ${SRC})
target_link_libraries(meteor_demodulator PRIVATE sdrpp_core)
set_target_properties(meteor_demodulator PROPERTIES PREFIX "")
if (MSVC)
target_compile_options(meteor_demodulator PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(meteor_demodulator PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(meteor_demodulator PRIVATE -O3 -std=c++17)
endif ()
# Install directives
install(TARGETS meteor_demodulator DESTINATION lib/sdrpp/plugins)
target_include_directories(meteor_demodulator PRIVATE "src/")

View File

@ -3,19 +3,6 @@ project(radio)
file(GLOB_RECURSE SRC "src/*.cpp")
add_library(radio SHARED ${SRC})
target_link_libraries(radio PRIVATE sdrpp_core)
set_target_properties(radio PROPERTIES PREFIX "")
include(${SDRPP_MODULE_CMAKE})
target_include_directories(radio PRIVATE "src/")
if (MSVC)
target_compile_options(radio PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(radio PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(radio PRIVATE -O3 -std=c++17)
endif ()
# Install directives
install(TARGETS radio DESTINATION lib/sdrpp/plugins)

View File

@ -3,19 +3,6 @@ project(weather_sat_decoder)
file(GLOB_RECURSE SRC "src/*.cpp" "src/*.c")
add_library(weather_sat_decoder SHARED ${SRC})
target_link_libraries(weather_sat_decoder PRIVATE sdrpp_core)
set_target_properties(weather_sat_decoder PROPERTIES PREFIX "")
include(${SDRPP_MODULE_CMAKE})
target_include_directories(weather_sat_decoder PRIVATE "src/")
if (MSVC)
target_compile_options(weather_sat_decoder PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(weather_sat_decoder PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(weather_sat_decoder PRIVATE -O3 -std=c++17)
endif ()
# Install directives
install(TARGETS weather_sat_decoder DESTINATION lib/sdrpp/plugins)

View File

@ -3,19 +3,4 @@ project(demo)
file(GLOB SRC "src/*.cpp")
add_library(demo SHARED ${SRC})
target_link_libraries(demo PRIVATE sdrpp_core)
set_target_properties(demo PROPERTIES PREFIX "")
target_include_directories(demo PRIVATE "src/")
if (MSVC)
target_compile_options(demo PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(demo PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(demo PRIVATE -O3 -std=c++17)
endif ()
# Install directives
install(TARGETS demo DESTINATION lib/sdrpp/plugins)
include(${SDRPP_MODULE_CMAKE})

View File

@ -1,9 +1,7 @@
cmake_minimum_required(VERSION 3.13)
project(discord_integration)
if (MSVC)
# Nothing to add
else ()
if (NOT MSVC)
add_compile_options(-fPIC)
endif ()
@ -11,19 +9,7 @@ add_subdirectory("discord-rpc")
file(GLOB SRC "src/*.cpp")
add_library(discord_integration SHARED ${SRC})
target_link_libraries(discord_integration PRIVATE sdrpp_core discord-rpc)
set_target_properties(discord_integration PROPERTIES PREFIX "")
include(${SDRPP_MODULE_CMAKE})
target_link_libraries(discord_integration PRIVATE discord-rpc)
target_include_directories(discord_integration PRIVATE "src/" "discord-rpc/include" "../../decoder_modules/radio/src/")
if (MSVC)
target_compile_options(discord_integration PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(discord_integration PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(discord_integration PRIVATE -O3 -std=c++17)
endif ()
# Install directives
install(TARGETS discord_integration DESTINATION lib/sdrpp/plugins)

View File

@ -3,19 +3,6 @@ project(frequency_manager)
file(GLOB SRC "src/*.cpp")
add_library(frequency_manager SHARED ${SRC})
target_link_libraries(frequency_manager PRIVATE sdrpp_core)
set_target_properties(frequency_manager PROPERTIES PREFIX "")
include(${SDRPP_MODULE_CMAKE})
target_include_directories(frequency_manager PRIVATE "src/" "../../decoder_modules/radio/src")
if (MSVC)
target_compile_options(frequency_manager PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(frequency_manager PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(frequency_manager PRIVATE -O3 -std=c++17)
endif ()
# Install directives
install(TARGETS frequency_manager DESTINATION lib/sdrpp/plugins)

View File

@ -3,19 +3,6 @@ project(recorder)
file(GLOB SRC "src/*.cpp")
add_library(recorder SHARED ${SRC})
target_link_libraries(recorder PRIVATE sdrpp_core)
set_target_properties(recorder PROPERTIES PREFIX "")
include(${SDRPP_MODULE_CMAKE})
target_include_directories(recorder PRIVATE "src/")
if (MSVC)
target_compile_options(recorder PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(recorder PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(recorder PRIVATE -O3 -std=c++17)
endif ()
# Install directives
install(TARGETS recorder DESTINATION lib/sdrpp/plugins)

View File

@ -3,22 +3,9 @@ project(rigctl_client)
file(GLOB SRC "src/*.cpp")
add_library(rigctl_client SHARED ${SRC})
target_link_libraries(rigctl_client PRIVATE sdrpp_core)
set_target_properties(rigctl_client PROPERTIES PREFIX "")
include(${SDRPP_MODULE_CMAKE})
target_include_directories(rigctl_client PRIVATE "src/")
target_include_directories(rigctl_client PRIVATE "../recorder/src")
target_include_directories(rigctl_client PRIVATE "../../decoder_modules/meteor_demodulator/src")
target_include_directories(rigctl_client PRIVATE "../../decoder_modules/radio/src")
if (MSVC)
target_compile_options(rigctl_client PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(rigctl_client PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(rigctl_client PRIVATE -O3 -std=c++17)
endif ()
# Install directives
install(TARGETS rigctl_client DESTINATION lib/sdrpp/plugins)

View File

@ -3,22 +3,9 @@ project(rigctl_server)
file(GLOB SRC "src/*.cpp")
add_library(rigctl_server SHARED ${SRC})
target_link_libraries(rigctl_server PRIVATE sdrpp_core)
set_target_properties(rigctl_server PROPERTIES PREFIX "")
include(${SDRPP_MODULE_CMAKE})
target_include_directories(rigctl_server PRIVATE "src/")
target_include_directories(rigctl_server PRIVATE "../recorder/src")
target_include_directories(rigctl_server PRIVATE "../../decoder_modules/meteor_demodulator/src")
target_include_directories(rigctl_server PRIVATE "../../decoder_modules/radio/src")
if (MSVC)
target_compile_options(rigctl_server PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(rigctl_server PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(rigctl_server PRIVATE -O3 -std=c++17)
endif ()
# Install directives
install(TARGETS rigctl_server DESTINATION lib/sdrpp/plugins)

View File

@ -3,19 +3,6 @@ project(scanner)
file(GLOB SRC "src/*.cpp")
add_library(scanner SHARED ${SRC})
target_link_libraries(scanner PRIVATE sdrpp_core)
set_target_properties(scanner PROPERTIES PREFIX "")
include(${SDRPP_MODULE_CMAKE})
target_include_directories(scanner PRIVATE "src/")
if (MSVC)
target_compile_options(scanner PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(scanner PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(scanner PRIVATE -O3 -std=c++17)
endif ()
# Install directives
install(TARGETS scanner DESTINATION lib/sdrpp/plugins)

View File

@ -3,19 +3,6 @@ project(scheduler)
file(GLOB SRC "src/*.cpp")
add_library(scheduler SHARED ${SRC})
target_link_libraries(scheduler PRIVATE sdrpp_core)
set_target_properties(scheduler PROPERTIES PREFIX "")
include(${SDRPP_MODULE_CMAKE})
target_include_directories(scheduler PRIVATE "src/")
if (MSVC)
target_compile_options(scheduler PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(scheduler PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(scheduler PRIVATE -O3 -std=c++17)
endif ()
# Install directives
install(TARGETS scheduler DESTINATION lib/sdrpp/plugins)

18
sdrpp_module.cmake Normal file
View File

@ -0,0 +1,18 @@
# Get needed values depending on if this is in-tree or out-of-tree
if (NOT SDRPP_CORE_ROOT)
set(SDRPP_CORE_ROOT "@SDRPP_CORE_ROOT@")
endif ()
if (NOT SDRPP_MODULE_COMPILER_ARGS)
set(SDRPP_MODULE_COMPILER_ARGS @SDRPP_MODULE_COMPILER_ARGS@)
endif ()
# Created shared lib and link to core
add_library(${PROJECT_NAME} SHARED ${SRC})
target_link_libraries(${PROJECT_NAME} PRIVATE sdrpp_core)
target_include_directories(${PROJECT_NAME} PRIVATE "${SDRPP_CORE_ROOT}/src/")
# Set compile arguments
target_compile_options(${PROJECT_NAME} PRIVATE ${SDRPP_MODULE_COMPILER_ARGS})
# Install directives
install(TARGETS ${PROJECT_NAME} DESTINATION lib/sdrpp/plugins)

View File

@ -3,11 +3,6 @@ project(audio_sink)
file(GLOB SRC "src/*.cpp")
add_library(audio_sink SHARED ${SRC})
target_link_libraries(audio_sink PRIVATE sdrpp_core)
set_target_properties(audio_sink PROPERTIES PREFIX "")
include(${SDRPP_MODULE_CMAKE})
target_include_directories(audio_sink PRIVATE "src/")
target_compile_options(audio_sink PRIVATE -O3 -std=c++17)
target_link_libraries(audio_sink PRIVATE aaudio)

View File

@ -3,19 +3,7 @@ project(audio_sink)
file(GLOB SRC "src/*.cpp")
add_library(audio_sink SHARED ${SRC})
target_link_libraries(audio_sink PRIVATE sdrpp_core)
set_target_properties(audio_sink PROPERTIES PREFIX "")
target_include_directories(audio_sink PRIVATE "src/")
if (MSVC)
target_compile_options(audio_sink PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(audio_sink PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(audio_sink PRIVATE -O3 -std=c++17)
endif ()
include(${SDRPP_MODULE_CMAKE})
if (MSVC)
# Lib path
@ -35,6 +23,3 @@ else (MSVC)
target_link_libraries(audio_sink PRIVATE ${RTAUDIO_LIBRARIES})
endif ()
# Install directives
install(TARGETS audio_sink DESTINATION lib/sdrpp/plugins)

View File

@ -3,19 +3,4 @@ project(network_sink)
file(GLOB SRC "src/*.cpp")
add_library(network_sink SHARED ${SRC})
target_link_libraries(network_sink PRIVATE sdrpp_core)
set_target_properties(network_sink PROPERTIES PREFIX "")
target_include_directories(network_sink PRIVATE "src/")
if (MSVC)
target_compile_options(network_sink PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(network_sink PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(network_sink PRIVATE -O3 -std=c++17)
endif ()
# Install directives
install(TARGETS network_sink DESTINATION lib/sdrpp/plugins)
include(${SDRPP_MODULE_CMAKE})

View File

@ -3,19 +3,7 @@ project(new_portaudio_sink)
file(GLOB SRC "src/*.cpp")
add_library(new_portaudio_sink SHARED ${SRC})
target_link_libraries(new_portaudio_sink PRIVATE sdrpp_core)
set_target_properties(new_portaudio_sink PROPERTIES PREFIX "")
target_include_directories(new_portaudio_sink PRIVATE "src/")
if (MSVC)
target_compile_options(new_portaudio_sink PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(new_portaudio_sink PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(new_portaudio_sink PRIVATE -O3 -std=c++17)
endif ()
include(${SDRPP_MODULE_CMAKE})
if (MSVC)
find_package(portaudio CONFIG REQUIRED)
@ -32,6 +20,3 @@ else (MSVC)
target_link_libraries(new_portaudio_sink PRIVATE ${PORTAUDIO_LIBRARIES})
endif (MSVC)
# Install directives
install(TARGETS new_portaudio_sink DESTINATION lib/sdrpp/plugins)

View File

@ -3,19 +3,7 @@ project(audio_sink)
file(GLOB SRC "src/*.cpp")
add_library(audio_sink SHARED ${SRC})
target_link_libraries(audio_sink PRIVATE sdrpp_core)
set_target_properties(audio_sink PROPERTIES PREFIX "")
target_include_directories(audio_sink PRIVATE "src/")
if (MSVC)
target_compile_options(audio_sink PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(audio_sink PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(audio_sink PRIVATE -O3 -std=c++17)
endif ()
include(${SDRPP_MODULE_CMAKE})
if (MSVC)
find_package(portaudio CONFIG REQUIRED)
@ -32,6 +20,3 @@ else (MSVC)
target_link_libraries(audio_sink PRIVATE ${PORTAUDIO_LIBRARIES})
endif (MSVC)
# Install directives
install(TARGETS audio_sink DESTINATION lib/sdrpp/plugins)

View File

@ -3,19 +3,7 @@ project(airspy_source)
file(GLOB SRC "src/*.cpp")
add_library(airspy_source SHARED ${SRC})
target_link_libraries(airspy_source PRIVATE sdrpp_core)
set_target_properties(airspy_source PROPERTIES PREFIX "")
target_include_directories(airspy_source PRIVATE "src/")
if (MSVC)
target_compile_options(airspy_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(airspy_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(airspy_source PRIVATE -O3 -std=c++17)
endif ()
include(${SDRPP_MODULE_CMAKE})
if (MSVC)
# Lib path
@ -48,6 +36,3 @@ else (MSVC)
endif()
endif ()
# Install directives
install(TARGETS airspy_source DESTINATION lib/sdrpp/plugins)

View File

@ -3,19 +3,7 @@ project(airspyhf_source)
file(GLOB SRC "src/*.cpp")
add_library(airspyhf_source SHARED ${SRC})
target_link_libraries(airspyhf_source PRIVATE sdrpp_core)
set_target_properties(airspyhf_source PROPERTIES PREFIX "")
target_include_directories(airspyhf_source PRIVATE "src/")
if (MSVC)
target_compile_options(airspyhf_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(airspyhf_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(airspyhf_source PRIVATE -O3 -std=c++17)
endif ()
include(${SDRPP_MODULE_CMAKE})
if (MSVC)
# Lib path
@ -48,6 +36,3 @@ else (MSVC)
endif()
endif ()
# Install directives
install(TARGETS airspyhf_source DESTINATION lib/sdrpp/plugins)

View File

@ -3,19 +3,7 @@ project(bladerf_source)
file(GLOB SRC "src/*.cpp")
add_library(bladerf_source SHARED ${SRC})
target_link_libraries(bladerf_source PRIVATE sdrpp_core)
set_target_properties(bladerf_source PROPERTIES PREFIX "")
target_include_directories(bladerf_source PRIVATE "src/")
if (MSVC)
target_compile_options(bladerf_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(bladerf_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(bladerf_source PRIVATE -O3 -std=c++17)
endif ()
include(${SDRPP_MODULE_CMAKE})
if (MSVC)
# Lib path
@ -36,6 +24,3 @@ else (MSVC)
target_include_directories(bladerf_source PRIVATE "/usr/local/include")
endif()
endif ()
# Install directives
install(TARGETS bladerf_source DESTINATION lib/sdrpp/plugins)

View File

@ -3,19 +3,6 @@ project(file_source)
file(GLOB SRC "src/*.cpp")
add_library(file_source SHARED ${SRC})
target_link_libraries(file_source PRIVATE sdrpp_core)
set_target_properties(file_source PROPERTIES PREFIX "")
include(${SDRPP_MODULE_CMAKE})
target_include_directories(file_source PRIVATE "src/")
if (MSVC)
target_compile_options(file_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(file_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(file_source PRIVATE -O3 -std=c++17)
endif ()
# Install directives
install(TARGETS file_source DESTINATION lib/sdrpp/plugins)

View File

@ -3,19 +3,7 @@ project(hackrf_source)
file(GLOB SRC "src/*.cpp")
add_library(hackrf_source SHARED ${SRC})
target_link_libraries(hackrf_source PRIVATE sdrpp_core)
set_target_properties(hackrf_source PROPERTIES PREFIX "")
target_include_directories(hackrf_source PRIVATE "src/")
if (MSVC)
target_compile_options(hackrf_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(hackrf_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(hackrf_source PRIVATE -O3 -std=c++17)
endif ()
include(${SDRPP_MODULE_CMAKE})
if (MSVC)
# Lib path
@ -40,6 +28,3 @@ else (MSVC)
target_link_directories(hackrf_source PRIVATE ${LIBHACKRF_LIBRARY_DIRS})
target_link_libraries(hackrf_source PRIVATE ${LIBHACKRF_LIBRARIES})
endif ()
# Install directives
install(TARGETS hackrf_source DESTINATION lib/sdrpp/plugins)

View File

@ -3,23 +3,6 @@ project(hermes_source)
file(GLOB SRC "src/*.cpp")
add_library(hermes_source SHARED ${SRC})
target_link_libraries(hermes_source PRIVATE sdrpp_core)
set_target_properties(hermes_source PROPERTIES PREFIX "")
include(${SDRPP_MODULE_CMAKE})
target_include_directories(hermes_source PRIVATE "src/")
if (MSVC)
target_compile_options(hermes_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(hermes_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(hermes_source PRIVATE -O3 -std=c++17)
endif ()
if(WIN32)
target_link_libraries(hermes_source PRIVATE wsock32 ws2_32 iphlpapi)
endif()
# Install directives
install(TARGETS hermes_source DESTINATION lib/sdrpp/plugins)

View File

@ -3,19 +3,7 @@ project(limesdr_source)
file(GLOB SRC "src/*.cpp")
add_library(limesdr_source SHARED ${SRC})
target_link_libraries(limesdr_source PRIVATE sdrpp_core)
set_target_properties(limesdr_source PROPERTIES PREFIX "")
target_include_directories(limesdr_source PRIVATE "src/")
if (MSVC)
target_compile_options(limesdr_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(limesdr_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(limesdr_source PRIVATE -O3 -std=c++17)
endif ()
include(${SDRPP_MODULE_CMAKE})
if (MSVC)
# Lib path
@ -33,6 +21,3 @@ else (MSVC)
target_include_directories(limesdr_source PRIVATE "/usr/local/include")
endif()
endif ()
# Install directives
install(TARGETS limesdr_source DESTINATION lib/sdrpp/plugins)

View File

@ -3,19 +3,7 @@ project(plutosdr_source)
file(GLOB SRC "src/*.cpp")
add_library(plutosdr_source SHARED ${SRC})
target_link_libraries(plutosdr_source PRIVATE sdrpp_core)
set_target_properties(plutosdr_source PROPERTIES PREFIX "")
target_include_directories(plutosdr_source PRIVATE "src/")
if (MSVC)
target_compile_options(plutosdr_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(plutosdr_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(plutosdr_source PRIVATE -O3 -std=c++17)
endif ()
include(${SDRPP_MODULE_CMAKE})
if (MSVC)
# Lib path
@ -59,6 +47,3 @@ else (MSVC)
target_include_directories(plutosdr_source PRIVATE ${LIBAD9361_INCLUDE_DIRS})
endif ()
# Install directives
install(TARGETS plutosdr_source DESTINATION lib/sdrpp/plugins)

View File

@ -3,23 +3,6 @@ project(rfspace_source)
file(GLOB SRC "src/*.cpp")
add_library(rfspace_source SHARED ${SRC})
target_link_libraries(rfspace_source PRIVATE sdrpp_core)
set_target_properties(rfspace_source PROPERTIES PREFIX "")
include(${SDRPP_MODULE_CMAKE})
target_include_directories(rfspace_source PRIVATE "src/")
if (MSVC)
target_compile_options(rfspace_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(rfspace_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(rfspace_source PRIVATE -O3 -std=c++17)
endif ()
if(WIN32)
target_link_libraries(rfspace_source PRIVATE wsock32 ws2_32)
endif()
# Install directives
install(TARGETS rfspace_source DESTINATION lib/sdrpp/plugins)

View File

@ -3,19 +3,7 @@ project(rtl_sdr_source)
file(GLOB SRC "src/*.cpp")
add_library(rtl_sdr_source SHARED ${SRC})
target_link_libraries(rtl_sdr_source PRIVATE sdrpp_core)
set_target_properties(rtl_sdr_source PROPERTIES PREFIX "")
target_include_directories(rtl_sdr_source PRIVATE "src/")
if (MSVC)
target_compile_options(rtl_sdr_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(rtl_sdr_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(rtl_sdr_source PRIVATE -O3 -std=c++17)
endif ()
include(${SDRPP_MODULE_CMAKE})
if (MSVC)
# Lib path
@ -37,6 +25,3 @@ else (MSVC)
target_link_directories(rtl_sdr_source PRIVATE ${LIBRTLSDR_LIBRARY_DIRS} ${LIBUSB_LIBRARY_DIRS})
target_link_libraries(rtl_sdr_source PRIVATE ${LIBRTLSDR_LIBRARIES} ${LIBUSB_LIBRARIES})
endif ()
# Install directives
install(TARGETS rtl_sdr_source DESTINATION lib/sdrpp/plugins)

View File

@ -3,23 +3,6 @@ project(rtl_tcp_source)
file(GLOB SRC "src/*.cpp")
add_library(rtl_tcp_source SHARED ${SRC})
target_link_libraries(rtl_tcp_source PRIVATE sdrpp_core)
set_target_properties(rtl_tcp_source PROPERTIES PREFIX "")
include(${SDRPP_MODULE_CMAKE})
target_include_directories(rtl_tcp_source PRIVATE "src/")
if (MSVC)
target_compile_options(rtl_tcp_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(rtl_tcp_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(rtl_tcp_source PRIVATE -O3 -std=c++17)
endif ()
if(WIN32)
target_link_libraries(rtl_tcp_source PRIVATE wsock32 ws2_32)
endif()
# Install directives
install(TARGETS rtl_tcp_source DESTINATION lib/sdrpp/plugins)

View File

@ -3,19 +3,7 @@ project(sdrplay_source)
file(GLOB SRC "src/*.cpp")
add_library(sdrplay_source SHARED ${SRC})
target_link_libraries(sdrplay_source PRIVATE sdrpp_core)
set_target_properties(sdrplay_source PROPERTIES PREFIX "")
target_include_directories(sdrplay_source PRIVATE "src/")
if (MSVC)
target_compile_options(sdrplay_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(sdrplay_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(sdrplay_source PRIVATE -O3 -std=c++17)
endif ()
include(${SDRPP_MODULE_CMAKE})
if (MSVC)
# Lib path
@ -34,6 +22,3 @@ else (MSVC)
target_link_libraries(sdrplay_source PRIVATE sdrplay_api)
endif ()
# Install directives
install(TARGETS sdrplay_source DESTINATION lib/sdrpp/plugins)

View File

@ -3,23 +3,6 @@ project(sdrpp_server_source)
file(GLOB SRC "src/*.cpp")
add_library(sdrpp_server_source SHARED ${SRC})
target_link_libraries(sdrpp_server_source PRIVATE sdrpp_core)
set_target_properties(sdrpp_server_source PROPERTIES PREFIX "")
include(${SDRPP_MODULE_CMAKE})
target_include_directories(sdrpp_server_source PRIVATE "src/")
if (MSVC)
target_compile_options(sdrpp_server_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(sdrpp_server_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(sdrpp_server_source PRIVATE -O3 -std=c++17)
endif ()
if(WIN32)
target_link_libraries(sdrpp_server_source PRIVATE wsock32 ws2_32)
endif()
# Install directives
install(TARGETS sdrpp_server_source DESTINATION lib/sdrpp/plugins)

View File

@ -3,19 +3,7 @@ project(soapy_source)
file(GLOB SRC "src/*.cpp")
add_library(soapy_source SHARED ${SRC})
target_link_libraries(soapy_source PRIVATE sdrpp_core)
set_target_properties(soapy_source PROPERTIES PREFIX "")
target_include_directories(soapy_source PRIVATE "src/")
if (MSVC)
target_compile_options(soapy_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(soapy_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(soapy_source PRIVATE -O3 -std=c++17)
endif ()
include(${SDRPP_MODULE_CMAKE})
if (MSVC)
# Lib path
@ -34,6 +22,3 @@ else (MSVC)
target_link_directories(soapy_source PRIVATE ${SOAPY_LIBRARY_DIRS})
target_link_libraries(soapy_source PRIVATE ${SOAPY_LIBRARIES})
endif ()
# Install directives
install(TARGETS soapy_source DESTINATION lib/sdrpp/plugins)

View File

@ -3,23 +3,6 @@ project(spectran_http_source)
file(GLOB_RECURSE SRC "src/*.cpp")
add_library(spectran_http_source SHARED ${SRC})
target_link_libraries(spectran_http_source PRIVATE sdrpp_core)
set_target_properties(spectran_http_source PROPERTIES PREFIX "")
include(${SDRPP_MODULE_CMAKE})
target_include_directories(spectran_http_source PRIVATE "src/")
if (MSVC)
target_compile_options(spectran_http_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(spectran_http_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(spectran_http_source PRIVATE -O3 -std=c++17)
endif ()
if(WIN32)
target_link_libraries(spectran_http_source PRIVATE wsock32 ws2_32 iphlpapi)
endif()
# Install directives
install(TARGETS spectran_http_source DESTINATION lib/sdrpp/plugins)

View File

@ -3,19 +3,7 @@ project(spectran_source)
file(GLOB SRC "src/*.cpp")
add_library(spectran_source SHARED ${SRC})
target_link_libraries(spectran_source PRIVATE sdrpp_core)
set_target_properties(spectran_source PROPERTIES PREFIX "")
target_include_directories(spectran_source PRIVATE "src/")
if (MSVC)
target_compile_options(spectran_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(spectran_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(spectran_source PRIVATE -O3 -std=c++17)
endif ()
include(${SDRPP_MODULE_CMAKE})
if (MSVC)
# Lib path
@ -32,6 +20,3 @@ else (MSVC)
target_link_libraries(spectran_source PRIVATE AaroniaRTSAAPI)
endif ()
# Install directives
install(TARGETS spectran_source DESTINATION lib/sdrpp/plugins)

View File

@ -1,251 +0,0 @@
root
main
centerfreq
- min: 192500000.000000
- max: 6000000000.000000
- step: 1000.000000
- unit: Frequency
decimation
-enum: Full;1 / 2;1 / 4;1 / 8;1 / 16;1 / 32;1 / 64;1 / 128;1 / 256;1 / 512
reflevel
- min: -20.000000
- max: 10.000000
- step: 0.500000
- unit: dBm
transgain
- min: -100.000000
- max: 10.000000
- step: 0.010000
- unit: dB
device
usbcompression
-enum: auto;compressed;raw
gaincontrol
-enum: manual;peak;power
loharmonic
-enum: base;third;fifth
outputformat
-enum: iq;spectra;both;auto
lowpower
-bool
fft0
fftmergemode
-enum: avg;sum;min;max
fftaggregate
- min: 1.000000
- max: 65535.000000
- step: 1.000000
- unit:
fftsizemode
-enum: FFT;Bins;Step Frequency;RBW
fftsize
- min: 8.000000
- max: 8192.000000
- step: 1.000000
- unit:
fftbinsize
- min: 32.000000
- max: 8192.000000
- step: 1.000000
- unit:
fftstepfreq
- min: 1000.000000
- max: 100000000.000000
- step: 1000.000000
- unit: Frequency
fftrbwfreq
- min: 0.001000
- max: 100000000.000000
- step: 0.001000
- unit: Frequency
fftwindow
-enum: Hamming;Hann;Uniform;Blackman;Blackman Harris;Blackman Harris 7;Flat Top;Lanczos;Gaussion 0.5;Gaussion 0.4;Gaussian 0.3;Gaussion 0.2;Gaussian 0.1;Kaiser 6;Kaiser 12;Kaiser 18;Kaiser 36;Kaiser 72;Tukey 0.1;Tukey 0.3;Tukey 0.5;Tukey 0.7;Tukey 0.9
fft1
fftmergemode
-enum: avg;sum;min;max
fftaggregate
- min: 1.000000
- max: 65535.000000
- step: 1.000000
- unit:
fftsizemode
-enum: FFT;Bins;Step Frequency;RBW
fftsize
- min: 8.000000
- max: 8192.000000
- step: 1.000000
- unit:
fftbinsize
- min: 32.000000
- max: 8192.000000
- step: 1.000000
- unit:
fftstepfreq
- min: 1000.000000
- max: 100000000.000000
- step: 1000.000000
- unit: Frequency
fftrbwfreq
- min: 0.001000
- max: 100000000.000000
- step: 0.001000
- unit: Frequency
fftwindow
-enum: Hamming;Hann;Uniform;Blackman;Blackman Harris;Blackman Harris 7;Flat Top;Lanczos;Gaussion 0.5;Gaussion 0.4;Gaussian 0.3;Gaussion 0.2;Gaussian 0.1;Kaiser 6;Kaiser 12;Kaiser 18;Kaiser 36;Kaiser 72;Tukey 0.1;Tukey 0.3;Tukey 0.5;Tukey 0.7;Tukey 0.9
receiverclock
-enum: 92MHz;122MHz;184MHz;245MHz
receiverchannel
-enum: Rx1;Rx2;Rx1+Rx2;Rx1/Rx2;Rx Off;auto
receiverchannelsel
-enum: Rx1;Rx2;Rx2->1;Rx1->2
transmittermode
-enum: Off;Test;Stream;Reactive;Signal Generator;Pattern Generator
transmitterclockvar
- min: 0.000001
- max: 1.000000
- step: 0.000001
- unit: Time
generator
type
-enum: Relative Tone;Absolute Tone;Step;Sweep;Full Sweep;Center Sweep;Polytone;Relative Ditone;Absolute Ditone;Noise;Digital Noise;Off
startfreq
- min: 1000.000000
- max: 20000000000.000000
- step: 1.000000
- unit: Frequency
stopfreq
- min: 1000.000000
- max: 20000000000.000000
- step: 1.000000
- unit: Frequency
stepfreq
- min: 1.000000
- max: 200000000.000000
- step: 1.000000
- unit: Frequency
offsetfreq
- min: -60000000.000000
- max: 60000000.000000
- step: 1.000000
- unit: Frequency
duration
- min: 0.000010
- max: 3600.000000
- step: 0.000010
- unit: Time
powerramp
- min: -150.000000
- max: 150.000000
- step: 0.100000
- unit: dB
sclksource
-enum: Consumer;Oscillator;GPS;PPS;10MHz;Oscillator Provider;GPS Provider;PPS Provider
triggeredge
-enum: Off;High;Low;Rising;Falling;Changing
triggerflag
-enum: C0;C1;C2;C3
gpsmode
-enum: Disabled;Location;Time;Location and Time
gpsrate
- min: 0.100000
- max: 5.000000
- step: 0.100000
- unit: Time
tempfancontrol
-bool
serial
-string
calibration
rffilter
-enum: Calibration;Bypass;Auto;Auto Extended;75-145 (50);90-160 (50);110-195 (50);135-205 (50);155-270 (50);155-270 (100);155-280 (100);180-350 (100);230-460 (100);240-545;340-650;440-815;610-1055;850-1370;1162-2060;1850-3010;2800-4610;4400-6100
preamp
-enum: Disabled;Auto;None;Amp;Preamp;Both
rftxfilter
-enum: Calibration;Bypass;Auto;Auto Extended;75-145 (50);90-160 (50);110-195 (50);135-205 (50);155-270 (50);155-270 (100);155-280 (100);180-350 (100);230-460 (100);240-545;340-650;440-815;610-1055;850-1370;1162-2060;1850-3010;2800-4610;4400-6100
calibrationmode
-enum: Off;RX Attenuator;TX Attenuator;Tx No Amplifier;Tx Amplifier;Rx Thermal;Tx Thermal;Rx RTBW;Tx RTBW;Rx Filter;Rx Amplifier;Tx LO Leakage;Clock;Raw;Free
txioffset
- min: -0.100000
- max: 0.100000
- step: 0.000100
- unit: Number
txqoffset
- min: -0.100000
- max: 0.100000
- step: 0.000100
- unit: Number
txexcent
- min: -0.100000
- max: 0.100000
- step: 0.000010
- unit: Percentage
txphaseskew
- min: -15.000000
- max: 15.000000
- step: 0.010000
- unit: Degree
clockscale
- min: -100.000000
- max: 100.000000
- step: 0.000001
- unit: Frequency
clockbygpsupdate
-enum: Never;Once;Reset;On Startup;Slow;Fast;Realtime
calibrationreload
-bool
void dumpConfig(std::wstring serial) {
AARTSAAPI_Device dev;
if (AARTSAAPI_OpenDevice(&api, &dev, L"spectranv6/raw", serial.c_str()) != AARTSAAPI_OK) {
spdlog::error("Could not open device");
return;
}
AARTSAAPI_Config root;
if (AARTSAAPI_ConfigRoot(&dev, &root) != AARTSAAPI_OK) {
spdlog::error("Could not get config root");
return;
}
// Dump configuration recursively
dumpConfig(dev, root);
AARTSAAPI_CloseDevice(&api, &dev);
}
void dumpConfig(AARTSAAPI_Device& dev, AARTSAAPI_Config& conf, int depth = 0) {
std::string prefix = "";
std::wstring_convert<std::codecvt_utf8<wchar_t>> conv;
for (int i = 0; i < depth; i++) { prefix += " "; }
AARTSAAPI_ConfigInfo info;
AARTSAAPI_ConfigGetInfo(&dev, &conf, &info);
printf("%s%s\n", prefix.c_str(), conv.to_bytes(info.name).c_str());
if (info.type == AARTSAAPI_CONFIG_TYPE_GROUP) {
AARTSAAPI_Config item;
AARTSAAPI_ConfigFirst(&dev, &conf, &item);
do {
dumpConfig(dev, item, depth + 1);
}
while (AARTSAAPI_ConfigNext(&dev, &conf, &item) == AARTSAAPI_OK);
}
else if (info.type == AARTSAAPI_CONFIG_TYPE_NUMBER) {
printf("%s- min: %lf\n", prefix.c_str(), info.minValue);
printf("%s- max: %lf\n", prefix.c_str(), info.maxValue);
printf("%s- step: %lf\n", prefix.c_str(), info.stepValue);
printf("%s- unit: %s\n", prefix.c_str(), conv.to_bytes(info.unit).c_str());
}
else if (info.type == AARTSAAPI_CONFIG_TYPE_BOOL) {
printf("%s-bool\n", prefix.c_str());
}
else if (info.type == AARTSAAPI_CONFIG_TYPE_ENUM) {
printf("%s-enum: %s\n", prefix.c_str(), conv.to_bytes(info.options).c_str());
}
else if (info.type == AARTSAAPI_CONFIG_TYPE_STRING) {
printf("%s-string\n", prefix.c_str());
}
}

View File

@ -3,23 +3,6 @@ project(spyserver_source)
file(GLOB SRC "src/*.cpp")
add_library(spyserver_source SHARED ${SRC})
target_link_libraries(spyserver_source PRIVATE sdrpp_core)
set_target_properties(spyserver_source PROPERTIES PREFIX "")
include(${SDRPP_MODULE_CMAKE})
target_include_directories(spyserver_source PRIVATE "src/")
if (MSVC)
target_compile_options(spyserver_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(spyserver_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(spyserver_source PRIVATE -O3 -std=c++17)
endif ()
if(WIN32)
target_link_libraries(spyserver_source PRIVATE wsock32 ws2_32)
endif()
# Install directives
install(TARGETS spyserver_source DESTINATION lib/sdrpp/plugins)

View File

@ -3,19 +3,7 @@ project(usrp_source)
file(GLOB SRC "src/*.cpp")
add_library(usrp_source SHARED ${SRC})
target_link_libraries(usrp_source PRIVATE sdrpp_core)
set_target_properties(usrp_source PROPERTIES PREFIX "")
target_include_directories(usrp_source PRIVATE "src/")
if (MSVC)
target_compile_options(usrp_source PRIVATE /O2 /Ob2 /std:c++17 /EHsc)
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(usrp_source PRIVATE -O3 -std=c++17 -Wno-unused-command-line-argument -undefined dynamic_lookup)
else ()
target_compile_options(usrp_source PRIVATE -O3 -std=c++17)
endif ()
include(${SDRPP_MODULE_CMAKE})
if (MSVC)
# Lib path
@ -33,6 +21,3 @@ else (MSVC)
target_link_directories(usrp_source PRIVATE ${LIBUHD_LIBRARY_DIRS})
target_link_libraries(usrp_source PRIVATE ${LIBUHD_LIBRARIES})
endif ()
# Install directives
install(TARGETS usrp_source DESTINATION lib/sdrpp/plugins)