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