William A. Kennington III | 1cbb584 | 2021-05-11 14:14:57 -0700 | [diff] [blame] | 1 | # CLI11 might not have a pkg-config. It is header only so just make |
| 2 | # sure we can access the needed symbols from the header. |
| 3 | cli11_dep = dependency('cli11', required: false) |
| 4 | has_cli11 = meson.get_compiler('cpp').has_header_symbol( |
| 5 | 'CLI/CLI.hpp', |
| 6 | 'CLI::App', |
| 7 | dependencies: cli11_dep, |
| 8 | required: false) |
| 9 | assert(has_cli11, 'CLI11 is required') |
| 10 | |
William A. Kennington III | e293849 | 2021-05-11 14:27:17 -0700 | [diff] [blame^] | 11 | kcsbridged = executable( |
William A. Kennington III | 1cbb584 | 2021-05-11 14:14:57 -0700 | [diff] [blame] | 12 | 'kcsbridged', |
| 13 | 'kcsbridged.cpp', |
| 14 | implicit_include_directories: false, |
| 15 | dependencies: [ |
| 16 | dependency( |
| 17 | 'boost', |
| 18 | modules: [ |
| 19 | 'coroutine', |
| 20 | 'context', |
| 21 | ], |
| 22 | ), |
| 23 | cli11_dep, |
| 24 | dependency('phosphor-logging'), |
| 25 | dependency('sdbusplus'), |
| 26 | ], |
| 27 | cpp_args: [ |
| 28 | '-DBOOST_ASIO_DISABLE_THREADS', |
| 29 | '-DBOOST_ALL_NO_LIB', |
| 30 | '-DBOOST_SYSTEM_NO_DEPRECATED', |
| 31 | '-DBOOST_ERROR_CODE_HEADER_ONLY', |
| 32 | '-DBOOST_COROUTINES_NO_DEPRECATION_WARNING', |
| 33 | ], |
| 34 | install: true, |
William A. Kennington III | e293849 | 2021-05-11 14:27:17 -0700 | [diff] [blame^] | 35 | install_dir: get_option('libexecdir')) |