xref: /openbmc/phosphor-bmc-code-mgmt/common/i2c/meson.build (revision 26d374835b84adac8a47c8c857aafbb7f894a785)
1*26d37483SChristopher Meislibi2c_inc = include_directories('../include/i2c/')
2*26d37483SChristopher Meislibi2c_dev = static_library(
3*26d37483SChristopher Meis    'i2c_dev',
4*26d37483SChristopher Meis    'i2c.cpp',
5*26d37483SChristopher Meis    include_directories: libi2c_inc,
6*26d37483SChristopher Meis    link_args: '-li2c',
7*26d37483SChristopher Meis)
87e446a40SChristopher Meislibi2c_dep = declare_dependency(
97e446a40SChristopher Meis    link_with: libi2c_dev,
107e446a40SChristopher Meis    include_directories: libi2c_inc,
117e446a40SChristopher Meis    link_args: '-li2c',
127e446a40SChristopher Meis)
13