xref: /openbmc/openpower-vpd-parser/wait-vpd-parser/meson.build (revision 0384502076a5c09dd156d360a5227e523a8da2d7)
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]
23
24wait_vpd_parser_exe = executable(
25    'wait-vpd-parser',
26    sources,
27    include_directories: ['include/', '../', '../vpd-manager/include'],
28    dependencies: dependency_list,
29    install: true,
30)
31