Switching from asn.1 to protobuf as chat cleaner protocol.

This commit is contained in:
lotodore
2013-08-29 22:18:44 +02:00
parent 8adbe8edb9
commit 9686257e41
13 changed files with 3295 additions and 336 deletions
+9 -81
View File
@@ -18,96 +18,24 @@ QT -= core \
# PRECOMPILED_HEADER = src/pch_lib.h
INCLUDEPATH += . \
src \
src/third_party/asn1
src
DEPENDPATH += . \
src \
src/third_party/asn1
src
# Input
HEADERS += src/third_party/asn1/asn_application.h \
src/third_party/asn1/asn_codecs.h \
src/third_party/asn1/asn_codecs_prim.h \
src/third_party/asn1/asn_internal.h \
src/third_party/asn1/asn_SEQUENCE_OF.h \
src/third_party/asn1/asn_SET_OF.h \
src/third_party/asn1/asn_system.h \
src/third_party/asn1/ber_decoder.h \
src/third_party/asn1/ber_tlv_length.h \
src/third_party/asn1/ber_tlv_tag.h \
src/third_party/asn1/BIT_STRING.h \
src/third_party/asn1/BOOLEAN.h \
src/third_party/asn1/constraints.h \
src/third_party/asn1/constr_CHOICE.h \
src/third_party/asn1/constr_SEQUENCE.h \
src/third_party/asn1/constr_SEQUENCE_OF.h \
src/third_party/asn1/constr_SET_OF.h \
src/third_party/asn1/constr_TYPE.h \
src/third_party/asn1/der_encoder.h \
src/third_party/asn1/INTEGER.h \
src/third_party/asn1/NativeEnumerated.h \
src/third_party/asn1/NativeInteger.h \
src/third_party/asn1/OCTET_STRING.h \
src/third_party/asn1/per_decoder.h \
src/third_party/asn1/per_encoder.h \
src/third_party/asn1/per_opentype.h \
src/third_party/asn1/per_support.h \
src/third_party/asn1/UTF8String.h \
src/third_party/asn1/xer_decoder.h \
src/third_party/asn1/xer_encoder.h \
src/third_party/asn1/xer_support.h \
src/third_party/asn1/ChatCleanerMessage.h \
src/third_party/asn1/CleanerChatTypeLobby.h \
src/third_party/asn1/CleanerChatTypeGame.h \
src/third_party/asn1/CleanerChatType.h \
src/third_party/asn1/CleanerInitMessage.h \
src/third_party/asn1/CleanerInitAckMessage.h \
src/third_party/asn1/CleanerChatRequestMessage.h \
src/third_party/asn1/CleanerChatReplyMessage.h
HEADERS += src/third_party/protobuf/pokerth.pb.h
SOURCES += src/third_party/asn1/ChatCleanerMessage.c \
src/third_party/asn1/CleanerChatTypeLobby.c \
src/third_party/asn1/CleanerChatTypeGame.c \
src/third_party/asn1/CleanerChatType.c \
src/third_party/asn1/CleanerInitMessage.c \
src/third_party/asn1/CleanerInitAckMessage.c \
src/third_party/asn1/CleanerChatRequestMessage.c \
src/third_party/asn1/CleanerChatReplyMessage.c \
src/third_party/asn1/xer_support.c \
src/third_party/asn1/xer_encoder.c \
src/third_party/asn1/xer_decoder.c \
src/third_party/asn1/UTF8String.c \
src/third_party/asn1/per_support.c \
src/third_party/asn1/per_opentype.c \
src/third_party/asn1/per_encoder.c \
src/third_party/asn1/per_decoder.c \
src/third_party/asn1/OCTET_STRING.c \
src/third_party/asn1/NativeInteger.c \
src/third_party/asn1/NativeEnumerated.c \
src/third_party/asn1/INTEGER.c \
src/third_party/asn1/der_encoder.c \
src/third_party/asn1/constraints.c \
src/third_party/asn1/constr_TYPE.c \
src/third_party/asn1/constr_SET_OF.c \
src/third_party/asn1/constr_SEQUENCE_OF.c \
src/third_party/asn1/constr_SEQUENCE.c \
src/third_party/asn1/constr_CHOICE.c \
src/third_party/asn1/BOOLEAN.c \
src/third_party/asn1/BIT_STRING.c \
src/third_party/asn1/ber_tlv_tag.c \
src/third_party/asn1/ber_tlv_length.c \
src/third_party/asn1/ber_decoder.c \
src/third_party/asn1/asn_SET_OF.c \
src/third_party/asn1/asn_SEQUENCE_OF.c \
src/third_party/asn1/asn_codecs_prim.c
SOURCES += src/third_party/protobuf/pokerth.pb.cc
win32 {
HEADERS += src/third_party/protobuf/pokerth.pb.h \
src/third_party/protobuf/chatcleaner.pb.h
SOURCES += src/third_party/protobuf/pokerth.pb.cc \
src/third_party/protobuf/chatcleaner.pb.cc
win32 {
DEFINES += CURL_STATICLIB
DEFINES += _WIN32_WINNT=0x0501
}
unix : !mac {
INCLUDEPATH += $${PREFIX}/include
system(protoc pokerth.proto --cpp_out=src/third_party/protobuf)
system(protoc chatcleaner.proto --cpp_out=src/third_party/protobuf)
system(protoc pokerth.proto --java_out=tests/src)
}
mac {