Convert build system to automake per Anders Kaseorg Makefile.am
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
source = userinput.proto hostinput.proto transportinstruction.proto
|
||||
|
||||
PROTOC = protoc
|
||||
AM_CXXFLAGS = `pkg-config --cflags protobuf-lite`
|
||||
|
||||
userinput.pb.cc: userinput.proto
|
||||
$(PROTOC) --cpp_out=$(builddir) $<
|
||||
hostinput.pb.cc: hostinput.proto
|
||||
$(PROTOC) --cpp_out=$(builddir) $<
|
||||
transportinstruction.pb.cc: transportinstruction.proto
|
||||
$(PROTOC) --cpp_out=$(builddir) $<
|
||||
|
||||
noinst_LIBRARIES = libmoshprotos.a
|
||||
|
||||
libmoshprotos_a_SOURCES = $(builddir)/userinput.pb.cc $(builddir)/hostinput.pb.cc $(builddir)/transportinstruction.pb.cc
|
||||
|
||||
CLEANFILES = $(builddir)/userinput.pb.cc $(builddir)/hostinput.pb.cc $(builddir)/transportinstruction.pb.cc $(builddir)/userinput.pb.h $(builddir)/hostinput.pb.h $(builddir)/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