libei/proto/meson.build
Peter Hutterer 9f851bcccb Replace the custom message parsing with protobuf
Plain-text was useful for the initial implementation where the counterpart was
netcat but now that both parts are in place, protobuf is a much more
convenient system to handle a frequently-changing protocol.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-07-31 13:05:11 +10:00

9 lines
522 B
Meson

dep_protobuf = dependency('libprotobuf-c')
protoc = find_program('protoc')
proto_headers = custom_target('proto-headers',
input: 'ei.proto',
output: ['ei.pb-c.c', 'ei.pb-c.h'],
command: [protoc,
'--proto_path=@0@'.format(meson.current_source_dir()),
'--c_out=@0@'.format(meson.current_build_dir()),
'ei.proto'])