xref: /openbmc/phosphor-bmc-code-mgmt/i2c-vr/meson.build (revision 781de31ee4333abc7505414d96632a5af4afcf44)
1i2cvr_src = files('i2cvr_device.cpp', 'i2cvr_software_manager.cpp', 'vr.cpp')
2
3regulators_src = files('xdpe1x2xx/xdpe1x2xx.cpp')
4
5i2cvr_include = include_directories('.')
6
7executable(
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,
22    install_dir: get_option('libexecdir') / 'phosphor-code-mgmt',
23)
24
25systemd_system_unit_dir = dependency('systemd').get_variable(
26    'systemdsystemunitdir',
27    pkgconfig_define: ['prefix', get_option('prefix')],
28)
29
30install_data(
31    'xyz.openbmc_project.Software.I2CVR.service',
32    install_dir: systemd_system_unit_dir,
33)
34