xref: /openbmc/phosphor-modbus/meson.build (revision 0fffb59bfd451edf56347c4e3e88acba3f82d065)
16151566bSJagpal Singh Gillproject(
26151566bSJagpal Singh Gill    'phosphor-modbus',
36151566bSJagpal Singh Gill    'cpp',
46151566bSJagpal Singh Gill    default_options: ['warning_level=3', 'werror=true', 'cpp_std=c++23'],
56151566bSJagpal Singh Gill    license: 'Apache-2.0',
66151566bSJagpal Singh Gill    version: '0.1',
76151566bSJagpal Singh Gill    meson_version: '>=1.1.1',
86151566bSJagpal Singh Gill)
96151566bSJagpal Singh Gill
106151566bSJagpal Singh Gillphosphor_dbus_interfaces_dep = dependency('phosphor-dbus-interfaces')
116151566bSJagpal Singh Gillphosphor_logging_dep = dependency('phosphor-logging')
126151566bSJagpal Singh Gillsdbusplus_dep = dependency('sdbusplus')
136151566bSJagpal Singh Gill
146151566bSJagpal Singh Gilldefault_deps = [
156151566bSJagpal Singh Gill    phosphor_dbus_interfaces_dep,
166151566bSJagpal Singh Gill    phosphor_logging_dep,
176151566bSJagpal Singh Gill    sdbusplus_dep,
186151566bSJagpal Singh Gill]
19fa4a7876SJagpal Singh Gill
20fa4a7876SJagpal Singh Gillsubdir('common')
21fa4a7876SJagpal Singh Gill
22fa4a7876SJagpal Singh Gillif get_option('modbus-rtu').allowed()
23fa4a7876SJagpal Singh Gill    subdir('rtu')
24fa4a7876SJagpal Singh Gillendif
25*0fffb59bSJagpal Singh Gill
26*0fffb59bSJagpal Singh Gillif get_option('tests').allowed()
27*0fffb59bSJagpal Singh Gill    subdir('tests')
28*0fffb59bSJagpal Singh Gillendif
29