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', |
Willy Tu | ac0b844 | 2022-02-15 17:16:59 -0800 | [diff] [blame^] | 16 | 'main.cpp', |
Willy Tu | baa8d40 | 2021-12-07 19:44:31 -0800 | [diff] [blame] | 17 | 'binarystore.cpp', |
| 18 | 'sys.cpp', |
| 19 | 'sys_file_impl.cpp', |
| 20 | 'handler.cpp', |
| 21 | src_pb, |
| 22 | implicit_include_directories: false, |
| 23 | dependencies: binarystoreblob_pre, |
| 24 | install: true, |
| 25 | install_dir: get_option('libdir') / 'blob-ipmid' |
| 26 | ) |
| 27 | |
| 28 | binarystoreblob_dep = declare_dependency( |
| 29 | link_with: binarystoreblob_lib, |
| 30 | dependencies: binarystoreblob_pre |
| 31 | ) |
| 32 | |
| 33 | if not get_option('blobtool').disabled() |
| 34 | executable( |
| 35 | 'blobtool', |
| 36 | 'blobtool.cpp', |
| 37 | implicit_include_directories: false, |
| 38 | dependencies: binarystoreblob_dep, |
| 39 | install: true |
| 40 | ) |
| 41 | endif |