blob: 922a67eb41e2d918d3e810fe01860be1d3ab3134 [file] [log] [blame]
Brandon Wyman2ad76bd2019-08-26 17:15:04 -05001
Brandon Wyman3f1242f2020-01-28 13:11:25 -06002phosphor_psu_monitor = executable(
Brandon Wyman2ad76bd2019-08-26 17:15:04 -05003 'phosphor-psu-monitor',
4 'main.cpp',
Brandon Wymana0f33ce2019-10-17 18:32:29 -05005 'psu_manager.cpp',
Brandon Wymanaed1f752019-11-25 18:10:52 -06006 'power_supply.cpp',
Brandon Wyman3f1242f2020-01-28 13:11:25 -06007 'util.cpp',
Brandon Wyman57939e82019-08-26 17:53:57 -05008 dependencies: [
9 sdbusplus,
Brandon Wyman2bac8602019-09-12 18:12:21 -050010 sdeventplus,
Brandon Wyman57939e82019-08-26 17:53:57 -050011 ],
Brandon Wymana0f33ce2019-10-17 18:32:29 -050012 include_directories: '..',
13 install: true,
14 link_with: [
15 libpower,
16 ]
17)
Brandon Wyman3f1242f2020-01-28 13:11:25 -060018
19power_supply = phosphor_psu_monitor.extract_objects('power_supply.cpp')
20
21if get_option('tests').enabled()
22 subdir('test')
23endif