blob: 320c7c1c9edb0f21b10b40b20352ed1110dd2398 [file] [log] [blame]
Souvik Roy3e1cb492025-08-06 06:26:04 +00001compiler = 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'])
Souvik Roy3e1cb492025-08-06 06:26:04 +00009
Anupama B R445819f2025-09-18 11:00:25 -050010libgpiodcxx = 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',
Anupama B R445819f2025-09-18 11:00:25 -050022]
Souvik Roy3e1cb492025-08-06 06:26:04 +000023
24wait_vpd_parser_exe = executable(
25 'wait-vpd-parser',
26 sources,
Anupama B R445819f2025-09-18 11:00:25 -050027 include_directories: ['include/', '../', '../vpd-manager/include'],
Souvik Roy3e1cb492025-08-06 06:26:04 +000028 dependencies: dependency_list,
29 install: true,
30)