xref: /openbmc/phosphor-power/tools/power-utils/meson.build (revision 516e22fe84f77c2d029b028785dfd1e5633267b5)
1psutils = executable(
2    'psutils',
3    'version.cpp',
4    'updater.cpp',
5    'aei_updater.cpp',
6    'utils.cpp',
7    'model.cpp',
8    'main.cpp',
9    dependencies: [
10        cli11_dep,
11        libi2c_dep,
12        nlohmann_json_dep,
13        phosphor_dbus_interfaces,
14        phosphor_logging,
15    ],
16    include_directories: [libpower_inc, libi2c_inc],
17    install: true,
18    link_with: [libpower],
19)
20
21if get_option('tests').allowed()
22    subdir('test')
23endif
24