Move protobufs inside src and distribute /debian
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
source = userinput.proto hostinput.proto transportinstruction.proto
|
||||
|
||||
PROTOC = protoc
|
||||
AM_CXXFLAGS = `pkg-config --cflags protobuf-lite` -g -O2 --std=c++0x -pedantic -Werror -Wall -Wextra -Weffc++ -fno-default-inline -pipe
|
||||
|
||||
userinput.pb.cc: userinput.proto
|
||||
$(PROTOC) --cpp_out=$(builddir) -I$(srcdir) $<
|
||||
hostinput.pb.cc: hostinput.proto
|
||||
$(PROTOC) --cpp_out=$(builddir) -I$(srcdir) $<
|
||||
transportinstruction.pb.cc: transportinstruction.proto
|
||||
$(PROTOC) --cpp_out=$(builddir) -I$(srcdir) $<
|
||||
|
||||
.o.cc:
|
||||
$(CXX) $(CXXFLAGS) -o $@ $<
|
||||
|
||||
noinst_LIBRARIES = libmoshprotos.a
|
||||
|
||||
libmoshprotos_a_SOURCES = userinput.proto hostinput.proto transportinstruction.proto
|
||||
|
||||
libmoshprotos_a_LIBADD = userinput.pb.$(OBJEXT) hostinput.pb.$(OBJEXT) transportinstruction.pb.$(OBJEXT)
|
||||
|
||||
CLEANFILES = userinput.pb.cc hostinput.pb.cc transportinstruction.pb.cc userinput.pb.h hostinput.pb.h transportinstruction.pb.h
|
||||
@@ -0,0 +1,25 @@
|
||||
option optimize_for = LITE_RUNTIME;
|
||||
|
||||
package HostBuffers;
|
||||
|
||||
message HostMessage {
|
||||
repeated Instruction instruction = 1;
|
||||
}
|
||||
|
||||
message Instruction {
|
||||
extensions 2 to max;
|
||||
}
|
||||
|
||||
message HostBytes {
|
||||
optional bytes hoststring = 4;
|
||||
}
|
||||
|
||||
message ResizeMessage {
|
||||
optional int32 width = 5;
|
||||
optional int32 height = 6;
|
||||
}
|
||||
|
||||
extend Instruction {
|
||||
optional HostBytes hostbytes = 2;
|
||||
optional ResizeMessage resize = 3;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
option optimize_for = LITE_RUNTIME;
|
||||
|
||||
package TransportBuffers;
|
||||
|
||||
message Instruction {
|
||||
optional uint32 protocol_version = 1;
|
||||
|
||||
optional uint64 old_num = 2;
|
||||
optional uint64 new_num = 3;
|
||||
optional uint64 ack_num = 4;
|
||||
optional uint64 throwaway_num = 5;
|
||||
optional uint64 late_ack_num = 7;
|
||||
|
||||
optional bytes diff = 6;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
option optimize_for = LITE_RUNTIME;
|
||||
|
||||
package ClientBuffers;
|
||||
|
||||
message UserMessage {
|
||||
repeated Instruction instruction = 1;
|
||||
}
|
||||
|
||||
message Instruction {
|
||||
extensions 2 to max;
|
||||
}
|
||||
|
||||
message Keystroke {
|
||||
optional bytes keys = 4;
|
||||
}
|
||||
|
||||
message ResizeMessage {
|
||||
optional int32 width = 5;
|
||||
optional int32 height = 6;
|
||||
}
|
||||
|
||||
extend Instruction {
|
||||
optional Keystroke keystroke = 2;
|
||||
optional ResizeMessage resize = 3;
|
||||
}
|
||||
Reference in New Issue
Block a user