blob: aed2a33ecd56b868a2ba8ef5cee92a59cbf07ce8 [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 III5e893b92020-06-04 02:47:29 -07007assert(
8 not get_option('examples').enabled() or boost_dep.found(),
9 'Boost is required when examples are enabled'
10)
11
William A. Kennington III7d8dfc42020-06-04 02:45:26 -070012executable(
13 'asio-example',
14 'asio-example.cpp',
15 cpp_args: [
16 '-DBOOST_ASIO_DISABLE_THREADS',
17 '-DBOOST_ALL_NO_LIB',
18 '-DBOOST_SYSTEM_NO_DEPRECATED',
19 '-DBOOST_ERROR_CODE_HEADER_ONLY',
20 '-DBOOST_COROUTINES_NO_DEPRECATION_WARNING',
21 ],
22 dependencies: [ boost_dep, sdbusplus_dep ],
23)
Patrick Williamsad145e02020-05-19 16:45:15 -050024
Krzysztof Grobelny2be0e172020-07-27 11:12:07 +020025executable(
26 'register-property',
27 'register-property.cpp',
28 cpp_args: [
29 '-DBOOST_ASIO_DISABLE_THREADS',
30 '-DBOOST_ALL_NO_LIB',
31 '-DBOOST_SYSTEM_NO_DEPRECATED',
32 '-DBOOST_ERROR_CODE_HEADER_ONLY',
33 '-DBOOST_COROUTINES_NO_DEPRECATION_WARNING',
34 ],
35 dependencies: [ boost_dep, sdbusplus_dep ],
36)
37
Patrick Williamsad145e02020-05-19 16:45:15 -050038calc_buildroot = meson.current_build_dir()
39calc_files = files(
40 run_command(
41 sdbusgen_prog,
42 '--tool', sdbusplusplus_prog,
43 '--output', calc_buildroot,
44 'net',
45 check: true
46 ).stdout().strip().split('\n')
47)
48
49executable(
50 'calculator-server',
51 'calculator-server.cpp',
52 calc_files,
Patrick Williamsd0285b92020-06-01 09:43:47 -050053 dependencies: sdbusplus_dep,
Patrick Williamsad145e02020-05-19 16:45:15 -050054)