mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-12 18:58:48 -04:00
SDRPlay plugin: use open source libmirisdr interface instead of the Mirics proprietary one
This commit is contained in:
@@ -42,13 +42,13 @@ if(LIBUSB_FOUND AND LIBHACKRF_FOUND)
|
||||
add_subdirectory(hackrf)
|
||||
endif(LIBUSB_FOUND AND LIBHACKRF_FOUND)
|
||||
|
||||
find_package(LibSDRPlay)
|
||||
if(LIBUSB_FOUND AND LIBSDRPLAY_FOUND)
|
||||
find_package(LibMiriSDR)
|
||||
if(LIBUSB_FOUND AND LIBMIRISDR_FOUND)
|
||||
add_subdirectory(sdrplay)
|
||||
message(STATUS "LibSDRPlay found")
|
||||
else(LIBUSB_FOUND AND LIBSDRPLAY_FOUND)
|
||||
message(STATUS "LibSDRPlay NOT found")
|
||||
endif(LIBUSB_FOUND AND LIBSDRPLAY_FOUND)
|
||||
message(STATUS "LibMiriSDR found")
|
||||
else(LIBUSB_FOUND AND LIBMIRISDR_FOUND)
|
||||
message(STATUS "LibMiriSDR NOT found")
|
||||
endif(LIBUSB_FOUND AND LIBMIRISDR_FOUND)
|
||||
|
||||
#find_package(LibNANOMSG)
|
||||
#if(LIBNANOMSG_FOUND)
|
||||
|
||||
@@ -24,13 +24,13 @@ if (BUILD_DEBIAN)
|
||||
include_directories(
|
||||
.
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${LIBSDRPLAYSRC}
|
||||
${LIBMIRISDR_INCLUDE_DIR}
|
||||
)
|
||||
else (BUILD_DEBIAN)
|
||||
include_directories(
|
||||
.
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${LIBSDRPLAY_INCLUDE_DIRS}
|
||||
${LIBMIRISDR_INCLUDE_DIR}
|
||||
)
|
||||
endif (BUILD_DEBIAN)
|
||||
|
||||
@@ -48,13 +48,13 @@ add_library(inputsdrplay SHARED
|
||||
if (BUILD_DEBIAN)
|
||||
target_link_libraries(inputsdrplay
|
||||
${QT_LIBRARIES}
|
||||
sdrplay
|
||||
mirisdr
|
||||
sdrbase
|
||||
)
|
||||
else (BUILD_DEBIAN)
|
||||
target_link_libraries(inputsdrplay
|
||||
${QT_LIBRARIES}
|
||||
${LIBSDRPLAY_LIBRARIES}
|
||||
${LIBMIRISDR_LIBRARIES}
|
||||
sdrbase
|
||||
)
|
||||
endif (BUILD_DEBIAN)
|
||||
|
||||
@@ -18,10 +18,9 @@ QMAKE_CXXFLAGS += -msse4.1
|
||||
|
||||
CONFIG(MINGW32):INCLUDEPATH += "D:\libusb-1.0.19\include"
|
||||
CONFIG(MINGW64):INCLUDEPATH += "D:\libusb-1.0.19\include"
|
||||
|
||||
INCLUDEPATH += $$PWD
|
||||
INCLUDEPATH += ../../../sdrbase
|
||||
INCLUDEPATH += ../../../libsdrplay
|
||||
INCLUDEPATH += $$LIBMIRISDRSRC/include
|
||||
|
||||
CONFIG(Release):build_subdir = release
|
||||
CONFIG(Debug):build_subdir = debug
|
||||
@@ -41,11 +40,6 @@ HEADERS += sdrplaygui.h\
|
||||
FORMS += sdrplaygui.ui
|
||||
|
||||
LIBS += -L../../../sdrbase/$${build_subdir} -lsdrbase
|
||||
|
||||
CONFIG(MINGW32):LIBS += -L$$PWD/../../../libsdrplay/x86 -lmir_sdr_api
|
||||
CONFIG(MINGW64):LIBS += -L$$PWD/../../../libsdrplay/x64 -lmir_sdr_api
|
||||
|
||||
CONFIG(MINGW32):LIBS += -LD:\libusb-1.0.19\MinGW32\dll -llibusb-1.0
|
||||
CONFIG(MINGW64):LIBS += -LD:\libusb-1.0.19\MinGW64\dll -llibusb-1.0
|
||||
LIBS += -L../../../libmirisdr/$${build_subdir} -llibmirisdr
|
||||
|
||||
RESOURCES = ../../../sdrbase/resources/res.qrc
|
||||
|
||||
Reference in New Issue
Block a user