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: [ |
Patrick Williams | 888bebd | 2023-05-31 19:19:49 -0500 | [diff] [blame] | 12 | cli11_dep, |
B. J. Wyman | 681b2a3 | 2021-04-20 22:31:22 +0000 | [diff] [blame] | 13 | libgpiodcxx, |
Patrick Williams | 888bebd | 2023-05-31 19:19:49 -0500 | [diff] [blame] | 14 | nlohmann_json_dep, |
Adriana Kobylak | c9b0573 | 2022-03-19 15:15:10 +0000 | [diff] [blame] | 15 | phosphor_dbus_interfaces, |
Patrick Williams | 888bebd | 2023-05-31 19:19:49 -0500 | [diff] [blame] | 16 | phosphor_logging, |
| 17 | sdbusplus, |
| 18 | sdeventplus, |
Brandon Wyman | 57939e8 | 2019-08-26 17:53:57 -0500 | [diff] [blame] | 19 | ], |
Brandon Wyman | a0f33ce | 2019-10-17 18:32:29 -0500 | [diff] [blame] | 20 | include_directories: '..', |
| 21 | install: true, |
| 22 | link_with: [ |
| 23 | libpower, |
| 24 | ] |
| 25 | ) |
Brandon Wyman | 3f1242f | 2020-01-28 13:11:25 -0600 | [diff] [blame] | 26 | |
| 27 | power_supply = phosphor_psu_monitor.extract_objects('power_supply.cpp') |
| 28 | |
Patrick Williams | 5c6a693 | 2023-11-29 06:44:29 -0600 | [diff] [blame] | 29 | if get_option('tests').allowed() |
Brandon Wyman | 3f1242f | 2020-01-28 13:11:25 -0600 | [diff] [blame] | 30 | subdir('test') |
| 31 | endif |