Willy Tu | bcae900 | 2021-09-12 13:58:04 -0700 | [diff] [blame^] | 1 | cleanup_pre = declare_dependency( |
| 2 | include_directories: [root_inc, include_directories('.')], |
| 3 | dependencies : [ |
| 4 | blobs_dep, |
| 5 | phosphor_logging_dep]) |
| 6 | |
| 7 | cleanup_lib = static_library( |
| 8 | 'firmwarecleanupblob', |
| 9 | 'cleanup.cpp', |
| 10 | 'fs.cpp', |
| 11 | conf_h, |
| 12 | implicit_include_directories: false, |
| 13 | dependencies: cleanup_pre) |
| 14 | |
| 15 | cleanup_dep = declare_dependency( |
| 16 | link_with: cleanup_lib, |
| 17 | dependencies: cleanup_pre) |
| 18 | |
| 19 | shared_module( |
| 20 | 'firmwarecleanupblob', |
| 21 | 'main.cpp', |
| 22 | implicit_include_directories: false, |
| 23 | dependencies: [ |
| 24 | cleanup_dep, |
| 25 | dependency('libipmid'), |
| 26 | ], |
| 27 | install: true, |
| 28 | install_dir: get_option('libdir') / 'blob-ipmid') |
| 29 | |
| 30 | if not get_option('tests').disabled() |
| 31 | subdir('test') |
| 32 | endif |