mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
Windows build: added Hackrf plugin
This commit is contained in:
parent
1ba3324844
commit
108e743da8
24
libhackrf/libhackrf.pro
Normal file
24
libhackrf/libhackrf.pro
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#--------------------------------------------------------
|
||||||
|
#
|
||||||
|
# Pro file for Android and Windows builds with Qt Creator
|
||||||
|
#
|
||||||
|
#--------------------------------------------------------
|
||||||
|
|
||||||
|
QT += core
|
||||||
|
|
||||||
|
TEMPLATE = lib
|
||||||
|
TARGET = libhackrf
|
||||||
|
|
||||||
|
CONFIG(MINGW32):LIBHACKRFSRC = "D:\softs\hackrf\host\libhackrf"
|
||||||
|
INCLUDEPATH += $$LIBHACKRFSRC/src
|
||||||
|
|
||||||
|
CONFIG(MINGW32):INCLUDEPATH += "D:\libusb-1.0.19\include\libusb-1.0"
|
||||||
|
|
||||||
|
SOURCES = $$LIBHACKRFSRC/src/hackrf.c
|
||||||
|
|
||||||
|
HEADERS = $$LIBHACKRFSRC/src/hackrf.h
|
||||||
|
|
||||||
|
CONFIG(MINGW32):LIBS += -LD:\libusb-1.0.19\MinGW32\dll -llibusb-1.0
|
||||||
|
|
||||||
|
CONFIG(ANDROID):CONFIG += mobility
|
||||||
|
CONFIG(ANDROID):MOBILITY =
|
@ -12,7 +12,7 @@ TARGET = librtlsdr
|
|||||||
CONFIG(MINGW32):LIBRTLSDRSRC = "D:\softs\librtlsdr"
|
CONFIG(MINGW32):LIBRTLSDRSRC = "D:\softs\librtlsdr"
|
||||||
INCLUDEPATH += $$LIBRTLSDRSRC/include
|
INCLUDEPATH += $$LIBRTLSDRSRC/include
|
||||||
|
|
||||||
CONFIG(MINGW32):INCLUDEPATH += "D:\libusb-1.0.20\include\libusb-1.0"
|
CONFIG(MINGW32):INCLUDEPATH += "D:\libusb-1.0.19\include\libusb-1.0"
|
||||||
|
|
||||||
SOURCES = $$LIBRTLSDRSRC/src/librtlsdr.c\
|
SOURCES = $$LIBRTLSDRSRC/src/librtlsdr.c\
|
||||||
$$LIBRTLSDRSRC/src/tuner_e4k.c\
|
$$LIBRTLSDRSRC/src/tuner_e4k.c\
|
||||||
@ -26,7 +26,7 @@ HEADERS = $$LIBRTLSDRSRC/include/rtl-sdr.h\
|
|||||||
$$LIBRTLSDRSRC/include/rtl-sdr_export.h\
|
$$LIBRTLSDRSRC/include/rtl-sdr_export.h\
|
||||||
$$LIBRTLSDRSRC/src/getopt/getopt.h
|
$$LIBRTLSDRSRC/src/getopt/getopt.h
|
||||||
|
|
||||||
CONFIG(MINGW32):LIBS += -LD:\libusb-1.0.20\MinGW32\dll -llibusb-1.0
|
CONFIG(MINGW32):LIBS += -LD:\libusb-1.0.19\MinGW32\dll -llibusb-1.0
|
||||||
|
|
||||||
CONFIG(ANDROID):CONFIG += mobility
|
CONFIG(ANDROID):CONFIG += mobility
|
||||||
CONFIG(ANDROID):MOBILITY =
|
CONFIG(ANDROID):MOBILITY =
|
||||||
|
39
plugins/samplesource/hackrf/hackrf.pro
Normal file
39
plugins/samplesource/hackrf/hackrf.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 = inputhackrf
|
||||||
|
|
||||||
|
CONFIG(MINGW32):LIBHACKRFSRC = "D:\softs\hackrf\host"
|
||||||
|
INCLUDEPATH += $$PWD
|
||||||
|
INCLUDEPATH += ../../../sdrbase
|
||||||
|
INCLUDEPATH += $$LIBHACKRFSRC
|
||||||
|
|
||||||
|
CONFIG(Release):build_subdir = release
|
||||||
|
CONFIG(Debug):build_subdir = debug
|
||||||
|
|
||||||
|
SOURCES += hackrfgui.cpp\
|
||||||
|
hackrfinput.cpp\
|
||||||
|
hackrfplugin.cpp\
|
||||||
|
hackrfsettings.cpp\
|
||||||
|
hackrfthread.cpp
|
||||||
|
|
||||||
|
HEADERS += hackrfgui.h\
|
||||||
|
hackrfinput.h\
|
||||||
|
hackrfplugin.h\
|
||||||
|
hackrfsettings.h\
|
||||||
|
hackrfthread.h
|
||||||
|
|
||||||
|
FORMS += hackrfgui.ui
|
||||||
|
|
||||||
|
LIBS += -L../../../sdrbase/$${build_subdir} -lsdrbase
|
||||||
|
LIBS += -L../../../libhackrf/$${build_subdir} -llibhackrf
|
||||||
|
|
||||||
|
RESOURCES = ../../../sdrbase/resources/res.qrc
|
@ -8,9 +8,11 @@ TEMPLATE = subdirs
|
|||||||
SUBDIRS = sdrbase
|
SUBDIRS = sdrbase
|
||||||
SUBDIRS += lz4
|
SUBDIRS += lz4
|
||||||
SUBDIRS += librtlsdr
|
SUBDIRS += librtlsdr
|
||||||
|
SUBDIRS += libhackrf
|
||||||
SUBDIRS += plugins/samplesource/filesource
|
SUBDIRS += plugins/samplesource/filesource
|
||||||
SUBDIRS += plugins/samplesource/sdrdaemon
|
SUBDIRS += plugins/samplesource/sdrdaemon
|
||||||
SUBDIRS += plugins/samplesource/rtlsdr
|
SUBDIRS += plugins/samplesource/rtlsdr
|
||||||
|
SUBDIRS += plugins/samplesource/hackrf
|
||||||
SUBDIRS += plugins/channel/chanalyzer
|
SUBDIRS += plugins/channel/chanalyzer
|
||||||
SUBDIRS += plugins/channel/demodam
|
SUBDIRS += plugins/channel/demodam
|
||||||
SUBDIRS += plugins/channel/demodbfm
|
SUBDIRS += plugins/channel/demodbfm
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
SET libusbdir="D:\libusb-1.0.20\MinGW32"
|
SET libusbdir="D:\libusb-1.0.19\MinGW32"
|
||||||
|
|
||||||
copy app\%1\sdrangel.exe %2
|
copy app\%1\sdrangel.exe %2
|
||||||
copy sdrbase\%1\sdrbase.dll %2
|
copy sdrbase\%1\sdrbase.dll %2
|
||||||
copy lz4\%1\lz4.dll %2
|
copy lz4\%1\lz4.dll %2
|
||||||
|
copy libhackrf\%1\libhackrf.dll %2
|
||||||
copy librtlsdr\%1\librtlsdr.dll %2
|
copy librtlsdr\%1\librtlsdr.dll %2
|
||||||
copy %libusbdir%\dll\libusb-1.0.dll %2
|
copy %libusbdir%\dll\libusb-1.0.dll %2
|
||||||
mkdir %2\plugins
|
mkdir %2\plugins
|
||||||
@ -20,3 +21,4 @@ copy plugins\channel\udpsrc\%1\udpsrc.dll %2\plugins\channel
|
|||||||
copy plugins\samplesource\filesource\%1\inputfilesource.dll %2\plugins\samplesource
|
copy plugins\samplesource\filesource\%1\inputfilesource.dll %2\plugins\samplesource
|
||||||
copy plugins\samplesource\sdrdaemon\%1\inputsdrdaemon.dll %2\plugins\samplesource
|
copy plugins\samplesource\sdrdaemon\%1\inputsdrdaemon.dll %2\plugins\samplesource
|
||||||
copy plugins\samplesource\rtlsdr\%1\inputrtlsdr.dll %2\plugins\samplesource
|
copy plugins\samplesource\rtlsdr\%1\inputrtlsdr.dll %2\plugins\samplesource
|
||||||
|
copy plugins\samplesource\hackrf\%1\inputhackrf.dll %2\plugins\samplesource
|
||||||
|
Loading…
Reference in New Issue
Block a user