| ipmi_blob_dep = dependency('phosphor-ipmi-blobs', required : false) |
| if not ipmi_blob_dep.found() |
| ipmi_blob_proj = subproject('phosphor-ipmi-blobs') |
| ipmi_blob_dep = ipmi_blob_proj.get_variable('ipmi_blob_dep') |
| endif |
| protobuf_dep = dependency('protobuf') |
| |
| proto = custom_target( |
| 'boot_time_proto', |
| command: [ |
| find_program('protoc', native: true), |
| '--proto_path=@CURRENT_SOURCE_DIR@', |
| '--cpp_out=@OUTDIR@', |
| '@INPUT@' |
| ], |
| output: [ |
| 'boot_time.pb.cc', |
| 'boot_time.pb.h', |
| ], |
| input: 'boot_time.proto' |
| ) |
| |
| shared_module( |
| 'boottimeblob', |
| 'blob_main.cpp', |
| 'blob_handler.cpp', |
| proto, |
| dependencies: [ |
| ipmi_blob_dep, |
| protobuf_dep, |
| boost_dep, |
| sdbusplus_dep, |
| fmt_dep, |
| ], |
| include_directories : ['.'], |
| install: true, |
| install_dir: get_option('libdir') / 'blob-ipmid' |
| ) |