| executable( |
| 'list-users', |
| 'list-users.cpp', |
| dependencies: sdbusplus_dep, |
| ) |
| |
| has_asio = meson.get_compiler('cpp').has_header_symbol( |
| 'boost/asio.hpp', |
| 'boost::asio::io_context', |
| required: false) |
| asio_dep = sdbusplus_dep |
| if not has_asio |
| asio_dep = disabler() |
| endif |
| |
| assert( |
| not get_option('examples').enabled() or has_asio, |
| 'Boost is required when examples are enabled' |
| ) |
| |
| executable( |
| 'asio-example', |
| 'asio-example.cpp', |
| dependencies: [ |
| asio_dep, |
| dependency( |
| 'boost', |
| modules: ['coroutine', 'context'], |
| disabler: true, |
| required: false, |
| ), |
| ], |
| ) |
| |
| executable( |
| 'register-property', |
| 'register-property.cpp', |
| dependencies: asio_dep, |
| ) |
| |
| executable( |
| 'get-all-properties', |
| 'get-all-properties.cpp', |
| dependencies: asio_dep, |
| ) |
| |
| calc_buildroot = meson.current_build_dir() |
| calc_files = files( |
| run_command( |
| sdbusgen_prog, |
| '--tool', sdbusplusplus_prog, |
| '--output', calc_buildroot, |
| 'net', |
| check: true |
| ).stdout().strip().split('\n') |
| ) |
| |
| executable( |
| 'calculator-server', |
| 'calculator-server.cpp', |
| calc_files, |
| dependencies: sdbusplus_dep, |
| ) |