Willy Tu | baa8d40 | 2021-12-07 19:44:31 -0800 | [diff] [blame^] | 1 | binarystoreblob_pre = declare_dependency( |
| 2 | include_directories: [ |
| 3 | include_directories('.'), |
| 4 | blobstore_includes, |
| 5 | ], |
| 6 | dependencies: [ |
| 7 | protobuf_dep, |
| 8 | ipmi_blob_dep, |
| 9 | phosphor_logging_dep, |
| 10 | binaryblobproto_dep, |
| 11 | ] |
| 12 | ) |
| 13 | |
| 14 | binarystoreblob_lib = library( |
| 15 | 'binarystore', |
| 16 | 'binarystore.cpp', |
| 17 | 'sys.cpp', |
| 18 | 'sys_file_impl.cpp', |
| 19 | 'handler.cpp', |
| 20 | src_pb, |
| 21 | implicit_include_directories: false, |
| 22 | dependencies: binarystoreblob_pre, |
| 23 | install: true, |
| 24 | install_dir: get_option('libdir') / 'blob-ipmid' |
| 25 | ) |
| 26 | |
| 27 | binarystoreblob_dep = declare_dependency( |
| 28 | link_with: binarystoreblob_lib, |
| 29 | dependencies: binarystoreblob_pre |
| 30 | ) |
| 31 | |
| 32 | if not get_option('blobtool').disabled() |
| 33 | executable( |
| 34 | 'blobtool', |
| 35 | 'blobtool.cpp', |
| 36 | implicit_include_directories: false, |
| 37 | dependencies: binarystoreblob_dep, |
| 38 | install: true |
| 39 | ) |
| 40 | endif |