xref: /openbmc/sdbusplus/example/meson.build (revision 293c8a26)
1executable(
2    'list-users',
3    'list-users.cpp',
4    dependencies: sdbusplus_dep,
5)
6
7has_asio = meson.get_compiler('cpp').has_header_symbol(
8  'boost/asio.hpp',
9  'boost::asio::io_context',
10  required: false)
11asio_dep = sdbusplus_dep
12if not has_asio
13  asio_dep = disabler()
14endif
15
16assert(
17    not get_option('examples').enabled() or has_asio,
18    'Boost is required when examples are enabled'
19)
20
21executable(
22    'asio-example',
23    'asio-example.cpp',
24    dependencies: [
25        asio_dep,
26        dependency(
27            'boost',
28            modules: ['coroutine', 'context'],
29            disabler: true,
30            required: false,
31        ),
32    ],
33)
34
35executable(
36    'register-property',
37    'register-property.cpp',
38    dependencies: asio_dep,
39)
40
41executable(
42    'get-all-properties',
43    'get-all-properties.cpp',
44    dependencies: asio_dep,
45)
46
47subdir('net/poettering/Calculator')
48executable(
49    'calculator-server',
50    'calculator-server.cpp',
51    calculator_sources,
52    dependencies: sdbusplus_dep,
53)
54