mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-06-17 05:52:29 -04:00
Debian package build: added Airspy, HackRF, RTLSDR input plugins and removed SDRDaemonFEC
This commit is contained in:
parent
12a3974644
commit
48eb776de9
2
debian/debhelper-build-stamp
vendored
2
debian/debhelper-build-stamp
vendored
@ -1,2 +0,0 @@
|
|||||||
sdrangel
|
|
||||||
sdrangel
|
|
3
debian/rules
vendored
3
debian/rules
vendored
@ -21,5 +21,4 @@
|
|||||||
# dh_make generated override targets
|
# dh_make generated override targets
|
||||||
# This is example for Cmake (See https://bugs.debian.org/641051 )
|
# This is example for Cmake (See https://bugs.debian.org/641051 )
|
||||||
override_dh_auto_configure:
|
override_dh_auto_configure:
|
||||||
dh_auto_configure -- -DCMAKE_INSTALL_PREFIX=/opt/sdrangel -DBUILD_TYPE=DEBIAN -DLIBCM256CCSRC=/z1/development/cm256cc -DLIBDSDCCSRC=/z1/development/dsdcc -DLIBAIRSPYSRC=/z1/development/libairspy/libairspy -DLIBHACKRFSRC=/z1/development/hackrf/host/libhackrf -DLIBRTLSDRSRC=/z1/development/librtlsdr.f4exb -DLIBMBELIBSRC=/z1/development/mbelib -DLIBSERIALDVSRC=/z1/development/serialDV
|
dh_auto_configure -- -DCMAKE_INSTALL_PREFIX=/opt/sdrangel -DBUILD_TYPE=DEBIAN -DLIBCM256CCSRC=/z1/development/cm256cc -DLIBDSDCCSRC=/z1/development/dsdcc -DLIBAIRSPYSRC=/z1/development/libairspy -DLIBHACKRFSRC=/z1/development/hackrf/host -DLIBRTLSDRSRC=/z1/development/librtlsdr.f4exb -DLIBMBELIBSRC=/z1/development/mbelib -DLIBSERIALDVSRC=/z1/development/serialDV
|
||||||
# dh_auto_configure -- -Wno-dev -DCMAKE_INSTALL_PREFIX=/opt/sdrangel -DCM256CC_LIBRARIES=/opt/install/cm256cc/lib/libcm256cc.so -DCM256CC_INCLUDE_DIR=/opt/install/cm256cc/include/cm256cc
|
|
||||||
|
@ -3,24 +3,24 @@ project(airspy)
|
|||||||
find_package(LibUSB)
|
find_package(LibUSB)
|
||||||
|
|
||||||
set(airspy_SOURCES
|
set(airspy_SOURCES
|
||||||
${LIBAIRSPYSRC}/src/airspy.c
|
${LIBAIRSPYSRC}/libairspy/src/airspy.c
|
||||||
${LIBAIRSPYSRC}/src/iqconverter_float.c
|
${LIBAIRSPYSRC}/libairspy/src/iqconverter_float.c
|
||||||
${LIBAIRSPYSRC}/src/iqconverter_int16.c
|
${LIBAIRSPYSRC}/libairspy/src/iqconverter_int16.c
|
||||||
)
|
)
|
||||||
|
|
||||||
set(airspy_HEADERS
|
set(airspy_HEADERS
|
||||||
${LIBAIRSPYSRC}/src/airspy.h
|
${LIBAIRSPYSRC}/libairspy/src/airspy.h
|
||||||
${LIBAIRSPYSRC}/src/airspy_commands.h
|
${LIBAIRSPYSRC}/libairspy/src/airspy_commands.h
|
||||||
${LIBAIRSPYSRC}/src/iqconverter_float.h
|
${LIBAIRSPYSRC}/libairspy/src/iqconverter_float.h
|
||||||
${LIBAIRSPYSRC}/src/iqconverter_int16.h
|
${LIBAIRSPYSRC}/libairspy/src/iqconverter_int16.h
|
||||||
${LIBAIRSPYSRC}/src/filters.h
|
${LIBAIRSPYSRC}/libairspy/src/filters.h
|
||||||
)
|
)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
.
|
.
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${LIBUSB_INCLUDE_DIR}
|
${LIBUSB_INCLUDE_DIR}
|
||||||
${LIBAIRSPYSRC}/src
|
${LIBAIRSPYSRC}/libairspy/src
|
||||||
)
|
)
|
||||||
|
|
||||||
add_definitions(-DQT_SHARED)
|
add_definitions(-DQT_SHARED)
|
||||||
|
@ -3,18 +3,18 @@ project(hackrf)
|
|||||||
find_package(LibUSB)
|
find_package(LibUSB)
|
||||||
|
|
||||||
set(hackrf_SOURCES
|
set(hackrf_SOURCES
|
||||||
${LIBHACKRFSRC}/src/hackrf.c
|
${LIBHACKRFSRC}/libhackrf/src/hackrf.c
|
||||||
)
|
)
|
||||||
|
|
||||||
set(hackrf_HEADERS
|
set(hackrf_HEADERS
|
||||||
${LIBHACKRFSRC}/src/hackrf.h
|
${LIBHACKRFSRC}/libhackrf/src/hackrf.h
|
||||||
)
|
)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
.
|
.
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${LIBUSB_INCLUDE_DIR}
|
${LIBUSB_INCLUDE_DIR}
|
||||||
${LIBHACKRFSRC}/src
|
${LIBHACKRFSRC}/libhackrf/src
|
||||||
)
|
)
|
||||||
|
|
||||||
add_definitions(-DQT_SHARED)
|
add_definitions(-DQT_SHARED)
|
||||||
|
@ -52,6 +52,13 @@ if(CM256CC_FOUND)
|
|||||||
add_subdirectory(sdrdaemonfec)
|
add_subdirectory(sdrdaemonfec)
|
||||||
endif(CM256CC_FOUND)
|
endif(CM256CC_FOUND)
|
||||||
|
|
||||||
|
if (BUILD_DEBIAN)
|
||||||
|
add_subdirectory(airspy)
|
||||||
|
add_subdirectory(hackrf)
|
||||||
|
add_subdirectory(rtlsdr)
|
||||||
|
endif (BUILD_DEBIAN)
|
||||||
|
|
||||||
|
|
||||||
add_subdirectory(filesource)
|
add_subdirectory(filesource)
|
||||||
add_subdirectory(sdrdaemon)
|
add_subdirectory(sdrdaemon)
|
||||||
|
|
||||||
|
@ -24,7 +24,8 @@ if (BUILD_DEBIAN)
|
|||||||
include_directories(
|
include_directories(
|
||||||
.
|
.
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${LIBAIRSPYSRC}/src
|
${LIBAIRSPYSRC}
|
||||||
|
${LIBAIRSPYSRC}/libairspy/src
|
||||||
)
|
)
|
||||||
else (BUILD_DEBIAN)
|
else (BUILD_DEBIAN)
|
||||||
include_directories(
|
include_directories(
|
||||||
|
@ -24,7 +24,8 @@ if (BUILD_DEBIAN)
|
|||||||
include_directories(
|
include_directories(
|
||||||
.
|
.
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${LIBHACKRFSRC}/src
|
${LIBHACKRFSRC}
|
||||||
|
${LIBHACKRFSRC}/libhackrf/src
|
||||||
)
|
)
|
||||||
else (BUILD_DEBIAN)
|
else (BUILD_DEBIAN)
|
||||||
include_directories(
|
include_directories(
|
||||||
|
@ -22,11 +22,6 @@ set(sdrdaemonfec_FORMS
|
|||||||
sdrdaemonfecgui.ui
|
sdrdaemonfecgui.ui
|
||||||
)
|
)
|
||||||
|
|
||||||
include_directories(
|
|
||||||
.
|
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
|
||||||
)
|
|
||||||
|
|
||||||
#include(${QT_USE_FILE})
|
#include(${QT_USE_FILE})
|
||||||
add_definitions(${QT_DEFINITIONS})
|
add_definitions(${QT_DEFINITIONS})
|
||||||
add_definitions(-DQT_PLUGIN)
|
add_definitions(-DQT_PLUGIN)
|
||||||
@ -41,17 +36,37 @@ add_library(inputsdrdaemonfec SHARED
|
|||||||
${sdrdaemonfec_FORMS_HEADERS}
|
${sdrdaemonfec_FORMS_HEADERS}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (BUILD_DEBIAN)
|
||||||
target_include_directories(inputsdrdaemonfec PUBLIC
|
target_include_directories(inputsdrdaemonfec PUBLIC
|
||||||
|
.
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${LIBCM256CCSRC}
|
||||||
|
${LIBNANOMSG_INCLUDE_DIR}
|
||||||
|
)
|
||||||
|
else (BUILD_DEBIAN)
|
||||||
|
target_include_directories(inputsdrdaemonfec PUBLIC
|
||||||
|
.
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${CM256CC_INCLUDE_DIR}
|
${CM256CC_INCLUDE_DIR}
|
||||||
${LIBNANOMSG_INCLUDE_DIR}
|
${LIBNANOMSG_INCLUDE_DIR}
|
||||||
)
|
)
|
||||||
|
endif (BUILD_DEBIAN)
|
||||||
|
|
||||||
|
if (BUILD_DEBIAN)
|
||||||
|
target_link_libraries(inputsdrdaemonfec
|
||||||
|
${QT_LIBRARIES}
|
||||||
|
cm256cc
|
||||||
|
${LIBNANOMSG_LIBRARIES}
|
||||||
|
sdrbase
|
||||||
|
)
|
||||||
|
else (BUILD_DEBIAN)
|
||||||
target_link_libraries(inputsdrdaemonfec
|
target_link_libraries(inputsdrdaemonfec
|
||||||
${QT_LIBRARIES}
|
${QT_LIBRARIES}
|
||||||
${CM256CC_LIBRARIES}
|
${CM256CC_LIBRARIES}
|
||||||
${LIBNANOMSG_LIBRARIES}
|
${LIBNANOMSG_LIBRARIES}
|
||||||
sdrbase
|
sdrbase
|
||||||
)
|
)
|
||||||
|
endif (BUILD_DEBIAN)
|
||||||
|
|
||||||
qt5_use_modules(inputsdrdaemonfec Core Widgets OpenGL Multimedia)
|
qt5_use_modules(inputsdrdaemonfec Core Widgets OpenGL Multimedia)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user