blob: bd0e7c650afc8231d25da2a47cbab8989ee78c88 [file] [log] [blame]
Patrick Williamsad145e02020-05-19 16:45:15 -05001executable(
2 'list-users',
3 'list-users.cpp',
4 include_directories: root_inc,
5 link_with: libsdbusplus,
6 dependencies: libsystemd_pkg,
7)
8
9if boost_dep.found()
10 executable(
11 'asio-example',
12 'asio-example.cpp',
13 cpp_args: [
14 '-DBOOST_ALL_NO_LIB',
15 '-DBOOST_SYSTEM_NO_DEPRECATED',
16 '-DBOOST_ERROR_CODE_HEADER_ONLY',
17 '-DBOOST_COROUTINES_NO_DEPRECATION_WARNING',
18 ],
19 include_directories: root_inc,
20 link_with: libsdbusplus,
21 dependencies: [ boost_dep, pthread_dep, libsystemd_pkg ],
22 )
23endif
24
25calc_buildroot = meson.current_build_dir()
26calc_files = files(
27 run_command(
28 sdbusgen_prog,
29 '--tool', sdbusplusplus_prog,
30 '--output', calc_buildroot,
31 'net',
32 check: true
33 ).stdout().strip().split('\n')
34)
35
36executable(
37 'calculator-server',
38 'calculator-server.cpp',
39 calc_files,
40 include_directories: root_inc,
41 link_with: libsdbusplus,
42 dependencies: libsystemd_pkg,
43)