Skip to content

Commit 8a20988

Browse files
committed
Add missing libprotobuf-c dependency
1 parent 6c245ae commit 8a20988

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

contrib/plugins/bap-tracing/meson.build

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ piqi_src = custom_target('piqi',
1111
command: [piqi, 'to-proto', '@INPUT@', '-o', '@OUTPUT@'])
1212

1313
# protobuf file -> C code
14-
proto_src_raw = custom_target('proto',
14+
frame_proto_src_raw = custom_target('proto',
1515
input: piqi_src,
1616
output: ['frame.piqi.pb-c.c', 'frame.piqi.pb-c.h'],
1717
command: [protoc_c, '--c_out=.', '@INPUT@'],
@@ -20,17 +20,19 @@ proto_src_raw = custom_target('proto',
2020
# Patch protobuf header: base -> __base.
2121
# Necessary for the C build.
2222
# See fix_proto_src.py
23-
proto_src = custom_target(
24-
input: proto_src_raw,
23+
frame_proto_src = custom_target(
24+
input: frame_proto_src_raw,
2525
output: ['frame.piqi.pb-c-patched.c', 'frame.piqi.pb-c-patched.h'],
2626
command: [files('fix_proto_src.py'), '@INPUT@', '-o', '@OUTPUT@'],
27-
depends: proto_src_raw
27+
depends: frame_proto_src_raw
2828
)
2929

30-
libprotobuf = static_library('protobuf', [proto_src], pic: true)
30+
libprotobuf = dependency('libprotobuf-c')
31+
frame_protobuf = static_library('protobuf', [frame_proto_src], pic: true)
3132
dep_libprotobuf = declare_dependency(
32-
sources : proto_src,
33-
link_with : [libprotobuf],
33+
sources : frame_proto_src,
34+
link_with : [frame_protobuf],
35+
dependencies: [libprotobuf]
3436
)
3537

3638
bap_tracing_src = files(

0 commit comments

Comments
 (0)