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 | c332442 | 2022-03-24 20:30:57 +0000 | [diff] [blame] | 10 | 'record_manager.cpp', |
Brandon Wyman | 3f1242f | 2020-01-28 13:11:25 -0600 | [diff] [blame] | 11 | 'util.cpp', |
Brandon Wyman | 57939e8 | 2019-08-26 17:53:57 -0500 | [diff] [blame] | 12 | dependencies: [ |
| 13 | sdbusplus, |
Brandon Wyman | 2bac860 | 2019-09-12 18:12:21 -0500 | [diff] [blame] | 14 | sdeventplus, |
Brandon Wyman | b76ab24 | 2020-09-16 18:06:06 -0500 | [diff] [blame] | 15 | fmt, |
B. J. Wyman | 681b2a3 | 2021-04-20 22:31:22 +0000 | [diff] [blame] | 16 | libgpiodcxx, |
Adriana Kobylak | c9b0573 | 2022-03-19 15:15:10 +0000 | [diff] [blame] | 17 | phosphor_dbus_interfaces, |
Brandon Wyman | 57939e8 | 2019-08-26 17:53:57 -0500 | [diff] [blame] | 18 | ], |
Brandon Wyman | a0f33ce | 2019-10-17 18:32:29 -0500 | [diff] [blame] | 19 | include_directories: '..', |
| 20 | install: true, |
| 21 | link_with: [ |
| 22 | libpower, |
| 23 | ] |
| 24 | ) |
Brandon Wyman | 3f1242f | 2020-01-28 13:11:25 -0600 | [diff] [blame] | 25 | |
| 26 | power_supply = phosphor_psu_monitor.extract_objects('power_supply.cpp') |
| 27 | |
| 28 | if get_option('tests').enabled() |
| 29 | subdir('test') |
| 30 | endif |