xref: /openbmc/sdbusplus/example/meson.build (revision bb140d1b)
1executable(
2    'list-users',
3    'list-users.cpp',
4    dependencies: sdbusplus_dep,
5)
6
7boost_dep = dependency(
8    'boost',
9    disabler: true,
10    required: false,
11    modules: [ 'coroutine' ],
12)
13
14executable(
15    'asio-example',
16    'asio-example.cpp',
17    cpp_args: [
18        '-DBOOST_ASIO_DISABLE_THREADS',
19        '-DBOOST_ALL_NO_LIB',
20        '-DBOOST_SYSTEM_NO_DEPRECATED',
21        '-DBOOST_ERROR_CODE_HEADER_ONLY',
22        '-DBOOST_COROUTINES_NO_DEPRECATION_WARNING',
23    ],
24    dependencies: [ boost_dep, sdbusplus_dep ],
25)
26
27calc_buildroot = meson.current_build_dir()
28calc_files = files(
29    run_command(
30        sdbusgen_prog,
31        '--tool', sdbusplusplus_prog,
32        '--output', calc_buildroot,
33        'net',
34        check: true
35    ).stdout().strip().split('\n')
36)
37
38executable(
39    'calculator-server',
40    'calculator-server.cpp',
41    calc_files,
42    dependencies: sdbusplus_dep,
43)
44