blob: 4bf162648972daa9949ff2176500c7be02f4a8c8 [file] [log] [blame]
Brad Bishop39b370a2019-09-02 02:37:32 -04001psu_monitor = executable(
2 'psu-monitor',
3 'argument.cpp',
4 error_hpp,
5 'main.cpp',
6 'power_supply.cpp',
7 'record_manager.cpp',
8 dependencies: [
Patrick Williams888bebd2023-05-31 19:19:49 -05009 nlohmann_json_dep,
Brad Bishop39b370a2019-09-02 02:37:32 -040010 phosphor_dbus_interfaces,
11 phosphor_logging,
12 sdbusplus,
Patrick Williams888bebd2023-05-31 19:19:49 -050013 sdeventplus,
Brad Bishop39b370a2019-09-02 02:37:32 -040014 ],
15 include_directories: '..',
16 install: true,
17 link_with: [
18 libpower,
19 ]
20)
21
22record_manager = psu_monitor.extract_objects('record_manager.cpp')
23
Shawn McCarneyff481432020-02-13 10:38:44 -060024if get_option('tests').enabled()
25 subdir('test')
26endif