2015-04-16 11:50:07 -05:00
|
|
|
TEMPLATE = app
|
2018-07-27 06:55:43 -05:00
|
|
|
CONFIG += qt ver_info c++11
|
2021-02-20 09:10:37 -06:00
|
|
|
addon: CONFIG -= ver_info
|
2016-06-07 10:41:38 -05:00
|
|
|
QT += network script xml
|
2015-04-16 11:50:07 -05:00
|
|
|
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"
|
2015-04-16 11:50:07 -05:00
|
|
|
INCLUDEPATH += "../rpc"
|
2022-11-18 05:13:56 -06:00
|
|
|
|
|
|
|
OBJDIR = .
|
2015-04-16 11:50:07 -05:00
|
|
|
win32 {
|
2018-07-26 10:23:33 -05:00
|
|
|
# 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
|
2015-04-16 11:50:07 -05:00
|
|
|
CONFIG += console
|
2017-12-07 07:34:18 -06:00
|
|
|
QMAKE_LFLAGS += -static
|
2018-07-26 10:23:33 -05:00
|
|
|
LIBS += -lwpcap -lpacket -liphlpapi
|
2015-04-16 11:50:07 -05:00
|
|
|
CONFIG(debug, debug|release) {
|
2022-11-18 05:13:56 -06:00
|
|
|
OBJDIR = debug
|
2015-04-16 11:50:07 -05:00
|
|
|
} else {
|
2022-11-18 05:13:56 -06:00
|
|
|
OBJDIR = release
|
2015-04-16 11:50:07 -05:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
LIBS += -lpcap
|
|
|
|
}
|
2022-11-18 05:13:56 -06:00
|
|
|
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
|
|
|
|
}
|
2015-04-16 11:50:07 -05:00
|
|
|
LIBS += -lm
|
|
|
|
LIBS += -lprotobuf
|
2015-04-24 10:23:00 -05:00
|
|
|
HEADERS += drone.h \
|
2016-11-11 09:52:07 -06:00
|
|
|
pcaptransmitter.h \
|
2023-03-28 05:36:28 -05:00
|
|
|
myservice.h \
|
|
|
|
streamtiming.h
|
2015-04-16 11:50:07 -05:00
|
|
|
SOURCES += \
|
2015-09-14 07:49:52 -05:00
|
|
|
devicemanager.cpp \
|
2015-09-20 07:19:15 -05:00
|
|
|
device.cpp \
|
2018-07-19 08:24:01 -05:00
|
|
|
emuldevice.cpp \
|
2015-04-16 11:50:07 -05:00
|
|
|
drone_main.cpp \
|
|
|
|
drone.cpp \
|
|
|
|
portmanager.cpp \
|
|
|
|
abstractport.cpp \
|
|
|
|
pcapport.cpp \
|
2019-08-10 02:46:18 -05:00
|
|
|
pcapsession.cpp \
|
2016-09-06 08:20:08 -05:00
|
|
|
pcaptransmitter.cpp \
|
2016-11-17 10:14:34 -06:00
|
|
|
pcaprxstats.cpp \
|
2016-10-19 08:22:35 -05:00
|
|
|
pcaptxstats.cpp \
|
2016-09-13 08:35:24 -05:00
|
|
|
pcaptxthread.cpp \
|
2023-03-22 06:02:41 -05:00
|
|
|
pcaptxttagstats.cpp \
|
2018-12-08 00:10:57 -06:00
|
|
|
bsdhostdevice.cpp \
|
2015-04-16 11:50:07 -05:00
|
|
|
bsdport.cpp \
|
2018-09-02 09:15:08 -05:00
|
|
|
linuxhostdevice.cpp \
|
2015-04-16 11:50:07 -05:00
|
|
|
linuxport.cpp \
|
2021-11-15 09:59:20 -06:00
|
|
|
linuxutils.cpp \
|
2019-07-02 07:45:26 -05:00
|
|
|
params.cpp \
|
2023-03-28 05:36:28 -05:00
|
|
|
streamtiming.cpp \
|
2021-02-26 09:09:07 -06:00
|
|
|
turbo.cpp \
|
2018-07-26 10:23:33 -05:00
|
|
|
winhostdevice.cpp \
|
2015-04-16 11:50:07 -05:00
|
|
|
winpcapport.cpp
|
|
|
|
SOURCES += myservice.cpp
|
|
|
|
SOURCES += pcapextra.cpp
|
2015-11-14 05:36:43 -06:00
|
|
|
SOURCES += packetbuffer.cpp
|
2015-04-16 11:50:07 -05:00
|
|
|
|
|
|
|
QMAKE_DISTCLEAN += object_script.*
|
|
|
|
|
|
|
|
include (../install.pri)
|
|
|
|
include (../version.pri)
|
2018-04-20 10:20:51 -05:00
|
|
|
include (../options.pri)
|