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