Patrick Williams | ad145e0 | 2020-05-19 16:45:15 -0500 | [diff] [blame] | 1 | executable( |
| 2 | 'list-users', |
| 3 | 'list-users.cpp', |
Patrick Williams | d0285b9 | 2020-06-01 09:43:47 -0500 | [diff] [blame^] | 4 | dependencies: sdbusplus_dep, |
Patrick Williams | ad145e0 | 2020-05-19 16:45:15 -0500 | [diff] [blame] | 5 | ) |
| 6 | |
| 7 | if boost_dep.found() |
| 8 | executable( |
| 9 | 'asio-example', |
| 10 | 'asio-example.cpp', |
| 11 | cpp_args: [ |
| 12 | '-DBOOST_ALL_NO_LIB', |
| 13 | '-DBOOST_SYSTEM_NO_DEPRECATED', |
| 14 | '-DBOOST_ERROR_CODE_HEADER_ONLY', |
| 15 | '-DBOOST_COROUTINES_NO_DEPRECATION_WARNING', |
| 16 | ], |
Patrick Williams | d0285b9 | 2020-06-01 09:43:47 -0500 | [diff] [blame^] | 17 | dependencies: [ boost_dep, pthread_dep, sdbusplus_dep ], |
Patrick Williams | ad145e0 | 2020-05-19 16:45:15 -0500 | [diff] [blame] | 18 | ) |
| 19 | endif |
| 20 | |
| 21 | calc_buildroot = meson.current_build_dir() |
| 22 | calc_files = files( |
| 23 | run_command( |
| 24 | sdbusgen_prog, |
| 25 | '--tool', sdbusplusplus_prog, |
| 26 | '--output', calc_buildroot, |
| 27 | 'net', |
| 28 | check: true |
| 29 | ).stdout().strip().split('\n') |
| 30 | ) |
| 31 | |
| 32 | executable( |
| 33 | 'calculator-server', |
| 34 | 'calculator-server.cpp', |
| 35 | calc_files, |
Patrick Williams | d0285b9 | 2020-06-01 09:43:47 -0500 | [diff] [blame^] | 36 | dependencies: sdbusplus_dep, |
Patrick Williams | ad145e0 | 2020-05-19 16:45:15 -0500 | [diff] [blame] | 37 | ) |