mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-07-31 13:02:27 -04:00
PlutoSDR input: Debian build
This commit is contained in:
parent
97e665f2f5
commit
7359427156
@ -589,6 +589,7 @@ if (BUILD_DEBIAN)
|
|||||||
add_subdirectory(libbladerf)
|
add_subdirectory(libbladerf)
|
||||||
add_subdirectory(libmirisdr)
|
add_subdirectory(libmirisdr)
|
||||||
add_subdirectory(liblimesuite)
|
add_subdirectory(liblimesuite)
|
||||||
|
add_subdirectory(libiio)
|
||||||
endif (BUILD_DEBIAN)
|
endif (BUILD_DEBIAN)
|
||||||
|
|
||||||
add_subdirectory(httpserver)
|
add_subdirectory(httpserver)
|
||||||
|
46
libiio/CMakeLists.txt
Normal file
46
libiio/CMakeLists.txt
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
project(iio)
|
||||||
|
|
||||||
|
find_package(LibUSB)
|
||||||
|
|
||||||
|
set(iio_SOURCES
|
||||||
|
${LIBIIOSRC}/backend.c
|
||||||
|
${LIBIIOSRC}/buffer.c
|
||||||
|
${LIBIIOSRC}/channel.c
|
||||||
|
${LIBIIOSRC}/context.c
|
||||||
|
${LIBIIOSRC}/device.c
|
||||||
|
${LIBIIOSRC}/iiod-client.c
|
||||||
|
${LIBIIOSRC}/lock.c
|
||||||
|
${LIBIIOSRC}/scan.c
|
||||||
|
${LIBIIOSRC}/usb.c
|
||||||
|
${LIBIIOSRC}/utilities.c
|
||||||
|
${LIBIIOSRC}/xml.c
|
||||||
|
)
|
||||||
|
|
||||||
|
set(iio_HEADERS
|
||||||
|
${LIBIIOSRC}/debug.h
|
||||||
|
${LIBIIOSRC}/iio.h
|
||||||
|
${LIBIIOSRC}/iiod-client.h
|
||||||
|
${LIBIIOSRC}/iio-lock.h
|
||||||
|
${LIBIIOSRC}/iio-private.h
|
||||||
|
include/iio-config.h
|
||||||
|
)
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
.
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
${LIBUSB_INCLUDE_DIR}
|
||||||
|
${LIBIIOSRC}
|
||||||
|
./include
|
||||||
|
)
|
||||||
|
|
||||||
|
add_definitions(-DQT_SHARED)
|
||||||
|
|
||||||
|
add_library(iio SHARED
|
||||||
|
${libiio_SOURCES}
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(iio
|
||||||
|
${LIBUSB_LIBRARIES}
|
||||||
|
)
|
||||||
|
|
||||||
|
install(TARGETS iio DESTINATION lib)
|
@ -1,30 +1,30 @@
|
|||||||
#ifndef IIO_CONFIG_H
|
#ifndef IIO_CONFIG_H
|
||||||
#define IIO_CONFIG_H
|
#define IIO_CONFIG_H
|
||||||
|
|
||||||
#define LIBIIO_VERSION_MAJOR 0
|
#define LIBIIO_VERSION_MAJOR 0
|
||||||
#define LIBIIO_VERSION_MINOR 10
|
#define LIBIIO_VERSION_MINOR 10
|
||||||
#define LIBIIO_VERSION_GIT "3b288d4"
|
#define LIBIIO_VERSION_GIT "3b288d4"
|
||||||
|
|
||||||
#define LOG_LEVEL Info_L
|
#define LOG_LEVEL Info_L
|
||||||
|
|
||||||
/* #undef WITH_LOCAL_BACKEND */
|
#define WITH_LOCAL_BACKEND
|
||||||
#define WITH_XML_BACKEND
|
#define WITH_XML_BACKEND
|
||||||
/* #undef WITH_NETWORK_BACKEND */
|
#define WITH_NETWORK_BACKEND
|
||||||
#define WITH_USB_BACKEND
|
#define WITH_USB_BACKEND
|
||||||
/* #undef WITH_SERIAL_BACKEND */
|
/* #undef WITH_SERIAL_BACKEND */
|
||||||
/* #undef WITH_MATLAB_BINDINGS_API */
|
#define WITH_MATLAB_BINDINGS_API
|
||||||
|
|
||||||
/* #undef WITH_NETWORK_GET_BUFFER */
|
/* #undef WITH_NETWORK_GET_BUFFER */
|
||||||
/* #undef WITH_NETWORK_EVENTFD */
|
#define WITH_NETWORK_EVENTFD
|
||||||
/* #undef WITH_IIOD_USBD */
|
#define WITH_IIOD_USBD
|
||||||
/* #undef WITH_LOCAL_CONFIG */
|
/* #undef WITH_LOCAL_CONFIG */
|
||||||
#define HAS_PIPE2
|
#define HAS_PIPE2
|
||||||
#define HAS_STRDUP
|
#define HAS_STRDUP
|
||||||
#define HAS_STRERROR_R
|
#define HAS_STRERROR_R
|
||||||
#define HAS_NEWLOCALE
|
#define HAS_NEWLOCALE
|
||||||
/* #undef HAS_PTHREAD_SETNAME_NP */
|
#define HAS_PTHREAD_SETNAME_NP
|
||||||
/* #undef HAVE_IPV6 */
|
#define HAVE_IPV6
|
||||||
/* #undef HAVE_AVAHI */
|
/* #undef HAVE_AVAHI */
|
||||||
/* #undef NO_THREADS */
|
/* #undef NO_THREADS */
|
||||||
|
|
||||||
#endif /* IIO_CONFIG_H */
|
#endif /* IIO_CONFIG_H */
|
||||||
|
30
libiio/includemw/iio-config.h
Normal file
30
libiio/includemw/iio-config.h
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
#ifndef IIO_CONFIG_H
|
||||||
|
#define IIO_CONFIG_H
|
||||||
|
|
||||||
|
#define LIBIIO_VERSION_MAJOR 0
|
||||||
|
#define LIBIIO_VERSION_MINOR 10
|
||||||
|
#define LIBIIO_VERSION_GIT "3b288d4"
|
||||||
|
|
||||||
|
#define LOG_LEVEL Info_L
|
||||||
|
|
||||||
|
/* #undef WITH_LOCAL_BACKEND */
|
||||||
|
#define WITH_XML_BACKEND
|
||||||
|
/* #undef WITH_NETWORK_BACKEND */
|
||||||
|
#define WITH_USB_BACKEND
|
||||||
|
/* #undef WITH_SERIAL_BACKEND */
|
||||||
|
/* #undef WITH_MATLAB_BINDINGS_API */
|
||||||
|
|
||||||
|
/* #undef WITH_NETWORK_GET_BUFFER */
|
||||||
|
/* #undef WITH_NETWORK_EVENTFD */
|
||||||
|
/* #undef WITH_IIOD_USBD */
|
||||||
|
/* #undef WITH_LOCAL_CONFIG */
|
||||||
|
#define HAS_PIPE2
|
||||||
|
#define HAS_STRDUP
|
||||||
|
#define HAS_STRERROR_R
|
||||||
|
#define HAS_NEWLOCALE
|
||||||
|
/* #undef HAS_PTHREAD_SETNAME_NP */
|
||||||
|
/* #undef HAVE_IPV6 */
|
||||||
|
/* #undef HAVE_AVAHI */
|
||||||
|
/* #undef NO_THREADS */
|
||||||
|
|
||||||
|
#endif /* IIO_CONFIG_H */
|
@ -1,57 +1,57 @@
|
|||||||
#--------------------------------------------------------
|
#--------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Pro file for Android and Windows builds with Qt Creator
|
# Pro file for Android and Windows builds with Qt Creator
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------
|
#--------------------------------------------------------
|
||||||
|
|
||||||
QT += core
|
QT += core
|
||||||
|
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
TARGET = libiio
|
TARGET = libiio
|
||||||
|
|
||||||
CONFIG(MINGW32):LIBIIOSRC = "D:\softs\libiio"
|
CONFIG(MINGW32):LIBIIOSRC = "D:\softs\libiio"
|
||||||
CONFIG(MINGW64):LIBIIOSRC = "D:\softs\libiio"
|
CONFIG(MINGW64):LIBIIOSRC = "D:\softs\libiio"
|
||||||
|
|
||||||
INCLUDEPATH += $$PWD/include
|
INCLUDEPATH += $$PWD/include
|
||||||
INCLUDEPATH += $$LIBIIOSRC
|
INCLUDEPATH += $$LIBIIOSRC
|
||||||
|
|
||||||
CONFIG(MINGW32):INCLUDEPATH += "D:\softs\libusb-1.0.20\include"
|
CONFIG(MINGW32):INCLUDEPATH += "D:\softs\libusb-1.0.20\include"
|
||||||
CONFIG(MINGW64):INCLUDEPATH += "D:\softs\libusb-1.0.20\include"
|
CONFIG(MINGW64):INCLUDEPATH += "D:\softs\libusb-1.0.20\include"
|
||||||
|
|
||||||
# LibXml2 Windows distribution from:
|
# LibXml2 Windows distribution from:
|
||||||
# http://xmlsoft.org/sources/win32/
|
# http://xmlsoft.org/sources/win32/
|
||||||
# http://xmlsoft.org/sources/win32/64bit/
|
# http://xmlsoft.org/sources/win32/64bit/
|
||||||
|
|
||||||
CONFIG(MINGW32):INCLUDEPATH += "D:\softs\libxml2-2.7.8.win32\include"
|
CONFIG(MINGW32):INCLUDEPATH += "D:\softs\libxml2-2.7.8.win32\include"
|
||||||
CONFIG(MINGW64):INCLUDEPATH += "D:\softs\libxml2-2.9.3-win32-x86_64\include\libxml2"
|
CONFIG(MINGW64):INCLUDEPATH += "D:\softs\libxml2-2.9.3-win32-x86_64\include\libxml2"
|
||||||
|
|
||||||
SOURCES = $$LIBIIOSRC/backend.c\
|
SOURCES = $$LIBIIOSRC/backend.c\
|
||||||
$$LIBIIOSRC/buffer.c\
|
$$LIBIIOSRC/buffer.c\
|
||||||
$$LIBIIOSRC/channel.c\
|
$$LIBIIOSRC/channel.c\
|
||||||
$$LIBIIOSRC/context.c\
|
$$LIBIIOSRC/context.c\
|
||||||
$$LIBIIOSRC/device.c\
|
$$LIBIIOSRC/device.c\
|
||||||
$$LIBIIOSRC/iiod-client.c\
|
$$LIBIIOSRC/iiod-client.c\
|
||||||
# $$LIBIIOSRC/local.c\
|
# $$LIBIIOSRC/local.c\
|
||||||
$$LIBIIOSRC/lock.c\
|
$$LIBIIOSRC/lock.c\
|
||||||
# $$LIBIIOSRC/network.c\
|
# $$LIBIIOSRC/network.c\
|
||||||
$$LIBIIOSRC/scan.c\
|
$$LIBIIOSRC/scan.c\
|
||||||
# $$LIBIIOSRC/serial.c\
|
# $$LIBIIOSRC/serial.c\
|
||||||
$$LIBIIOSRC/usb.c\
|
$$LIBIIOSRC/usb.c\
|
||||||
$$LIBIIOSRC/utilities.c\
|
$$LIBIIOSRC/utilities.c\
|
||||||
$$LIBIIOSRC/xml.c
|
$$LIBIIOSRC/xml.c
|
||||||
|
|
||||||
HEADERS = $$LIBIIOSRC/debug.h\
|
HEADERS = $$LIBIIOSRC/debug.h\
|
||||||
$$LIBIIOSRC/iio.h\
|
$$LIBIIOSRC/iio.h\
|
||||||
$$LIBIIOSRC/iiod-client.h\
|
$$LIBIIOSRC/iiod-client.h\
|
||||||
$$LIBIIOSRC/iio-lock.h\
|
$$LIBIIOSRC/iio-lock.h\
|
||||||
$$LIBIIOSRC/iio-private.h\
|
$$LIBIIOSRC/iio-private.h\
|
||||||
$$PWD\include/iio-config.h
|
$$PWD\includemw/iio-config.h
|
||||||
|
|
||||||
CONFIG(MINGW32):LIBS += -LD:\softs\libusb-1.0.20\MinGW32\dll -llibusb-1.0
|
CONFIG(MINGW32):LIBS += -LD:\softs\libusb-1.0.20\MinGW32\dll -llibusb-1.0
|
||||||
CONFIG(MINGW64):LIBS += -LD:\softs\libusb-1.0.20\MinGW64\dll -llibusb-1.0
|
CONFIG(MINGW64):LIBS += -LD:\softs\libusb-1.0.20\MinGW64\dll -llibusb-1.0
|
||||||
|
|
||||||
CONFIG(MINGW32):LIBS += -LD:\softs\libxml2-2.7.8.win32\bin -llibxml2
|
CONFIG(MINGW32):LIBS += -LD:\softs\libxml2-2.7.8.win32\bin -llibxml2
|
||||||
CONFIG(MINGW64):LIBS += -LD:\softs\libxml2-2.9.3-win32-x86_64\bin -llibxml2-2
|
CONFIG(MINGW64):LIBS += -LD:\softs\libxml2-2.9.3-win32-x86_64\bin -llibxml2-2
|
||||||
|
|
||||||
CONFIG(ANDROID):CONFIG += mobility
|
CONFIG(ANDROID):CONFIG += mobility
|
||||||
CONFIG(ANDROID):MOBILITY =
|
CONFIG(ANDROID):MOBILITY =
|
||||||
|
@ -22,7 +22,7 @@ set(plutosdrinput_FORMS
|
|||||||
|
|
||||||
if (BUILD_DEBIAN)
|
if (BUILD_DEBIAN)
|
||||||
include_directories(
|
include_directories(
|
||||||
.
|
.
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${CMAKE_SOURCE_DIR}/devices
|
${CMAKE_SOURCE_DIR}/devices
|
||||||
${LIBIIOSRC}
|
${LIBIIOSRC}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user