xref: /openbmc/phosphor-bmc-code-mgmt/i2c-vr/meson.build (revision 3f2f3e6a61777c16094c94c22734659a8d84bdad)
17e446a40SChristopher Meisi2cvr_src = files('i2cvr_device.cpp', 'i2cvr_software_manager.cpp', 'vr.cpp')
27e446a40SChristopher Meis
3dcf4b607SKevin Tungregulators_src = files(
4dcf4b607SKevin Tung    'isl69269/isl69269.cpp',
5*3f2f3e6aSKevin Tung    'mps/mp297x.cpp',
6dcf4b607SKevin Tung    'mps/mp2x6xx.cpp',
7dcf4b607SKevin Tung    'mps/mps.cpp',
8dcf4b607SKevin Tung    'xdpe1x2xx/xdpe1x2xx.cpp',
9dcf4b607SKevin Tung)
107e446a40SChristopher Meis
117e446a40SChristopher Meisi2cvr_include = include_directories('.')
127e446a40SChristopher Meis
137e446a40SChristopher Meisexecutable(
147e446a40SChristopher Meis    'phosphor-i2cvr-software-update',
157e446a40SChristopher Meis    'i2cvr_software_manager.cpp',
167e446a40SChristopher Meis    i2cvr_src,
177e446a40SChristopher Meis    regulators_src,
1826d37483SChristopher Meis    include_directories: [common_include, i2cvr_include, libi2c_inc],
197e446a40SChristopher Meis    dependencies: [
207e446a40SChristopher Meis        sdbusplus_dep,
217e446a40SChristopher Meis        phosphor_logging_dep,
227e446a40SChristopher Meis        pdi_dep,
237e446a40SChristopher Meis        boost_dep,
247e446a40SChristopher Meis        libpldm_dep,
2526d37483SChristopher Meis        libi2c_dep,
267e446a40SChristopher Meis    ],
2726d37483SChristopher Meis    link_with: [software_common_lib, libpldmutil, libi2c_dev],
287e446a40SChristopher Meis    install: true,
29781de31eSPatrick Williams    install_dir: get_option('libexecdir') / 'phosphor-code-mgmt',
3026d37483SChristopher Meis    link_args: '-li2c',
317e446a40SChristopher Meis)
327e446a40SChristopher Meis
337e446a40SChristopher Meisinstall_data(
347e446a40SChristopher Meis    'xyz.openbmc_project.Software.I2CVR.service',
357e446a40SChristopher Meis    install_dir: systemd_system_unit_dir,
367e446a40SChristopher Meis)
37