xref: /openbmc/phosphor-power/phosphor-power-supply/meson.build (revision 888bebded259c588384fcc5c1a4de6886c277bcb)
1install_subdir('configurations',
2      strip_directory: true,
3      install_dir: get_option('datadir')/'phosphor-psu-monitor')
4
5phosphor_psu_monitor = executable(
6    'phosphor-psu-monitor',
7    'main.cpp',
8    'psu_manager.cpp',
9    'power_supply.cpp',
10    'record_manager.cpp',
11    'util.cpp',
12    dependencies: [
13        cli11_dep,
14        fmt,
15        libgpiodcxx,
16        nlohmann_json_dep,
17        phosphor_dbus_interfaces,
18        phosphor_logging,
19        sdbusplus,
20        sdeventplus,
21    ],
22    include_directories: '..',
23    install: true,
24    link_with: [
25        libpower,
26    ]
27)
28
29power_supply = phosphor_psu_monitor.extract_objects('power_supply.cpp')
30
31if get_option('tests').enabled()
32  subdir('test')
33endif
34