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 | 5e893b9 | 2020-06-04 02:47:29 -0700 | [diff] [blame] | 7 | assert( |
| 8 | not get_option('examples').enabled() or boost_dep.found(), |
| 9 | 'Boost is required when examples are enabled' |
| 10 | ) |
| 11 | |
William A. Kennington III | 7d8dfc4 | 2020-06-04 02:45:26 -0700 | [diff] [blame] | 12 | executable( |
| 13 | 'asio-example', |
| 14 | 'asio-example.cpp', |
| 15 | cpp_args: [ |
| 16 | '-DBOOST_ASIO_DISABLE_THREADS', |
| 17 | '-DBOOST_ALL_NO_LIB', |
| 18 | '-DBOOST_SYSTEM_NO_DEPRECATED', |
| 19 | '-DBOOST_ERROR_CODE_HEADER_ONLY', |
| 20 | '-DBOOST_COROUTINES_NO_DEPRECATION_WARNING', |
| 21 | ], |
| 22 | dependencies: [ boost_dep, sdbusplus_dep ], |
| 23 | ) |
Patrick Williams | ad145e0 | 2020-05-19 16:45:15 -0500 | [diff] [blame] | 24 | |
Krzysztof Grobelny | 2be0e17 | 2020-07-27 11:12:07 +0200 | [diff] [blame] | 25 | executable( |
| 26 | 'register-property', |
| 27 | 'register-property.cpp', |
| 28 | cpp_args: [ |
| 29 | '-DBOOST_ASIO_DISABLE_THREADS', |
| 30 | '-DBOOST_ALL_NO_LIB', |
| 31 | '-DBOOST_SYSTEM_NO_DEPRECATED', |
| 32 | '-DBOOST_ERROR_CODE_HEADER_ONLY', |
| 33 | '-DBOOST_COROUTINES_NO_DEPRECATION_WARNING', |
| 34 | ], |
| 35 | dependencies: [ boost_dep, sdbusplus_dep ], |
| 36 | ) |
| 37 | |
Krzysztof Grobelny | 09b88f2 | 2020-09-02 14:49:01 +0200 | [diff] [blame] | 38 | executable( |
| 39 | 'get-all-properties', |
| 40 | 'get-all-properties.cpp', |
| 41 | cpp_args: [ |
| 42 | '-DBOOST_ASIO_DISABLE_THREADS', |
| 43 | '-DBOOST_ALL_NO_LIB', |
| 44 | '-DBOOST_SYSTEM_NO_DEPRECATED', |
| 45 | '-DBOOST_ERROR_CODE_HEADER_ONLY', |
| 46 | '-DBOOST_COROUTINES_NO_DEPRECATION_WARNING', |
| 47 | ], |
| 48 | dependencies: [ boost_dep, sdbusplus_dep ], |
| 49 | ) |
| 50 | |
Patrick Williams | ad145e0 | 2020-05-19 16:45:15 -0500 | [diff] [blame] | 51 | calc_buildroot = meson.current_build_dir() |
| 52 | calc_files = files( |
| 53 | run_command( |
| 54 | sdbusgen_prog, |
| 55 | '--tool', sdbusplusplus_prog, |
| 56 | '--output', calc_buildroot, |
| 57 | 'net', |
| 58 | check: true |
| 59 | ).stdout().strip().split('\n') |
| 60 | ) |
| 61 | |
| 62 | executable( |
| 63 | 'calculator-server', |
| 64 | 'calculator-server.cpp', |
| 65 | calc_files, |
Patrick Williams | d0285b9 | 2020-06-01 09:43:47 -0500 | [diff] [blame] | 66 | dependencies: sdbusplus_dep, |
Patrick Williams | ad145e0 | 2020-05-19 16:45:15 -0500 | [diff] [blame] | 67 | ) |