Willy Tu | baa8d40 | 2021-12-07 19:44:31 -0800 | [diff] [blame] | 1 | binarystoreblob_pre = declare_dependency( |
William A. Kennington III | a191c67 | 2022-02-24 10:19:30 -0800 | [diff] [blame] | 2 | include_directories: blobstore_includes, |
Willy Tu | baa8d40 | 2021-12-07 19:44:31 -0800 | [diff] [blame] | 3 | dependencies: [ |
William A. Kennington III | a191c67 | 2022-02-24 10:19:30 -0800 | [diff] [blame] | 4 | dependency('phosphor-ipmi-blobs'), |
| 5 | dependency('phosphor-logging'), |
Willy Tu | ca170bb | 2023-11-06 00:26:43 -0800 | [diff] [blame] | 6 | dependency('stdplus'), |
Willy Tu | baa8d40 | 2021-12-07 19:44:31 -0800 | [diff] [blame] | 7 | binaryblobproto_dep, |
William A. Kennington III | a191c67 | 2022-02-24 10:19:30 -0800 | [diff] [blame] | 8 | ]) |
Willy Tu | baa8d40 | 2021-12-07 19:44:31 -0800 | [diff] [blame] | 9 | |
William A. Kennington III | a191c67 | 2022-02-24 10:19:30 -0800 | [diff] [blame] | 10 | binarystoreblob_lib = library( |
Willy Tu | e814a0b | 2022-02-16 13:01:25 -0800 | [diff] [blame] | 11 | 'binarystoreblob', |
Willy Tu | baa8d40 | 2021-12-07 19:44:31 -0800 | [diff] [blame] | 12 | 'binarystore.cpp', |
| 13 | 'sys.cpp', |
| 14 | 'sys_file_impl.cpp', |
| 15 | 'handler.cpp', |
Willy Tu | baa8d40 | 2021-12-07 19:44:31 -0800 | [diff] [blame] | 16 | implicit_include_directories: false, |
| 17 | dependencies: binarystoreblob_pre, |
William A. Kennington III | f3aa37a | 2022-02-25 09:04:33 -0800 | [diff] [blame] | 18 | version: meson.project_version(), |
William A. Kennington III | a191c67 | 2022-02-24 10:19:30 -0800 | [diff] [blame] | 19 | install: true) |
Willy Tu | baa8d40 | 2021-12-07 19:44:31 -0800 | [diff] [blame] | 20 | |
| 21 | binarystoreblob_dep = declare_dependency( |
| 22 | link_with: binarystoreblob_lib, |
William A. Kennington III | a191c67 | 2022-02-24 10:19:30 -0800 | [diff] [blame] | 23 | dependencies: binarystoreblob_pre) |
Willy Tu | baa8d40 | 2021-12-07 19:44:31 -0800 | [diff] [blame] | 24 | |
William A. Kennington III | a191c67 | 2022-02-24 10:19:30 -0800 | [diff] [blame] | 25 | shared_module( |
Willy Tu | e814a0b | 2022-02-16 13:01:25 -0800 | [diff] [blame] | 26 | 'binarystore', |
| 27 | 'main.cpp', |
| 28 | implicit_include_directories: false, |
| 29 | dependencies: binarystoreblob_dep, |
| 30 | install: true, |
William A. Kennington III | a191c67 | 2022-02-24 10:19:30 -0800 | [diff] [blame] | 31 | install_dir: get_option('libdir') / 'blob-ipmid') |
Willy Tu | e814a0b | 2022-02-16 13:01:25 -0800 | [diff] [blame] | 32 | |
Willy Tu | 7f10780 | 2023-11-06 23:05:25 -0800 | [diff] [blame^] | 33 | if get_option('blobtool').allowed() |
Willy Tu | baa8d40 | 2021-12-07 19:44:31 -0800 | [diff] [blame] | 34 | executable( |
| 35 | 'blobtool', |
| 36 | 'blobtool.cpp', |
| 37 | implicit_include_directories: false, |
| 38 | dependencies: binarystoreblob_dep, |
William A. Kennington III | a191c67 | 2022-02-24 10:19:30 -0800 | [diff] [blame] | 39 | install: true) |
Willy Tu | baa8d40 | 2021-12-07 19:44:31 -0800 | [diff] [blame] | 40 | endif |