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, |
Christopher Meis | 26d3748 | 2025-04-29 11:47:07 +0200 | [diff] [blame] | 12 | include_directories: [common_include, i2cvr_include, libi2c_inc], |
Christopher Meis | 7e446a4 | 2024-10-22 09:36:41 +0200 | [diff] [blame] | 13 | dependencies: [ |
| 14 | sdbusplus_dep, |
| 15 | phosphor_logging_dep, |
| 16 | pdi_dep, |
| 17 | boost_dep, |
| 18 | libpldm_dep, |
Christopher Meis | 26d3748 | 2025-04-29 11:47:07 +0200 | [diff] [blame] | 19 | libi2c_dep, |
Christopher Meis | 7e446a4 | 2024-10-22 09:36:41 +0200 | [diff] [blame] | 20 | ], |
Christopher Meis | 26d3748 | 2025-04-29 11:47:07 +0200 | [diff] [blame] | 21 | link_with: [software_common_lib, libpldmutil, libi2c_dev], |
Christopher Meis | 7e446a4 | 2024-10-22 09:36:41 +0200 | [diff] [blame] | 22 | install: true, |
Patrick Williams | 781de31 | 2025-04-19 12:39:38 -0400 | [diff] [blame] | 23 | install_dir: get_option('libexecdir') / 'phosphor-code-mgmt', |
Christopher Meis | 26d3748 | 2025-04-29 11:47:07 +0200 | [diff] [blame] | 24 | link_args: '-li2c', |
Christopher Meis | 7e446a4 | 2024-10-22 09:36:41 +0200 | [diff] [blame] | 25 | ) |
| 26 | |
| 27 | systemd_system_unit_dir = dependency('systemd').get_variable( |
| 28 | 'systemdsystemunitdir', |
| 29 | pkgconfig_define: ['prefix', get_option('prefix')], |
| 30 | ) |
| 31 | |
| 32 | install_data( |
| 33 | 'xyz.openbmc_project.Software.I2CVR.service', |
| 34 | install_dir: systemd_system_unit_dir, |
| 35 | ) |