blob: c7ebf611e73b20394bdd0d0059545995b6557f51 [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 III270f2422021-06-04 16:07:43 -07007has_asio = meson.get_compiler('cpp').has_header_symbol(
8 'boost/asio.hpp',
9 'boost::asio::io_context',
10 required: false)
11asio_dep = sdbusplus_dep
12if not has_asio
13 asio_dep = disabler()
14endif
15
William A. Kennington III5e893b92020-06-04 02:47:29 -070016assert(
Patrick Williamsfcd80ef2023-11-29 21:20:05 -060017 not get_option('examples').enabled() or has_asio,
William A. Kennington III5e893b92020-06-04 02:47:29 -070018 'Boost is required when examples are enabled'
19)
20
William A. Kennington III7d8dfc42020-06-04 02:45:26 -070021executable(
22 'asio-example',
23 'asio-example.cpp',
William A. Kennington III270f2422021-06-04 16:07:43 -070024 dependencies: [
25 asio_dep,
26 dependency(
27 'boost',
28 modules: ['coroutine', 'context'],
29 disabler: true,
30 required: false,
31 ),
William A. Kennington III7d8dfc42020-06-04 02:45:26 -070032 ],
William A. Kennington III7d8dfc42020-06-04 02:45:26 -070033)
Patrick Williamsad145e02020-05-19 16:45:15 -050034
Krzysztof Grobelny2be0e172020-07-27 11:12:07 +020035executable(
Patrick Williams10010b12022-08-28 14:56:07 -050036 'coroutine-example',
37 'coroutine-example.cpp',
38 dependencies: [ sdbusplus_dep ],
39)
40
41executable(
Krzysztof Grobelny2be0e172020-07-27 11:12:07 +020042 'register-property',
43 'register-property.cpp',
William A. Kennington III270f2422021-06-04 16:07:43 -070044 dependencies: asio_dep,
Krzysztof Grobelny2be0e172020-07-27 11:12:07 +020045)
46
Krzysztof Grobelny09b88f22020-09-02 14:49:01 +020047executable(
48 'get-all-properties',
49 'get-all-properties.cpp',
William A. Kennington III270f2422021-06-04 16:07:43 -070050 dependencies: asio_dep,
Krzysztof Grobelny09b88f22020-09-02 14:49:01 +020051)
52
Willam A. Kennington IIIce8d16d2022-09-07 15:46:40 -070053generated_sources = []
54generated_others = []
55subdir('gen')
56subdir('gen/net')
57
Patrick Williamsad145e02020-05-19 16:45:15 -050058executable(
59 'calculator-server',
60 'calculator-server.cpp',
Willam A. Kennington IIIce8d16d2022-09-07 15:46:40 -070061 generated_sources,
62 implicit_include_directories: false,
63 include_directories: include_directories('gen'),
Patrick Williamsd0285b92020-06-01 09:43:47 -050064 dependencies: sdbusplus_dep,
Patrick Williamsad145e02020-05-19 16:45:15 -050065)
Patrick Williams4a594c02023-04-25 16:29:21 -050066
67executable(
Patrick Williamsbf0283a2023-08-19 07:18:04 -050068 'calculator-aserver',
69 'calculator-aserver.cpp',
70 generated_sources,
71 implicit_include_directories: false,
72 include_directories: include_directories('gen'),
73 dependencies: sdbusplus_dep,
74)
75
76executable(
Patrick Williams4a594c02023-04-25 16:29:21 -050077 'calculator-client',
78 'calculator-client.cpp',
79 generated_sources,
80 implicit_include_directories: false,
81 include_directories: include_directories('gen'),
82 dependencies: sdbusplus_dep,
83)