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