2015-04-16 11:50:07 -05:00
|
|
|
TEMPLATE = app
|
|
|
|
CONFIG += qt ver_info
|
|
|
|
QT += network script
|
|
|
|
QT -= gui
|
|
|
|
DEFINES += HAVE_REMOTE WPCAP
|
|
|
|
linux*:system(grep -q IFLA_STATS64 /usr/include/linux/if_link.h): \
|
|
|
|
DEFINES += HAVE_IFLA_STATS64
|
|
|
|
INCLUDEPATH += "../rpc"
|
|
|
|
win32 {
|
|
|
|
CONFIG += console
|
|
|
|
LIBS += -lwpcap -lpacket
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
LIBS += -L"../common/debug" -lostproto
|
|
|
|
LIBS += -L"../rpc/debug" -lpbrpc
|
|
|
|
POST_TARGETDEPS += \
|
|
|
|
"../common/debug/libostproto.a" \
|
|
|
|
"../rpc/debug/libpbrpc.a"
|
|
|
|
} else {
|
|
|
|
LIBS += -L"../common/release" -lostproto
|
|
|
|
LIBS += -L"../rpc/release" -lpbrpc
|
|
|
|
POST_TARGETDEPS += \
|
|
|
|
"../common/release/libostproto.a" \
|
|
|
|
"../rpc/release/libpbrpc.a"
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
LIBS += -lpcap
|
|
|
|
LIBS += -L"../common" -lostproto
|
|
|
|
LIBS += -L"../rpc" -lpbrpc
|
|
|
|
POST_TARGETDEPS += "../common/libostproto.a" "../rpc/libpbrpc.a"
|
|
|
|
}
|
|
|
|
LIBS += -lm
|
|
|
|
LIBS += -lprotobuf
|
2015-04-24 10:23:00 -05:00
|
|
|
HEADERS += drone.h \
|
|
|
|
myservice.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 \
|
2015-04-16 11:50:07 -05:00
|
|
|
drone_main.cpp \
|
|
|
|
drone.cpp \
|
|
|
|
portmanager.cpp \
|
|
|
|
abstractport.cpp \
|
|
|
|
pcapport.cpp \
|
|
|
|
bsdport.cpp \
|
|
|
|
linuxport.cpp \
|
|
|
|
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)
|