mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 01:39:05 -05:00
Windows build: added RTL-SDR input plugin with dependency to binary libusb for MinGW32
This commit is contained in:
parent
2e211365eb
commit
137193ff3b
32
librtlsdr/librtlsdr.pro
Normal file
32
librtlsdr/librtlsdr.pro
Normal file
@ -0,0 +1,32 @@
|
||||
#--------------------------------------------------------
|
||||
#
|
||||
# Pro file for Android and Windows builds with Qt Creator
|
||||
#
|
||||
#--------------------------------------------------------
|
||||
|
||||
QT += core
|
||||
|
||||
TEMPLATE = lib
|
||||
TARGET = librtlsdr
|
||||
|
||||
CONFIG(MINGW32):LIBRTLSDRSRC = "D:\softs\librtlsdr"
|
||||
INCLUDEPATH += $$LIBRTLSDRSRC/include
|
||||
|
||||
CONFIG(MINGW32):INCLUDEPATH += "D:\libusb-1.0.20\include\libusb-1.0"
|
||||
|
||||
SOURCES = $$LIBRTLSDRSRC/src/librtlsdr.c\
|
||||
$$LIBRTLSDRSRC/src/tuner_e4k.c\
|
||||
$$LIBRTLSDRSRC/src/tuner_fc0012.c\
|
||||
$$LIBRTLSDRSRC/src/tuner_fc0013.c\
|
||||
$$LIBRTLSDRSRC/src/tuner_fc2580.c\
|
||||
$$LIBRTLSDRSRC/src/tuner_r82xx.c\
|
||||
$$LIBRTLSDRSRC/src/getopt/getopt.c
|
||||
|
||||
HEADERS = $$LIBRTLSDRSRC/include/rtl-sdr.h\
|
||||
$$LIBRTLSDRSRC/include/rtl-sdr_export.h\
|
||||
$$LIBRTLSDRSRC/src/getopt/getopt.h
|
||||
|
||||
CONFIG(MINGW32):LIBS += -LD:\libusb-1.0.20\MinGW32\dll -llibusb-1.0
|
||||
|
||||
CONFIG(ANDROID):CONFIG += mobility
|
||||
CONFIG(ANDROID):MOBILITY =
|
39
plugins/samplesource/rtlsdr/rtlsdr.pro
Normal file
39
plugins/samplesource/rtlsdr/rtlsdr.pro
Normal file
@ -0,0 +1,39 @@
|
||||
#--------------------------------------------------------
|
||||
#
|
||||
# Pro file for Android and Windows builds with Qt Creator
|
||||
#
|
||||
#--------------------------------------------------------
|
||||
|
||||
TEMPLATE = lib
|
||||
CONFIG += plugin
|
||||
|
||||
QT += core gui widgets multimedia
|
||||
|
||||
TARGET = inputrtlsdr
|
||||
|
||||
CONFIG(MINGW32):LIBRTLSDRSRC = "D:\softs\librtlsdr"
|
||||
INCLUDEPATH += $$PWD
|
||||
INCLUDEPATH += ../../../sdrbase
|
||||
INCLUDEPATH += $$LIBRTLSDRSRC/include
|
||||
|
||||
CONFIG(Release):build_subdir = release
|
||||
CONFIG(Debug):build_subdir = debug
|
||||
|
||||
SOURCES += rtlsdrgui.cpp\
|
||||
rtlsdrinput.cpp\
|
||||
rtlsdrplugin.cpp\
|
||||
rtlsdrsettings.cpp\
|
||||
rtlsdrthread.cpp
|
||||
|
||||
HEADERS += rtlsdrgui.h\
|
||||
rtlsdrinput.h\
|
||||
rtlsdrplugin.h\
|
||||
rtlsdrsettings.h\
|
||||
rtlsdrthread.h
|
||||
|
||||
FORMS += rtlsdrgui.ui
|
||||
|
||||
LIBS += -L../../../sdrbase/$${build_subdir} -lsdrbase
|
||||
LIBS += -L../../../librtlsdr/$${build_subdir} -llibrtlsdr
|
||||
|
||||
RESOURCES = ../../../sdrbase/resources/res.qrc
|
@ -7,8 +7,10 @@
|
||||
TEMPLATE = subdirs
|
||||
SUBDIRS = sdrbase
|
||||
SUBDIRS += lz4
|
||||
SUBDIRS += librtlsdr
|
||||
SUBDIRS += plugins/samplesource/filesource
|
||||
SUBDIRS += plugins/samplesource/sdrdaemon
|
||||
SUBDIRS += plugins/samplesource/rtlsdr
|
||||
SUBDIRS += plugins/channel/chanalyzer
|
||||
SUBDIRS += plugins/channel/demodam
|
||||
SUBDIRS += plugins/channel/demodbfm
|
||||
|
@ -1,6 +1,9 @@
|
||||
SET libusbdir="D:\libusb-1.0.20\MinGW32"
|
||||
|
||||
copy app\%1\sdrangel.exe %2
|
||||
copy sdrbase\%1\sdrbase.dll %2
|
||||
copy lz4\%1\lz4.dll %2
|
||||
copy %libusbdir%\dll\libusb-1.0.dll %2
|
||||
mkdir %2\plugins
|
||||
mkdir %2\plugins\channel
|
||||
mkdir %2\plugins\samplesource
|
||||
@ -15,3 +18,4 @@ copy plugins\channel\tcpsrc\%1\tcpsrc.dll %2\plugins\channel
|
||||
copy plugins\channel\udpsrc\%1\udpsrc.dll %2\plugins\channel
|
||||
copy plugins\samplesource\filesource\%1\inputfilesource.dll %2\plugins\samplesource
|
||||
copy plugins\samplesource\sdrdaemon\%1\inputsdrdaemon.dll %2\plugins\samplesource
|
||||
copy plugins\samplesource\rtlsdr\%1\inputrtlsdr.dll %2\plugins\samplesource
|
||||
|
Loading…
Reference in New Issue
Block a user