1compiler = meson.get_compiler('cpp') 2if compiler.has_header('CLI/CLI.hpp') 3 CLI_dep = declare_dependency() 4else 5 CLI_dep = dependency('CLI11') 6endif 7 8sdbusplus = dependency('sdbusplus', fallback: ['sdbusplus', 'sdbusplus_dep']) 9 10libgpiodcxx = dependency( 11 'libgpiodcxx', 12 default_options: ['bindings=cxx'], 13 version: '<1.7.0', 14) 15 16dependency_list = [CLI_dep, sdbusplus, libgpiodcxx] 17 18sources = [ 19 'src/wait_vpd_parser.cpp', 20 '../vpd-manager/src/logger.cpp', 21 'src/prime_inventory.cpp', 22 '../vpd-manager/src/event_logger.cpp', 23] 24 25wait_vpd_parser_exe = executable( 26 'wait-vpd-parser', 27 sources, 28 include_directories: ['include/', '../', '../vpd-manager/include'], 29 dependencies: dependency_list, 30 install: true, 31) 32