xref: /openbmc/phosphor-ipmi-flash/bmc/meson.build (revision 32e9ea165419725691d5e54be60073bc2cc4f7e0)
1bmc_inc = include_directories('.')
2
3common_pre = declare_dependency(
4    dependencies: [nlohmann_json_dep],
5    include_directories: [root_inc, bmc_inc],
6)
7
8common_lib = static_library(
9    'common',
10    'buildjson.cpp',
11    'file_handler.cpp',
12    'fs.cpp',
13    'general_systemd.cpp',
14    'skip_action.cpp',
15    implicit_include_directories: false,
16    dependencies: common_pre,
17)
18
19common_dep = declare_dependency(link_with: common_lib, dependencies: common_pre)
20
21if get_option('tests').allowed()
22    subdir('test')
23endif
24
25subdir('firmware-handler')
26subdir('version-handler')
27subdir('log-handler')
28