xref: /openbmc/phosphor-modbus/meson.build (revision 2168bbd050af3c68d820f96054a939dda02688c6)
1project(
2    'phosphor-modbus',
3    'cpp',
4    default_options: ['warning_level=3', 'werror=true', 'cpp_std=c++23'],
5    license: 'Apache-2.0',
6    version: '0.1',
7    meson_version: '>=1.1.1',
8)
9
10phosphor_dbus_interfaces_dep = dependency('phosphor-dbus-interfaces')
11phosphor_logging_dep = dependency('phosphor-logging')
12sdbusplus_dep = dependency('sdbusplus')
13
14default_deps = [
15    phosphor_dbus_interfaces_dep,
16    phosphor_logging_dep,
17    sdbusplus_dep,
18]
19
20common_include = include_directories('.')
21
22subdir('common')
23
24if get_option('modbus-rtu').allowed()
25    subdir('rtu')
26endif
27
28if get_option('mocked-test-device').allowed()
29    subdir('mocked_test_device')
30endif
31
32if get_option('tests').allowed()
33    subdir('tests')
34endif
35