diff --git a/CMakeLists.txt b/CMakeLists.txt index d414aabe2..4dd962a09 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -296,6 +296,7 @@ add_subdirectory(pluginssrv) if(LIBUSB_FOUND AND UNIX) add_subdirectory(fcdhid) add_subdirectory(fcdlib) + add_subdirectory(libperseus) endif(LIBUSB_FOUND AND UNIX) ############################################################################## diff --git a/libperseus/CMakeLists.txt b/libperseus/CMakeLists.txt index 7631982b4..04119c5e0 100644 --- a/libperseus/CMakeLists.txt +++ b/libperseus/CMakeLists.txt @@ -2,10 +2,11 @@ project(perseus) find_package(LibUSB) +set (LIBPERSEUSSRC "/opt/build/libperseus-sdr") +add_definitions(-DHAVE_CONFIG_H) + set(perseus_SOURCES ${LIBPERSEUSSRC}/fifo.c - ${LIBPERSEUSSRC}/perseus24v11_512.c - ${LIBPERSEUSSRC}/perseus24v41_512.c ${LIBPERSEUSSRC}/perseuserr.c ${LIBPERSEUSSRC}/perseusfx2.c ${LIBPERSEUSSRC}/perseus-in.c diff --git a/libperseus/config.h b/libperseus/config.h new file mode 100644 index 000000000..4fdefec3a --- /dev/null +++ b/libperseus/config.h @@ -0,0 +1,4 @@ +#ifdef WIN32 +#else +#include "config.linux.h" +#endif diff --git a/libperseus/config.linux.h b/libperseus/config.linux.h new file mode 100644 index 000000000..00936d277 --- /dev/null +++ b/libperseus/config.linux.h @@ -0,0 +1,136 @@ +/* config.h. Generated from config.h.in by configure. */ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Define to 1 if you have the header file. */ +#define HAVE_DLFCN_H 1 + +/* Define to 1 if you have the `gettimeofday' function. */ +#define HAVE_GETTIMEOFDAY 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the `dl' library (-ldl). */ +#define HAVE_LIBDL 1 + +/* Define to 1 if you have the `pthread' library (-lpthread). */ +#define HAVE_LIBPTHREAD 1 + +/* Define to 1 if you have the `usb-1.0' library (-lusb-1.0). */ +#define HAVE_LIBUSB_1_0 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_LIBUSB_1_0_LIBUSB_H */ + +/* Define to 1 if you have the `libusb_strerror' function. */ +#define HAVE_LIBUSB_STRERROR 1 + +/* Define to 1 if your system has a GNU libc compatible `malloc' function, and + to 0 otherwise. */ +#define HAVE_MALLOC 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to the sub-directory where libtool stores uninstalled libraries. */ +#define LT_OBJDIR ".libs/" + +/* Linux backend */ +#define OS_LINUX 1 + +/* Windows backend */ +/* #undef OS_WINDOWS */ + +/* Name of package */ +#define PACKAGE "libperseus_sdr" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "andrew@montefusco.com" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "libperseus_sdr" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "libperseus_sdr 0.7.5.4-af9f" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "libperseus_sdr" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "0.7.5.4-af9f" + +/* type of second poll() argument */ +/* #undef POLL_NFDS_TYPE */ + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define to 1 if you can safely include both and . */ +#define TIME_WITH_SYS_TIME 1 + +/* Version number of package */ +#define VERSION "0.7.5.4-af9f" + +/* Define for Solaris 2.5.1 so the uint32_t typedef from , + , or is not used. If the typedef were allowed, the + #define below would cause a syntax error. */ +/* #undef _UINT32_T */ + +/* Define for Solaris 2.5.1 so the uint8_t typedef from , + , or is not used. If the typedef were allowed, the + #define below would cause a syntax error. */ +/* #undef _UINT8_T */ + +/* Define to the type of a signed integer type of width exactly 16 bits if + such a type exists and the standard includes do not define it. */ +/* #undef int16_t */ + +/* Define to the type of a signed integer type of width exactly 32 bits if + such a type exists and the standard includes do not define it. */ +/* #undef int32_t */ + +/* Define to rpl_malloc if the replacement function should be used. */ +/* #undef malloc */ + +/* Define to `int' if does not define. */ +/* #undef ssize_t */ + +/* Define to the type of an unsigned integer type of width exactly 16 bits if + such a type exists and the standard includes do not define it. */ +/* #undef uint16_t */ + +/* Define to the type of an unsigned integer type of width exactly 32 bits if + such a type exists and the standard includes do not define it. */ +/* #undef uint32_t */ + +/* Define to the type of an unsigned integer type of width exactly 8 bits if + such a type exists and the standard includes do not define it. */ +/* #undef uint8_t */ + +/* Define to empty if the keyword `volatile' does not work. Warning: valid + code using `volatile' can become incorrect without. Disable with care. */ +/* #undef volatile */