From 1a9af41ac303525fb2e83a04dc1cf495152f5ab7 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sun, 13 Mar 2016 01:22:00 +0100 Subject: [PATCH] Windows build: added Airspy plugin --- libairspy/libairspy.pro | 30 ++++++++++++++++++++ plugins/samplesource/airspy/airspy.pro | 39 ++++++++++++++++++++++++++ sdrangel.windows.pro | 2 ++ windows.install.bat | 2 ++ 4 files changed, 73 insertions(+) create mode 100644 libairspy/libairspy.pro create mode 100644 plugins/samplesource/airspy/airspy.pro diff --git a/libairspy/libairspy.pro b/libairspy/libairspy.pro new file mode 100644 index 000000000..028a343ec --- /dev/null +++ b/libairspy/libairspy.pro @@ -0,0 +1,30 @@ +#-------------------------------------------------------- +# +# Pro file for Android and Windows builds with Qt Creator +# +#-------------------------------------------------------- + +QT += core + +TEMPLATE = lib +TARGET = libairspy + +CONFIG(MINGW32):LIBAIRSPYSRC = "D:\softs\libairspy\libairspy" +INCLUDEPATH += $$LIBAIRSPYSRC/src + +CONFIG(MINGW32):INCLUDEPATH += "D:\libusb-1.0.19\include\libusb-1.0" + +SOURCES = $$LIBAIRSPYSRC/src/airspy.c\ + $$LIBAIRSPYSRC/src/iqconverter_float.c\ + $$LIBAIRSPYSRC/src/iqconverter_int16.c + +HEADERS = $$LIBAIRSPYSRC/src/airspy.h\ + $$LIBAIRSPYSRC/src/airspy_commands.h\ + $$LIBAIRSPYSRC/src/iqconverter_float.h\ + $$LIBAIRSPYSRC/src/iqconverter_int16.h\ + $$LIBAIRSPYSRC/src/filters.h + +CONFIG(MINGW32):LIBS += -LD:\libusb-1.0.19\MinGW32\dll -llibusb-1.0 + +CONFIG(ANDROID):CONFIG += mobility +CONFIG(ANDROID):MOBILITY = diff --git a/plugins/samplesource/airspy/airspy.pro b/plugins/samplesource/airspy/airspy.pro new file mode 100644 index 000000000..8b3f80c7c --- /dev/null +++ b/plugins/samplesource/airspy/airspy.pro @@ -0,0 +1,39 @@ +#-------------------------------------------------------- +# +# Pro file for Android and Windows builds with Qt Creator +# +#-------------------------------------------------------- + +TEMPLATE = lib +CONFIG += plugin + +QT += core gui widgets multimedia + +TARGET = inputairspy + +CONFIG(MINGW32):LIBAIRSPYSRC = "D:\softs\libairspy" +INCLUDEPATH += $$PWD +INCLUDEPATH += ../../../sdrbase +INCLUDEPATH += $$LIBAIRSPYSRC + +CONFIG(Release):build_subdir = release +CONFIG(Debug):build_subdir = debug + +SOURCES += airspygui.cpp\ + airspyinput.cpp\ + airspyplugin.cpp\ + airspysettings.cpp\ + airspythread.cpp + +HEADERS += airspygui.h\ + airspyinput.h\ + airspyplugin.h\ + airspysettings.h\ + airspythread.h + +FORMS += airspygui.ui + +LIBS += -L../../../sdrbase/$${build_subdir} -lsdrbase +LIBS += -L../../../libairspy/$${build_subdir} -llibairspy + +RESOURCES = ../../../sdrbase/resources/res.qrc diff --git a/sdrangel.windows.pro b/sdrangel.windows.pro index e8a0b9060..631b3708f 100644 --- a/sdrangel.windows.pro +++ b/sdrangel.windows.pro @@ -9,10 +9,12 @@ SUBDIRS = sdrbase SUBDIRS += lz4 SUBDIRS += librtlsdr SUBDIRS += libhackrf +SUBDIRS += libairspy SUBDIRS += plugins/samplesource/filesource SUBDIRS += plugins/samplesource/sdrdaemon SUBDIRS += plugins/samplesource/rtlsdr SUBDIRS += plugins/samplesource/hackrf +SUBDIRS += plugins/samplesource/airspy SUBDIRS += plugins/channel/chanalyzer SUBDIRS += plugins/channel/demodam SUBDIRS += plugins/channel/demodbfm diff --git a/windows.install.bat b/windows.install.bat index 7febf9434..d795461a2 100644 --- a/windows.install.bat +++ b/windows.install.bat @@ -5,6 +5,7 @@ copy sdrbase\%1\sdrbase.dll %2 copy lz4\%1\lz4.dll %2 copy libhackrf\%1\libhackrf.dll %2 copy librtlsdr\%1\librtlsdr.dll %2 +copy libairspy\%1\libairspy.dll %2 copy %libusbdir%\dll\libusb-1.0.dll %2 mkdir %2\plugins mkdir %2\plugins\channel @@ -22,3 +23,4 @@ copy plugins\samplesource\filesource\%1\inputfilesource.dll %2\plugins\samplesou copy plugins\samplesource\sdrdaemon\%1\inputsdrdaemon.dll %2\plugins\samplesource copy plugins\samplesource\rtlsdr\%1\inputrtlsdr.dll %2\plugins\samplesource copy plugins\samplesource\hackrf\%1\inputhackrf.dll %2\plugins\samplesource +copy plugins\samplesource\airspy\%1\inputairspy.dll %2\plugins\samplesource