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