blob: 20fec89b61bb6463c03b4a7e082250dde3fc76e0 [file] [log] [blame]
Brad Bishop39b370a2019-09-02 02:37:32 -04001psu_monitor = executable(
2 'psu-monitor',
Brad Bishop39b370a2019-09-02 02:37:32 -04003 error_hpp,
4 'main.cpp',
5 'power_supply.cpp',
6 'record_manager.cpp',
7 dependencies: [
Patrick Williams888bebd2023-05-31 19:19:49 -05008 nlohmann_json_dep,
Brad Bishop39b370a2019-09-02 02:37:32 -04009 phosphor_dbus_interfaces,
10 phosphor_logging,
11 sdbusplus,
Patrick Williams888bebd2023-05-31 19:19:49 -050012 sdeventplus,
Brad Bishop39b370a2019-09-02 02:37:32 -040013 ],
14 include_directories: '..',
15 install: true,
16 link_with: [
17 libpower,
18 ]
19)
20
21record_manager = psu_monitor.extract_objects('record_manager.cpp')
22
Shawn McCarneyff481432020-02-13 10:38:44 -060023if get_option('tests').enabled()
24 subdir('test')
25endif