Jagpal Singh Gill | 6151566 | 2025-05-20 15:42:33 -0700 | [diff] [blame] | 1 | project( |
| 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 | |
| 10 | phosphor_dbus_interfaces_dep = dependency('phosphor-dbus-interfaces') |
| 11 | phosphor_logging_dep = dependency('phosphor-logging') |
| 12 | sdbusplus_dep = dependency('sdbusplus') |
| 13 | |
| 14 | default_deps = [ |
| 15 | phosphor_dbus_interfaces_dep, |
| 16 | phosphor_logging_dep, |
| 17 | sdbusplus_dep, |
| 18 | ] |
Jagpal Singh Gill | fa4a787 | 2025-05-20 16:18:06 -0700 | [diff] [blame] | 19 | |
| 20 | subdir('common') |
| 21 | |
| 22 | if get_option('modbus-rtu').allowed() |
| 23 | subdir('rtu') |
| 24 | endif |
Jagpal Singh Gill | 0fffb59 | 2025-05-20 23:45:25 -0700 | [diff] [blame^] | 25 | |
| 26 | if get_option('tests').allowed() |
| 27 | subdir('tests') |
| 28 | endif |