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( |
Patrick Williams | 10010b1 | 2022-08-28 14:56:07 -0500 | [diff] [blame] | 36 | 'coroutine-example', |
| 37 | 'coroutine-example.cpp', |
| 38 | dependencies: [ sdbusplus_dep ], |
| 39 | ) |
| 40 | |
| 41 | executable( |
Krzysztof Grobelny | 2be0e17 | 2020-07-27 11:12:07 +0200 | [diff] [blame] | 42 | 'register-property', |
| 43 | 'register-property.cpp', |
William A. Kennington III | 270f242 | 2021-06-04 16:07:43 -0700 | [diff] [blame] | 44 | dependencies: asio_dep, |
Krzysztof Grobelny | 2be0e17 | 2020-07-27 11:12:07 +0200 | [diff] [blame] | 45 | ) |
| 46 | |
Krzysztof Grobelny | 09b88f2 | 2020-09-02 14:49:01 +0200 | [diff] [blame] | 47 | executable( |
| 48 | 'get-all-properties', |
| 49 | 'get-all-properties.cpp', |
William A. Kennington III | 270f242 | 2021-06-04 16:07:43 -0700 | [diff] [blame] | 50 | dependencies: asio_dep, |
Krzysztof Grobelny | 09b88f2 | 2020-09-02 14:49:01 +0200 | [diff] [blame] | 51 | ) |
| 52 | |
Willam A. Kennington III | ce8d16d | 2022-09-07 15:46:40 -0700 | [diff] [blame] | 53 | generated_sources = [] |
| 54 | generated_others = [] |
| 55 | subdir('gen') |
| 56 | subdir('gen/net') |
| 57 | |
Patrick Williams | ad145e0 | 2020-05-19 16:45:15 -0500 | [diff] [blame] | 58 | executable( |
| 59 | 'calculator-server', |
| 60 | 'calculator-server.cpp', |
Willam A. Kennington III | ce8d16d | 2022-09-07 15:46:40 -0700 | [diff] [blame] | 61 | generated_sources, |
| 62 | implicit_include_directories: false, |
| 63 | include_directories: include_directories('gen'), |
Patrick Williams | d0285b9 | 2020-06-01 09:43:47 -0500 | [diff] [blame] | 64 | dependencies: sdbusplus_dep, |
Patrick Williams | ad145e0 | 2020-05-19 16:45:15 -0500 | [diff] [blame] | 65 | ) |