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 | |
William A. Kennington III | 7d8dfc4 | 2020-06-04 02:45:26 -0700 | [diff] [blame] | 7 | boost_dep = dependency( |
| 8 | 'boost', |
| 9 | disabler: true, |
| 10 | required: false, |
| 11 | modules: [ 'coroutine' ], |
| 12 | ) |
| 13 | |
| 14 | executable( |
| 15 | 'asio-example', |
| 16 | 'asio-example.cpp', |
| 17 | cpp_args: [ |
| 18 | '-DBOOST_ASIO_DISABLE_THREADS', |
| 19 | '-DBOOST_ALL_NO_LIB', |
| 20 | '-DBOOST_SYSTEM_NO_DEPRECATED', |
| 21 | '-DBOOST_ERROR_CODE_HEADER_ONLY', |
| 22 | '-DBOOST_COROUTINES_NO_DEPRECATION_WARNING', |
| 23 | ], |
| 24 | dependencies: [ boost_dep, sdbusplus_dep ], |
| 25 | ) |
Patrick Williams | ad145e0 | 2020-05-19 16:45:15 -0500 | [diff] [blame] | 26 | |
| 27 | calc_buildroot = meson.current_build_dir() |
| 28 | calc_files = files( |
| 29 | run_command( |
| 30 | sdbusgen_prog, |
| 31 | '--tool', sdbusplusplus_prog, |
| 32 | '--output', calc_buildroot, |
| 33 | 'net', |
| 34 | check: true |
| 35 | ).stdout().strip().split('\n') |
| 36 | ) |
| 37 | |
| 38 | executable( |
| 39 | 'calculator-server', |
| 40 | 'calculator-server.cpp', |
| 41 | calc_files, |
Patrick Williams | d0285b9 | 2020-06-01 09:43:47 -0500 | [diff] [blame] | 42 | dependencies: sdbusplus_dep, |
Patrick Williams | ad145e0 | 2020-05-19 16:45:15 -0500 | [diff] [blame] | 43 | ) |