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