1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-14 20:31:53 -05:00

Windows build: compilable libperseus

This commit is contained in:
f4exb 2018-02-13 14:25:32 +01:00
parent 780e58ba48
commit aab093dbc5
4 changed files with 179 additions and 0 deletions

View File

@ -1,4 +1,5 @@
#ifdef WIN32 #ifdef WIN32
#include "config.windows.h"
#else #else
#include "config.linux.h" #include "config.linux.h"
#endif #endif

136
libperseus/config.windows.h Normal file
View File

@ -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 <dlfcn.h> 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 <inttypes.h> 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 <libusb-1.0/libusb.h> 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 <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <unistd.h> 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 <sys/time.h> and <time.h>. */
#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 <sys/synch.h>,
<pthread.h>, or <semaphore.h> 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 <sys/synch.h>,
<pthread.h>, or <semaphore.h> 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 <sys/types.h> 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 */

41
libperseus/libperseus.pro Normal file
View File

@ -0,0 +1,41 @@
#--------------------------------------------------------
#
# Pro file for Android and Windows builds with Qt Creator
#
#--------------------------------------------------------
QT += core
TEMPLATE = lib
TARGET = libperseus
DEFINES += HAVE_CONFIG_H=1
CONFIG(MINGW32):LIBPERSEUSSRC = "D:\softs\libperseus-sdr"
CONFIG(MINGW64):LIBPERSEUSSRC = "D:\softs\libperseus-sdr"
INCLUDEPATH += $$LIBPERSEUSSRC/src
CONFIG(MINGW32):INCLUDEPATH += "D:\softs\libusb-1.0.20\include"
CONFIG(MINGW64):INCLUDEPATH += "D:\softs\libusb-1.0.20\include"
SOURCES = fpga_data.c\
$$LIBPERSEUSSRC/fifo.c\
$$LIBPERSEUSSRC/perseuserr.c\
$$LIBPERSEUSSRC/perseusfx2.c\
$$LIBPERSEUSSRC/perseus-in.c\
$$LIBPERSEUSSRC/perseus-sdr.c
HEADERS = fpga_data.h\
config.h\
config.windows.h\
$$LIBPERSEUSSRC/fifo.h\
$$LIBPERSEUSSRC/perseuserr.h\
$$LIBPERSEUSSRC/perseusfx2.h\
$$LIBPERSEUSSRC/perseus-in.h\
$$LIBPERSEUSSRC/perseus-sdr.h
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(ANDROID):CONFIG += mobility
CONFIG(ANDROID):MOBILITY =

View File

@ -23,6 +23,7 @@ SUBDIRS += libbladerf
SUBDIRS += libhackrf SUBDIRS += libhackrf
SUBDIRS += libiio SUBDIRS += libiio
SUBDIRS += liblimesuite SUBDIRS += liblimesuite
SUBDIRS += libperseus
SUBDIRS += librtlsdr SUBDIRS += librtlsdr
SUBDIRS += libsqlite3 SUBDIRS += libsqlite3
SUBDIRS += devices SUBDIRS += devices