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. 3cli11_dep = dependency('cli11', required: false) 4has_cli11 = meson.get_compiler('cpp').has_header_symbol( 5 'CLI/CLI.hpp', 6 'CLI::App', 7 dependencies: cli11_dep, 8 required: false) 9assert(has_cli11, 'CLI11 is required') 10 11kcsbridged = executable( 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, 35 install_dir: get_option('libexecdir')) 36