blob: 7d57e5a4d977fe711308f274593a4c97c518fb56 [file] [log] [blame]
William A. Kennington III1cbb5842021-05-11 14:14:57 -07001# 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
William A. Kennington IIIe2938492021-05-11 14:27:17 -070011kcsbridged = executable(
William A. Kennington III1cbb5842021-05-11 14:14:57 -070012 '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 IIIe2938492021-05-11 14:27:17 -070035 install_dir: get_option('libexecdir'))