blob: 957c01d2595a692b721bcbd471c2666e4976d808 [file] [log] [blame]
executable(
'list-users',
'list-users.cpp',
dependencies: sdbusplus_dep,
)
assert(
not get_option('examples').enabled() or boost_dep.found(),
'Boost is required when examples are enabled'
)
executable(
'asio-example',
'asio-example.cpp',
cpp_args: [
'-DBOOST_ASIO_DISABLE_THREADS',
'-DBOOST_ALL_NO_LIB',
'-DBOOST_SYSTEM_NO_DEPRECATED',
'-DBOOST_ERROR_CODE_HEADER_ONLY',
'-DBOOST_COROUTINES_NO_DEPRECATION_WARNING',
],
dependencies: [ boost_dep, sdbusplus_dep ],
)
calc_buildroot = meson.current_build_dir()
calc_files = files(
run_command(
sdbusgen_prog,
'--tool', sdbusplusplus_prog,
'--output', calc_buildroot,
'net',
check: true
).stdout().strip().split('\n')
)
executable(
'calculator-server',
'calculator-server.cpp',
calc_files,
dependencies: sdbusplus_dep,
)