Extract libostfile from libprotogui
All .pro file changes only libostfile still has GUI dependency due to PCAP import options UI. Need to see if we can remove that - maybe extract into a separate libostfilegui.
This commit is contained in:
parent
f5350663cd
commit
c285e91d4a
@ -8,24 +8,27 @@ INCLUDEPATH += "../rpc/" "../common/"
|
|||||||
win32 {
|
win32 {
|
||||||
QMAKE_LFLAGS += -static
|
QMAKE_LFLAGS += -static
|
||||||
CONFIG(debug, debug|release) {
|
CONFIG(debug, debug|release) {
|
||||||
LIBS += -L"../common/debug" -lostprotogui -lostproto
|
LIBS += -L"../common/debug" -lostfile -lostprotogui -lostproto
|
||||||
LIBS += -L"../rpc/debug" -lpbrpc
|
LIBS += -L"../rpc/debug" -lpbrpc
|
||||||
POST_TARGETDEPS += \
|
POST_TARGETDEPS += \
|
||||||
|
"../common/debug/libostfile.a" \
|
||||||
"../common/debug/libostprotogui.a" \
|
"../common/debug/libostprotogui.a" \
|
||||||
"../common/debug/libostproto.a" \
|
"../common/debug/libostproto.a" \
|
||||||
"../rpc/debug/libpbrpc.a"
|
"../rpc/debug/libpbrpc.a"
|
||||||
} else {
|
} else {
|
||||||
LIBS += -L"../common/release" -lostprotogui -lostproto
|
LIBS += -L"../common/release" -lostfile -lostprotogui -lostproto
|
||||||
LIBS += -L"../rpc/release" -lpbrpc
|
LIBS += -L"../rpc/release" -lpbrpc
|
||||||
POST_TARGETDEPS += \
|
POST_TARGETDEPS += \
|
||||||
|
"../common/release/libostfile.a" \
|
||||||
"../common/release/libostprotogui.a" \
|
"../common/release/libostprotogui.a" \
|
||||||
"../common/release/libostproto.a" \
|
"../common/release/libostproto.a" \
|
||||||
"../rpc/release/libpbrpc.a"
|
"../rpc/release/libpbrpc.a"
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
LIBS += -L"../common" -lostprotogui -lostproto
|
LIBS += -L"../common" -lostfile -lostprotogui -lostproto
|
||||||
LIBS += -L"../rpc" -lpbrpc
|
LIBS += -L"../rpc" -lpbrpc
|
||||||
POST_TARGETDEPS += \
|
POST_TARGETDEPS += \
|
||||||
|
"../common/libostfile.a" \
|
||||||
"../common/libostprotogui.a" \
|
"../common/libostprotogui.a" \
|
||||||
"../common/libostproto.a" \
|
"../common/libostproto.a" \
|
||||||
"../rpc/libpbrpc.a"
|
"../rpc/libpbrpc.a"
|
||||||
|
@ -1,45 +1,17 @@
|
|||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
CONFIG += qt staticlib
|
CONFIG += qt staticlib
|
||||||
QT += widgets network xml script
|
QT += widgets network xml script
|
||||||
INCLUDEPATH += "../extra/qhexedit2/src"
|
|
||||||
LIBS += \
|
LIBS += \
|
||||||
-lprotobuf
|
-lprotobuf
|
||||||
|
|
||||||
FORMS = \
|
FORMS = \
|
||||||
pcapfileimport.ui \
|
pcapfileimport.ui \
|
||||||
|
|
||||||
FORMS += \
|
|
||||||
mac.ui \
|
|
||||||
vlan.ui \
|
|
||||||
eth2.ui \
|
|
||||||
dot3.ui \
|
|
||||||
llc.ui \
|
|
||||||
snap.ui \
|
|
||||||
stp.ui \
|
|
||||||
arp.ui \
|
|
||||||
ip4.ui \
|
|
||||||
ip6.ui \
|
|
||||||
gmp.ui \
|
|
||||||
gre.ui \
|
|
||||||
icmp.ui \
|
|
||||||
tcp.ui \
|
|
||||||
udp.ui \
|
|
||||||
textproto.ui \
|
|
||||||
tosdscp.ui \
|
|
||||||
hexdump.ui \
|
|
||||||
payload.ui \
|
|
||||||
sample.ui \
|
|
||||||
sign.ui \
|
|
||||||
userscript.ui
|
|
||||||
|
|
||||||
PROTOS = \
|
PROTOS = \
|
||||||
fileformat.proto
|
fileformat.proto
|
||||||
|
|
||||||
# TODO: Move fileformat related stuff into a different library - why?
|
|
||||||
HEADERS = \
|
HEADERS = \
|
||||||
ostprotolib.h \
|
ostprotolib.h \
|
||||||
ipv4addressdelegate.h \
|
|
||||||
ipv6addressdelegate.h \
|
|
||||||
nativefileformat.h \
|
nativefileformat.h \
|
||||||
ossnfileformat.h \
|
ossnfileformat.h \
|
||||||
ostmfileformat.h \
|
ostmfileformat.h \
|
||||||
@ -50,44 +22,7 @@ HEADERS = \
|
|||||||
pdmlprotocols.h \
|
pdmlprotocols.h \
|
||||||
pdmlreader.h \
|
pdmlreader.h \
|
||||||
sessionfileformat.h \
|
sessionfileformat.h \
|
||||||
streamfileformat.h \
|
streamfileformat.h
|
||||||
spinboxdelegate.h
|
|
||||||
|
|
||||||
HEADERS += \
|
|
||||||
tosdscp.h
|
|
||||||
|
|
||||||
HEADERS += \
|
|
||||||
abstractprotocolconfig.h \
|
|
||||||
comboprotocolconfig.h \
|
|
||||||
protocolwidgetfactory.h \
|
|
||||||
macconfig.h \
|
|
||||||
vlanconfig.h \
|
|
||||||
svlanconfig.h \
|
|
||||||
vlanstackconfig.h \
|
|
||||||
eth2config.h \
|
|
||||||
dot3config.h \
|
|
||||||
llcconfig.h \
|
|
||||||
dot2llcconfig.h \
|
|
||||||
snapconfig.h \
|
|
||||||
dot2snapconfig.h \
|
|
||||||
stpconfig.h \
|
|
||||||
arpconfig.h \
|
|
||||||
ip4config.h \
|
|
||||||
ip6config.h \
|
|
||||||
ip4over4config.h \
|
|
||||||
gmpconfig.h \
|
|
||||||
greconfig.h \
|
|
||||||
icmpconfig.h \
|
|
||||||
igmpconfig.h \
|
|
||||||
mldconfig.h \
|
|
||||||
tcpconfig.h \
|
|
||||||
udpconfig.h \
|
|
||||||
textprotoconfig.h \
|
|
||||||
hexdumpconfig.h \
|
|
||||||
payloadconfig.h \
|
|
||||||
sampleconfig.h \
|
|
||||||
signconfig.h \
|
|
||||||
userscriptconfig.h
|
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
ostprotolib.cpp \
|
ostprotolib.cpp \
|
||||||
@ -104,35 +39,6 @@ SOURCES += \
|
|||||||
streamfileformat.cpp \
|
streamfileformat.cpp \
|
||||||
spinboxdelegate.cpp
|
spinboxdelegate.cpp
|
||||||
|
|
||||||
SOURCES += \
|
|
||||||
tosdscp.cpp
|
|
||||||
|
|
||||||
SOURCES += \
|
|
||||||
protocolwidgetfactory.cpp \
|
|
||||||
macconfig.cpp \
|
|
||||||
vlanconfig.cpp \
|
|
||||||
eth2config.cpp \
|
|
||||||
dot3config.cpp \
|
|
||||||
llcconfig.cpp \
|
|
||||||
snapconfig.cpp \
|
|
||||||
stpconfig.cpp \
|
|
||||||
arpconfig.cpp \
|
|
||||||
ip4config.cpp \
|
|
||||||
ip6config.cpp \
|
|
||||||
gmpconfig.cpp \
|
|
||||||
greconfig.cpp \
|
|
||||||
icmpconfig.cpp \
|
|
||||||
igmpconfig.cpp \
|
|
||||||
mldconfig.cpp \
|
|
||||||
tcpconfig.cpp \
|
|
||||||
udpconfig.cpp \
|
|
||||||
textprotoconfig.cpp \
|
|
||||||
hexdumpconfig.cpp \
|
|
||||||
payloadconfig.cpp \
|
|
||||||
sampleconfig.cpp \
|
|
||||||
signconfig.cpp \
|
|
||||||
userscriptconfig.cpp
|
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
vlanpdml.cpp \
|
vlanpdml.cpp \
|
||||||
svlanpdml.cpp \
|
svlanpdml.cpp \
|
||||||
|
@ -2,11 +2,6 @@ TEMPLATE = lib
|
|||||||
CONFIG += qt staticlib
|
CONFIG += qt staticlib
|
||||||
QT += widgets network xml script
|
QT += widgets network xml script
|
||||||
INCLUDEPATH += "../extra/qhexedit2/src"
|
INCLUDEPATH += "../extra/qhexedit2/src"
|
||||||
LIBS += \
|
|
||||||
-lprotobuf
|
|
||||||
|
|
||||||
FORMS = \
|
|
||||||
pcapfileimport.ui \
|
|
||||||
|
|
||||||
FORMS += \
|
FORMS += \
|
||||||
mac.ui \
|
mac.ui \
|
||||||
@ -32,28 +27,10 @@ FORMS += \
|
|||||||
sign.ui \
|
sign.ui \
|
||||||
userscript.ui
|
userscript.ui
|
||||||
|
|
||||||
PROTOS = \
|
|
||||||
fileformat.proto
|
|
||||||
|
|
||||||
# TODO: Move fileformat related stuff into a different library - why?
|
|
||||||
HEADERS = \
|
HEADERS = \
|
||||||
ostprotolib.h \
|
|
||||||
ipv4addressdelegate.h \
|
ipv4addressdelegate.h \
|
||||||
ipv6addressdelegate.h \
|
ipv6addressdelegate.h \
|
||||||
nativefileformat.h \
|
spinboxdelegate.h \
|
||||||
ossnfileformat.h \
|
|
||||||
ostmfileformat.h \
|
|
||||||
pcapfileformat.h \
|
|
||||||
pdmlfileformat.h \
|
|
||||||
pythonfileformat.h \
|
|
||||||
pdmlprotocol.h \
|
|
||||||
pdmlprotocols.h \
|
|
||||||
pdmlreader.h \
|
|
||||||
sessionfileformat.h \
|
|
||||||
streamfileformat.h \
|
|
||||||
spinboxdelegate.h
|
|
||||||
|
|
||||||
HEADERS += \
|
|
||||||
tosdscp.h
|
tosdscp.h
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
@ -89,21 +66,6 @@ HEADERS += \
|
|||||||
signconfig.h \
|
signconfig.h \
|
||||||
userscriptconfig.h
|
userscriptconfig.h
|
||||||
|
|
||||||
SOURCES += \
|
|
||||||
ostprotolib.cpp \
|
|
||||||
nativefileformat.cpp \
|
|
||||||
ossnfileformat.cpp \
|
|
||||||
ostmfileformat.cpp \
|
|
||||||
pcapfileformat.cpp \
|
|
||||||
pdmlfileformat.cpp \
|
|
||||||
pythonfileformat.cpp \
|
|
||||||
pdmlprotocol.cpp \
|
|
||||||
pdmlprotocols.cpp \
|
|
||||||
pdmlreader.cpp \
|
|
||||||
sessionfileformat.cpp \
|
|
||||||
streamfileformat.cpp \
|
|
||||||
spinboxdelegate.cpp
|
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
tosdscp.cpp
|
tosdscp.cpp
|
||||||
|
|
||||||
@ -133,26 +95,6 @@ SOURCES += \
|
|||||||
signconfig.cpp \
|
signconfig.cpp \
|
||||||
userscriptconfig.cpp
|
userscriptconfig.cpp
|
||||||
|
|
||||||
SOURCES += \
|
|
||||||
vlanpdml.cpp \
|
|
||||||
svlanpdml.cpp \
|
|
||||||
stppdml.cpp \
|
|
||||||
eth2pdml.cpp \
|
|
||||||
llcpdml.cpp \
|
|
||||||
arppdml.cpp \
|
|
||||||
ip4pdml.cpp \
|
|
||||||
ip6pdml.cpp \
|
|
||||||
grepdml.cpp \
|
|
||||||
icmppdml.cpp \
|
|
||||||
icmp6pdml.cpp \
|
|
||||||
igmppdml.cpp \
|
|
||||||
mldpdml.cpp \
|
|
||||||
tcppdml.cpp \
|
|
||||||
udppdml.cpp \
|
|
||||||
textprotopdml.cpp \
|
|
||||||
samplepdml.cpp
|
|
||||||
|
|
||||||
QMAKE_DISTCLEAN += object_script.*
|
QMAKE_DISTCLEAN += object_script.*
|
||||||
|
|
||||||
include(../protobuf.pri)
|
|
||||||
include(../options.pri)
|
include(../options.pri)
|
||||||
|
7
ost.pro
7
ost.pro
@ -1,14 +1,17 @@
|
|||||||
TEMPLATE = subdirs
|
TEMPLATE = subdirs
|
||||||
SUBDIRS = client server ostproto ostprotogui rpc extra
|
SUBDIRS = client server ostfile ostproto ostprotogui rpc extra
|
||||||
|
|
||||||
client.target = client
|
client.target = client
|
||||||
client.file = client/ostinato.pro
|
client.file = client/ostinato.pro
|
||||||
client.depends = ostproto ostprotogui rpc extra
|
client.depends = ostfile ostproto ostprotogui rpc extra
|
||||||
|
|
||||||
server.target = server
|
server.target = server
|
||||||
server.file = server/drone.pro
|
server.file = server/drone.pro
|
||||||
server.depends = ostproto rpc
|
server.depends = ostproto rpc
|
||||||
|
|
||||||
|
ostfile.file = common/ostfile.pro
|
||||||
|
ostfile.depends = ostproto
|
||||||
|
|
||||||
ostproto.file = common/ostproto.pro
|
ostproto.file = common/ostproto.pro
|
||||||
|
|
||||||
ostprotogui.file = common/ostprotogui.pro
|
ostprotogui.file = common/ostprotogui.pro
|
||||||
|
@ -5,26 +5,26 @@ INCLUDEPATH += "../rpc/" "../common/" "../client"
|
|||||||
win32 {
|
win32 {
|
||||||
LIBS += -lwpcap -lpacket
|
LIBS += -lwpcap -lpacket
|
||||||
CONFIG(debug, debug|release) {
|
CONFIG(debug, debug|release) {
|
||||||
LIBS += -L"../common/debug" -lostprotogui -lostproto
|
LIBS += -L"../common/debug" -lostfile -lostproto
|
||||||
LIBS += -L"../rpc/debug" -lpbrpc
|
LIBS += -L"../rpc/debug" -lpbrpc
|
||||||
POST_TARGETDEPS += \
|
POST_TARGETDEPS += \
|
||||||
"../common/debug/libostprotogui.a" \
|
"../common/debug/libostfile.a" \
|
||||||
"../common/debug/libostproto.a" \
|
"../common/debug/libostproto.a" \
|
||||||
"../rpc/debug/libpbrpc.a"
|
"../rpc/debug/libpbrpc.a"
|
||||||
} else {
|
} else {
|
||||||
LIBS += -L"../common/release" -lostprotogui -lostproto
|
LIBS += -L"../common/release" -lostfile -lostproto
|
||||||
LIBS += -L"../rpc/release" -lpbrpc
|
LIBS += -L"../rpc/release" -lpbrpc
|
||||||
POST_TARGETDEPS += \
|
POST_TARGETDEPS += \
|
||||||
"../common/release/libostprotogui.a" \
|
"../common/release/libostfile.a" \
|
||||||
"../common/release/libostproto.a" \
|
"../common/release/libostproto.a" \
|
||||||
"../rpc/release/libpbrpc.a"
|
"../rpc/release/libpbrpc.a"
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
LIBS += -lpcap
|
LIBS += -lpcap
|
||||||
LIBS += -L"../common" -lostprotogui -lostproto
|
LIBS += -L"../common" -lostfile -lostproto
|
||||||
LIBS += -L"../rpc" -lpbrpc
|
LIBS += -L"../rpc" -lpbrpc
|
||||||
POST_TARGETDEPS += \
|
POST_TARGETDEPS += \
|
||||||
"../common/libostprotogui.a" \
|
"../common/libostfile.a" \
|
||||||
"../common/libostproto.a" \
|
"../common/libostproto.a" \
|
||||||
"../rpc/libpbrpc.a"
|
"../rpc/libpbrpc.a"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user