blob: 9b1cef43e54daf096db44ffa92b54abf4a4fe843 [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
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 ],
Patrick Williamsd0285b92020-06-01 09:43:47 -050017 dependencies: [ boost_dep, pthread_dep, sdbusplus_dep ],
Patrick Williamsad145e02020-05-19 16:45:15 -050018 )
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,
Patrick Williamsd0285b92020-06-01 09:43:47 -050036 dependencies: sdbusplus_dep,
Patrick Williamsad145e02020-05-19 16:45:15 -050037)