blob: 02d46d901a84ab9594783ce1aff57657540f9eca [file] [log] [blame]
Willy Tubaa8d402021-12-07 19:44:31 -08001src_pb = custom_target(
Jie Yangb988dbb2021-08-06 18:34:49 -07002 'proto',
3 command: [
4 find_program('protoc', native: true),
5 '--proto_path=@CURRENT_SOURCE_DIR@',
6 '--cpp_out=@OUTDIR@',
7 '@INPUT@'
8 ],
9 output: [
10 'binaryblob.pb.cc',
11 'binaryblob.pb.h',
12 ],
13 input: 'binaryblob.proto')
Willy Tubaa8d402021-12-07 19:44:31 -080014
15binaryblobproto_pre = declare_dependency(
16 include_directories: include_directories('.'),
17 dependencies: dependency('protobuf')
18)
19
20binaryblobproto_lib = static_library(
21 'binaryblob_proto',
22 src_pb,
23 implicit_include_directories: false,
24 dependencies: binaryblobproto_pre
25)
26
27binaryblobproto_dep = declare_dependency(
28 dependencies: binaryblobproto_pre,
29 link_with: binaryblobproto_lib
30)