xref: /openbmc/phosphor-power/tools/power-utils/meson.build (revision e1a075956a0d16fa1df92d64e1700eb688d7555e)
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: [
19        libpower,
20    ]
21)
22
23if get_option('tests').allowed()
24    subdir('test')
25endif
26