Christopher Meis | 7e446a4 | 2024-10-22 09:36:41 +0200 | [diff] [blame] | 1 | i2cvr_src = files('i2cvr_device.cpp', 'i2cvr_software_manager.cpp', 'vr.cpp') |
| 2 | |
| 3 | regulators_src = files('xdpe1x2xx/xdpe1x2xx.cpp') |
| 4 | |
| 5 | i2cvr_include = include_directories('.') |
| 6 | |
| 7 | executable( |
| 8 | 'phosphor-i2cvr-software-update', |
| 9 | 'i2cvr_software_manager.cpp', |
| 10 | i2cvr_src, |
| 11 | regulators_src, |
| 12 | include_directories: [common_include, i2cvr_include], |
| 13 | dependencies: [ |
| 14 | sdbusplus_dep, |
| 15 | phosphor_logging_dep, |
| 16 | pdi_dep, |
| 17 | boost_dep, |
| 18 | libpldm_dep, |
| 19 | ], |
| 20 | link_with: [software_common_lib, libpldmutil], |
| 21 | install: true, |
Patrick Williams | 781de31 | 2025-04-19 12:39:38 -0400 | [diff] [blame] | 22 | install_dir: get_option('libexecdir') / 'phosphor-code-mgmt', |
Christopher Meis | 7e446a4 | 2024-10-22 09:36:41 +0200 | [diff] [blame] | 23 | ) |
| 24 | |
| 25 | systemd_system_unit_dir = dependency('systemd').get_variable( |
| 26 | 'systemdsystemunitdir', |
| 27 | pkgconfig_define: ['prefix', get_option('prefix')], |
| 28 | ) |
| 29 | |
| 30 | install_data( |
| 31 | 'xyz.openbmc_project.Software.I2CVR.service', |
| 32 | install_dir: systemd_system_unit_dir, |
| 33 | ) |