@@ -11,7 +11,7 @@ piqi_src = custom_target('piqi',
11
11
command : [piqi, ' to-proto' , ' @INPUT@' , ' -o' , ' @OUTPUT@' ])
12
12
13
13
# protobuf file -> C code
14
- proto_src_raw = custom_target (' proto' ,
14
+ frame_proto_src_raw = custom_target (' proto' ,
15
15
input : piqi_src,
16
16
output : [' frame.piqi.pb-c.c' , ' frame.piqi.pb-c.h' ],
17
17
command : [protoc_c, ' --c_out=.' , ' @INPUT@' ],
@@ -20,17 +20,19 @@ proto_src_raw = custom_target('proto',
20
20
# Patch protobuf header: base -> __base.
21
21
# Necessary for the C build.
22
22
# 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 ,
25
25
output : [' frame.piqi.pb-c-patched.c' , ' frame.piqi.pb-c-patched.h' ],
26
26
command : [files (' fix_proto_src.py' ), ' @INPUT@' , ' -o' , ' @OUTPUT@' ],
27
- depends : proto_src_raw
27
+ depends : frame_proto_src_raw
28
28
)
29
29
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 )
31
32
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]
34
36
)
35
37
36
38
bap_tracing_src = files (
0 commit comments