Souvik Roy | 3e1cb49 | 2025-08-06 06:26:04 +0000 | [diff] [blame] | 1 | compiler = meson.get_compiler('cpp') |
| 2 | if compiler.has_header('CLI/CLI.hpp') |
| 3 | CLI_dep = declare_dependency() |
| 4 | else |
| 5 | CLI_dep = dependency('CLI11') |
| 6 | endif |
| 7 | |
| 8 | sdbusplus = dependency('sdbusplus', fallback: ['sdbusplus', 'sdbusplus_dep']) |
Souvik Roy | 3e1cb49 | 2025-08-06 06:26:04 +0000 | [diff] [blame] | 9 | |
Anupama B R | 445819f | 2025-09-18 11:00:25 -0500 | [diff] [blame] | 10 | libgpiodcxx = dependency( |
| 11 | 'libgpiodcxx', |
| 12 | default_options: ['bindings=cxx'], |
| 13 | version: '<1.7.0', |
| 14 | ) |
| 15 | |
| 16 | dependency_list = [CLI_dep, sdbusplus, libgpiodcxx] |
| 17 | |
| 18 | sources = [ |
| 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 | ] |
Souvik Roy | 3e1cb49 | 2025-08-06 06:26:04 +0000 | [diff] [blame] | 24 | |
| 25 | wait_vpd_parser_exe = executable( |
| 26 | 'wait-vpd-parser', |
| 27 | sources, |
Anupama B R | 445819f | 2025-09-18 11:00:25 -0500 | [diff] [blame] | 28 | include_directories: ['include/', '../', '../vpd-manager/include'], |
Souvik Roy | 3e1cb49 | 2025-08-06 06:26:04 +0000 | [diff] [blame] | 29 | dependencies: dependency_list, |
| 30 | install: true, |
| 31 | ) |