blob: 02d46d901a84ab9594783ce1aff57657540f9eca [file] [log] [blame]
src_pb = custom_target(
'proto',
command: [
find_program('protoc', native: true),
'--proto_path=@CURRENT_SOURCE_DIR@',
'--cpp_out=@OUTDIR@',
'@INPUT@'
],
output: [
'binaryblob.pb.cc',
'binaryblob.pb.h',
],
input: 'binaryblob.proto')
binaryblobproto_pre = declare_dependency(
include_directories: include_directories('.'),
dependencies: dependency('protobuf')
)
binaryblobproto_lib = static_library(
'binaryblob_proto',
src_pb,
implicit_include_directories: false,
dependencies: binaryblobproto_pre
)
binaryblobproto_dep = declare_dependency(
dependencies: binaryblobproto_pre,
link_with: binaryblobproto_lib
)