blob: 5cd906a68e29235a9304a87ed2d0662e439d022a [file] [log] [blame]
Patrick Williamsad145e02020-05-19 16:45:15 -05001executable(
2 'list-users',
3 'list-users.cpp',
Patrick Williamsd0285b92020-06-01 09:43:47 -05004 dependencies: sdbusplus_dep,
Patrick Williamsad145e02020-05-19 16:45:15 -05005)
6
William A. Kennington III7d8dfc42020-06-04 02:45:26 -07007boost_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)
Patrick Williamsad145e02020-05-19 16:45:15 -050026
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,
Patrick Williamsd0285b92020-06-01 09:43:47 -050042 dependencies: sdbusplus_dep,
Patrick Williamsad145e02020-05-19 16:45:15 -050043)