1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-04-04 10:38:45 -04:00

SoapySDR support: Debian: added internal soapysdr library

This commit is contained in:
f4exb 2018-11-23 01:06:56 +01:00
parent 8a6ee37ccb
commit ca36f757e1
6 changed files with 36 additions and 8 deletions

View File

@ -346,6 +346,7 @@ if (BUILD_DEBIAN)
add_subdirectory(libmirisdr)
add_subdirectory(libperseus)
add_subdirectory(libiio)
add_subdirectory(libsoapysdr)
endif (BUILD_DEBIAN)
add_subdirectory(devices)

2
debian/rules vendored
View File

@ -21,5 +21,5 @@
# dh_make generated override targets
# This is example for Cmake (See https://bugs.debian.org/641051 )
override_dh_auto_configure:
dh_auto_configure -- -DCMAKE_INSTALL_PREFIX=/opt/sdrangel -DDEBUG_OUTPUT=ON -DBUILD_TYPE=DEBIAN -DRX_SAMPLE_24BIT=ON -DLIBCM256CCSRC=/z1/development/cm256cc -DLIBDSDCCSRC=/z1/development/dsdcc -DLIBAIRSPYSRC=/z1/development/libairspy -DLIBAIRSPYHFSRC=/z1/softs/airspyhf -DLIBHACKRFSRC=/z1/development/hackrf/host -DLIBRTLSDRSRC=/z1/development/librtlsdr.f4exb -DLIBMBELIBSRC=/z1/development/mbelib -DLIBSERIALDVSRC=/z1/development/serialDV -DLIBBLADERFSRC=/z1/softs/bladeRF -DLIBBLADERFCOMMONSRC=/z1/softs/bladeRF/host/common -DLIBBLADERFLIBSRC=/z1/softs/bladeRF/host/libraries/libbladeRF -DLIBMIRISDRSRC=/z1/development/libmirisdr-4 -DLIBLIMESUITESRC=/z1/softs/LimeSuite -DLIBIIOSRC=/z1/softs/libiio -DLIBPERSEUSSRC=/z1/softs/libperseus-sdr
dh_auto_configure -- -DCMAKE_INSTALL_PREFIX=/opt/sdrangel -DDEBUG_OUTPUT=ON -DBUILD_TYPE=DEBIAN -DRX_SAMPLE_24BIT=ON -DLIBCM256CCSRC=/z1/development/cm256cc -DLIBDSDCCSRC=/z1/development/dsdcc -DLIBAIRSPYSRC=/z1/development/libairspy -DLIBAIRSPYHFSRC=/z1/softs/airspyhf -DLIBHACKRFSRC=/z1/development/hackrf/host -DLIBRTLSDRSRC=/z1/development/librtlsdr.f4exb -DLIBMBELIBSRC=/z1/development/mbelib -DLIBSERIALDVSRC=/z1/development/serialDV -DLIBBLADERFSRC=/z1/softs/bladeRF -DLIBBLADERFCOMMONSRC=/z1/softs/bladeRF/host/common -DLIBBLADERFLIBSRC=/z1/softs/bladeRF/host/libraries/libbladeRF -DLIBMIRISDRSRC=/z1/development/libmirisdr-4 -DLIBLIMESUITESRC=/z1/softs/LimeSuite -DLIBIIOSRC=/z1/softs/libiio -DLIBPERSEUSSRC=/z1/softs/libperseus-sdr -DLIBSOAPYSDRSRC=/z1/softs/SoapySDR

View File

@ -20,7 +20,7 @@ if (BUILD_DEBIAN)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${SOAPYSDRSRC}
${LIBSOAPYSDRSRC}
)
else (BUILD_DEBIAN)
include_directories(

View File

@ -0,0 +1,27 @@
project(soapysdr)
file(GLOB soapysdr_SOURCES
${LIBSOAPYSDRSRC}/lib/*.cpp
)
file(GLOB soapysdr_HEADERS
${LIBSOAPYSDRSRC}/include/SoapySDR/*.hpp
${LIBSOAPYSDRSRC}/include/SoapySDR/*.h
)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${LIBSOAPYSDRSRC}/include
${LIBSOAPYSDRSRC}/lib
)
add_definitions(-DQT_SHARED)
message( STATUS "soapysdr_SOURCES: ${soapysdr_SOURCES}" )
add_library(soapysdr SHARED
${soapysdr_SOURCES}
)
install(TARGETS soapysdr DESTINATION lib)

View File

@ -28,8 +28,8 @@ include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${CMAKE_SOURCE_DIR}/devices
${SOAPYSDRSRC}/include
${SOAPYSDRSRC}/src
${LIBSOAPYSDRSRC}/include
${LIBSOAPYSDRSRC}/src
)
else (BUILD_DEBIAN)
include_directories(
@ -56,7 +56,7 @@ add_library(outputsoapysdr SHARED
if (BUILD_DEBIAN)
target_link_libraries(outputsoapysdr
${QT_LIBRARIES}
bladerf
soapysdr
sdrbase
sdrgui
swagger

View File

@ -28,8 +28,8 @@ include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${CMAKE_SOURCE_DIR}/devices
${SOAPYSDRSRC}/include
${SOAPYSDRSRC}/src
${LIBSOAPYSDRSRC}/include
${LIBSOAPYSDRSRC}/src
)
else (BUILD_DEBIAN)
include_directories(
@ -56,7 +56,7 @@ add_library(inputsoapysdr SHARED
if (BUILD_DEBIAN)
target_link_libraries(inputsoapysdr
${QT_LIBRARIES}
bladerf
soapysdr
sdrbase
sdrgui
swagger