2018-02-13 08:25:32 -05:00
|
|
|
#--------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Pro file for Android and Windows builds with Qt Creator
|
|
|
|
#
|
|
|
|
#--------------------------------------------------------
|
|
|
|
|
|
|
|
QT += core
|
|
|
|
|
|
|
|
TEMPLATE = lib
|
|
|
|
TARGET = libperseus
|
|
|
|
|
|
|
|
DEFINES += HAVE_CONFIG_H=1
|
|
|
|
|
2018-07-11 12:05:05 -04:00
|
|
|
CONFIG(MINGW32):LIBPERSEUSSRC = "C:\softs\libperseus-sdr"
|
|
|
|
CONFIG(MINGW64):LIBPERSEUSSRC = "C:\softs\libperseus-sdr"
|
2019-01-01 09:30:20 -05:00
|
|
|
CONFIG(macx):LIBPERSEUSSRC = "../../../libperseus-sdr"
|
2018-02-13 08:25:32 -05:00
|
|
|
INCLUDEPATH += $$LIBPERSEUSSRC/src
|
|
|
|
|
2018-09-28 10:45:08 -04:00
|
|
|
CONFIG(MINGW32):INCLUDEPATH += "C:\softs\libusb-1.0.22\include"
|
|
|
|
CONFIG(MINGW64):INCLUDEPATH += "C:\softs\libusb-1.0.22\include"
|
2019-01-01 09:30:20 -05:00
|
|
|
CONFIG(macx):INCLUDEPATH += /opt/local/include
|
2018-02-13 08:25:32 -05:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2018-09-28 10:45:08 -04:00
|
|
|
CONFIG(MINGW32):LIBS += -LC:\softs\libusb-1.0.22\MinGW32\dll -llibusb-1.0
|
|
|
|
CONFIG(MINGW64):LIBS += -LC:\softs\libusb-1.0.22\MinGW64\dll -llibusb-1.0
|
2019-01-01 09:30:20 -05:00
|
|
|
macx {
|
|
|
|
HEADERS -= config.windows.h
|
|
|
|
DEFINES += HAVE_LIBUSB_STRERROR
|
|
|
|
QMAKE_LFLAGS_SONAME = -Wl,-install_name,@rpath/
|
|
|
|
LIBS += -L/opt/local/lib -lusb-1.0
|
|
|
|
}
|
2018-02-13 08:25:32 -05:00
|
|
|
|
|
|
|
CONFIG(ANDROID):CONFIG += mobility
|
|
|
|
CONFIG(ANDROID):MOBILITY =
|