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 | 270f242 | 2021-06-04 16:07:43 -0700 | [diff] [blame] | 7 | has_asio = meson.get_compiler('cpp').has_header_symbol( |
| 8 | 'boost/asio.hpp', |
| 9 | 'boost::asio::io_context', |
| 10 | required: false) |
| 11 | asio_dep = sdbusplus_dep |
| 12 | if not has_asio |
| 13 | asio_dep = disabler() |
| 14 | endif |
| 15 | |
William A. Kennington III | 5e893b9 | 2020-06-04 02:47:29 -0700 | [diff] [blame] | 16 | assert( |
William A. Kennington III | 270f242 | 2021-06-04 16:07:43 -0700 | [diff] [blame] | 17 | not get_option('examples').enabled() or has_asio, |
William A. Kennington III | 5e893b9 | 2020-06-04 02:47:29 -0700 | [diff] [blame] | 18 | 'Boost is required when examples are enabled' |
| 19 | ) |
| 20 | |
William A. Kennington III | 7d8dfc4 | 2020-06-04 02:45:26 -0700 | [diff] [blame] | 21 | executable( |
| 22 | 'asio-example', |
| 23 | 'asio-example.cpp', |
William A. Kennington III | 270f242 | 2021-06-04 16:07:43 -0700 | [diff] [blame] | 24 | dependencies: [ |
| 25 | asio_dep, |
| 26 | dependency( |
| 27 | 'boost', |
| 28 | modules: ['coroutine', 'context'], |
| 29 | disabler: true, |
| 30 | required: false, |
| 31 | ), |
William A. Kennington III | 7d8dfc4 | 2020-06-04 02:45:26 -0700 | [diff] [blame] | 32 | ], |
William A. Kennington III | 7d8dfc4 | 2020-06-04 02:45:26 -0700 | [diff] [blame] | 33 | ) |
Patrick Williams | ad145e0 | 2020-05-19 16:45:15 -0500 | [diff] [blame] | 34 | |
Krzysztof Grobelny | 2be0e17 | 2020-07-27 11:12:07 +0200 | [diff] [blame] | 35 | executable( |
| 36 | 'register-property', |
| 37 | 'register-property.cpp', |
William A. Kennington III | 270f242 | 2021-06-04 16:07:43 -0700 | [diff] [blame] | 38 | dependencies: asio_dep, |
Krzysztof Grobelny | 2be0e17 | 2020-07-27 11:12:07 +0200 | [diff] [blame] | 39 | ) |
| 40 | |
Krzysztof Grobelny | 09b88f2 | 2020-09-02 14:49:01 +0200 | [diff] [blame] | 41 | executable( |
| 42 | 'get-all-properties', |
| 43 | 'get-all-properties.cpp', |
William A. Kennington III | 270f242 | 2021-06-04 16:07:43 -0700 | [diff] [blame] | 44 | dependencies: asio_dep, |
Krzysztof Grobelny | 09b88f2 | 2020-09-02 14:49:01 +0200 | [diff] [blame] | 45 | ) |
| 46 | |
William A. Kennington III | 293c8a2 | 2022-09-02 14:35:54 -0700 | [diff] [blame^] | 47 | subdir('net/poettering/Calculator') |
Patrick Williams | ad145e0 | 2020-05-19 16:45:15 -0500 | [diff] [blame] | 48 | executable( |
| 49 | 'calculator-server', |
| 50 | 'calculator-server.cpp', |
William A. Kennington III | 293c8a2 | 2022-09-02 14:35:54 -0700 | [diff] [blame^] | 51 | calculator_sources, |
Patrick Williams | d0285b9 | 2020-06-01 09:43:47 -0500 | [diff] [blame] | 52 | dependencies: sdbusplus_dep, |
Patrick Williams | ad145e0 | 2020-05-19 16:45:15 -0500 | [diff] [blame] | 53 | ) |