xref: /openbmc/phosphor-ipmi-flash/cleanup/meson.build (revision bcae90026be5d1cdb6aa97f8fa01c025c34920d8)
1cleanup_pre = declare_dependency(
2  include_directories: [root_inc, include_directories('.')],
3  dependencies : [
4    blobs_dep,
5    phosphor_logging_dep])
6
7cleanup_lib = static_library(
8  'firmwarecleanupblob',
9  'cleanup.cpp',
10  'fs.cpp',
11  conf_h,
12  implicit_include_directories: false,
13  dependencies: cleanup_pre)
14
15cleanup_dep = declare_dependency(
16  link_with: cleanup_lib,
17  dependencies: cleanup_pre)
18
19shared_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
30if not get_option('tests').disabled()
31  subdir('test')
32endif
33