xref: /openbmc/phosphor-ipmi-flash/cleanup/meson.build (revision 32e9ea165419725691d5e54be60073bc2cc4f7e0)
1cleanup_pre = declare_dependency(
2    include_directories: [root_inc, include_directories('.')],
3    dependencies: blobs_dep,
4)
5
6cleanup_lib = static_library(
7    'firmwarecleanupblob',
8    'cleanup.cpp',
9    'fs.cpp',
10    conf_h,
11    implicit_include_directories: false,
12    dependencies: cleanup_pre,
13)
14
15cleanup_dep = declare_dependency(
16    link_with: cleanup_lib,
17    dependencies: cleanup_pre,
18)
19
20shared_module(
21    'firmwarecleanupblob',
22    'main.cpp',
23    implicit_include_directories: false,
24    dependencies: [cleanup_dep, dependency('libipmid')],
25    install: true,
26    install_dir: get_option('libdir') / 'blob-ipmid',
27)
28
29if get_option('tests').allowed()
30    subdir('test')
31endif
32