xref: /openbmc/phosphor-bmc-code-mgmt/common/i2c/meson.build (revision 7f2658989dd4e336712a0d373dc66937911b68eb)
126d37483SChristopher Meislibi2c_inc = include_directories('../include/i2c/')
226d37483SChristopher Meislibi2c_dev = static_library(
326d37483SChristopher Meis    'i2c_dev',
426d37483SChristopher Meis    'i2c.cpp',
5*7f265898SPatrick Williams    dependencies: [sdbusplus_dep],
626d37483SChristopher Meis    include_directories: libi2c_inc,
726d37483SChristopher Meis    link_args: '-li2c',
826d37483SChristopher Meis)
97e446a40SChristopher Meislibi2c_dep = declare_dependency(
107e446a40SChristopher Meis    link_with: libi2c_dev,
11*7f265898SPatrick Williams    dependencies: [sdbusplus_dep],
127e446a40SChristopher Meis    include_directories: libi2c_inc,
137e446a40SChristopher Meis    link_args: '-li2c',
147e446a40SChristopher Meis)
15