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