xref: /openbmc/phosphor-bmc-code-mgmt/i2c-vr/meson.build (revision 781de31ee4333abc7505414d96632a5af4afcf44)
17e446a40SChristopher Meisi2cvr_src = files('i2cvr_device.cpp', 'i2cvr_software_manager.cpp', 'vr.cpp')
27e446a40SChristopher Meis
37e446a40SChristopher Meisregulators_src = files('xdpe1x2xx/xdpe1x2xx.cpp')
47e446a40SChristopher Meis
57e446a40SChristopher Meisi2cvr_include = include_directories('.')
67e446a40SChristopher Meis
77e446a40SChristopher Meisexecutable(
87e446a40SChristopher Meis    'phosphor-i2cvr-software-update',
97e446a40SChristopher Meis    'i2cvr_software_manager.cpp',
107e446a40SChristopher Meis    i2cvr_src,
117e446a40SChristopher Meis    regulators_src,
127e446a40SChristopher Meis    include_directories: [common_include, i2cvr_include],
137e446a40SChristopher Meis    dependencies: [
147e446a40SChristopher Meis        sdbusplus_dep,
157e446a40SChristopher Meis        phosphor_logging_dep,
167e446a40SChristopher Meis        pdi_dep,
177e446a40SChristopher Meis        boost_dep,
187e446a40SChristopher Meis        libpldm_dep,
197e446a40SChristopher Meis    ],
207e446a40SChristopher Meis    link_with: [software_common_lib, libpldmutil],
217e446a40SChristopher Meis    install: true,
22*781de31eSPatrick Williams    install_dir: get_option('libexecdir') / 'phosphor-code-mgmt',
237e446a40SChristopher Meis)
247e446a40SChristopher Meis
257e446a40SChristopher Meissystemd_system_unit_dir = dependency('systemd').get_variable(
267e446a40SChristopher Meis    'systemdsystemunitdir',
277e446a40SChristopher Meis    pkgconfig_define: ['prefix', get_option('prefix')],
287e446a40SChristopher Meis)
297e446a40SChristopher Meis
307e446a40SChristopher Meisinstall_data(
317e446a40SChristopher Meis    'xyz.openbmc_project.Software.I2CVR.service',
327e446a40SChristopher Meis    install_dir: systemd_system_unit_dir,
337e446a40SChristopher Meis)
34