ostinato/server/drone.pro

77 lines
1.7 KiB
Prolog
Raw Normal View History

TEMPLATE = app
2018-07-27 06:55:43 -05:00
CONFIG += qt ver_info c++11
addon: CONFIG -= ver_info
QT += network script xml
QT -= gui
linux*:system(grep -q IFLA_STATS64 /usr/include/linux/if_link.h): \
DEFINES += HAVE_IFLA_STATS64
2018-12-11 07:23:07 -06:00
INCLUDEPATH += "../common"
INCLUDEPATH += "../rpc"
OBJDIR = .
win32 {
# Support Windows Vista and above only
DEFINES += WIN32_LEAN_AND_MEAN NTDDI_VERSION=0x06000000 _WIN32_WINNT=0x0600
2018-03-19 09:44:30 -05:00
DEFINES += HAVE_REMOTE WPCAP
CONFIG += console
2017-12-07 07:34:18 -06:00
QMAKE_LFLAGS += -static
LIBS += -lwpcap -lpacket -liphlpapi
CONFIG(debug, debug|release) {
OBJDIR = debug
} else {
OBJDIR = release
}
} else {
LIBS += -lpcap
}
LIBS += -L"../common/$$OBJDIR" -lostproto
LIBS += -L"../rpc/$$OBJDIR" -lpbrpc
POST_TARGETDEPS += \
"../common/$$OBJDIR//libostproto.a" \
"../rpc/$$OBJDIR/libpbrpc.a"
2018-09-02 10:36:08 -05:00
linux {
2018-09-02 09:15:08 -05:00
INCLUDEPATH += "/usr/include/libnl3"
LIBS += -lnl-3 -lnl-route-3
}
LIBS += -lm
LIBS += -lprotobuf
HEADERS += drone.h \
pcaptransmitter.h \
myservice.h \
streamtiming.h
SOURCES += \
devicemanager.cpp \
device.cpp \
emuldevice.cpp \
drone_main.cpp \
drone.cpp \
portmanager.cpp \
abstractport.cpp \
pcapport.cpp \
pcapsession.cpp \
pcaptransmitter.cpp \
pcaprxstats.cpp \
pcaptxstats.cpp \
pcaptxthread.cpp \
pcaptxttagstats.cpp \
2018-12-08 00:10:57 -06:00
bsdhostdevice.cpp \
bsdport.cpp \
2018-09-02 09:15:08 -05:00
linuxhostdevice.cpp \
linuxport.cpp \
linuxutils.cpp \
params.cpp \
streamtiming.cpp \
turbo.cpp \
winhostdevice.cpp \
winpcapport.cpp
SOURCES += myservice.cpp
SOURCES += pcapextra.cpp
SOURCES += packetbuffer.cpp
QMAKE_DISTCLEAN += object_script.*
include (../install.pri)
include (../version.pri)
include (../options.pri)