1executable( 2 'list-users', 3 'list-users.cpp', 4 dependencies: sdbusplus_dep, 5) 6 7has_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 16assert( 17 not get_option('examples').allowed() or has_asio, 18 'Boost is required when examples are enabled' 19) 20 21executable( 22 'asio-example', 23 'asio-example.cpp', 24 dependencies: [ 25 asio_dep, 26 dependency( 27 'boost', 28 modules: ['coroutine', 'context'], 29 disabler: true, 30 required: false, 31 ), 32 ], 33) 34 35executable( 36 'coroutine-example', 37 'coroutine-example.cpp', 38 dependencies: [ sdbusplus_dep ], 39) 40 41executable( 42 'register-property', 43 'register-property.cpp', 44 dependencies: asio_dep, 45) 46 47executable( 48 'get-all-properties', 49 'get-all-properties.cpp', 50 dependencies: asio_dep, 51) 52 53generated_sources = [] 54generated_others = [] 55subdir('gen') 56subdir('gen/net') 57 58custom_target( 59 'example_md', 60 command: 'true', 61 output: 'example_md', 62 capture: true, 63 depends: generated_others, 64 build_by_default: true) 65 66executable( 67 'calculator-server', 68 'calculator-server.cpp', 69 generated_sources, 70 implicit_include_directories: false, 71 include_directories: include_directories('gen'), 72 dependencies: sdbusplus_dep, 73) 74 75executable( 76 'calculator-aserver', 77 'calculator-aserver.cpp', 78 generated_sources, 79 implicit_include_directories: false, 80 include_directories: include_directories('gen'), 81 dependencies: sdbusplus_dep, 82) 83 84executable( 85 'calculator-client', 86 'calculator-client.cpp', 87 generated_sources, 88 implicit_include_directories: false, 89 include_directories: include_directories('gen'), 90 dependencies: sdbusplus_dep, 91) 92