Brandon Wyman | 2ad76bd | 2019-08-26 17:15:04 -0500 | [diff] [blame] | 1 | |
Brandon Wyman | 3f1242f | 2020-01-28 13:11:25 -0600 | [diff] [blame^] | 2 | phosphor_psu_monitor = executable( |
Brandon Wyman | 2ad76bd | 2019-08-26 17:15:04 -0500 | [diff] [blame] | 3 | 'phosphor-psu-monitor', |
| 4 | 'main.cpp', |
Brandon Wyman | a0f33ce | 2019-10-17 18:32:29 -0500 | [diff] [blame] | 5 | 'psu_manager.cpp', |
Brandon Wyman | aed1f75 | 2019-11-25 18:10:52 -0600 | [diff] [blame] | 6 | 'power_supply.cpp', |
Brandon Wyman | 3f1242f | 2020-01-28 13:11:25 -0600 | [diff] [blame^] | 7 | 'util.cpp', |
Brandon Wyman | 57939e8 | 2019-08-26 17:53:57 -0500 | [diff] [blame] | 8 | dependencies: [ |
| 9 | sdbusplus, |
Brandon Wyman | 2bac860 | 2019-09-12 18:12:21 -0500 | [diff] [blame] | 10 | sdeventplus, |
Brandon Wyman | 57939e8 | 2019-08-26 17:53:57 -0500 | [diff] [blame] | 11 | ], |
Brandon Wyman | a0f33ce | 2019-10-17 18:32:29 -0500 | [diff] [blame] | 12 | include_directories: '..', |
| 13 | install: true, |
| 14 | link_with: [ |
| 15 | libpower, |
| 16 | ] |
| 17 | ) |
Brandon Wyman | 3f1242f | 2020-01-28 13:11:25 -0600 | [diff] [blame^] | 18 | |
| 19 | power_supply = phosphor_psu_monitor.extract_objects('power_supply.cpp') |
| 20 | |
| 21 | if get_option('tests').enabled() |
| 22 | subdir('test') |
| 23 | endif |