Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 1 | cpp_args = boost_args + ['-DPACKAGE_DIR="' + packagedir + '/"'] |
Patrick Williams | 37304f0 | 2025-02-01 08:38:32 -0500 | [diff] [blame] | 2 | cpp_args += ['-DSYSCONF_DIR="' + sysconfdir + '/"'] |
Potin Lai | f375fec | 2024-03-21 14:35:45 +0800 | [diff] [blame] | 3 | installdir = join_paths(get_option('libexecdir'), 'entity-manager') |
Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 4 | |
Christopher Meis | fc9e7fd | 2025-04-03 13:13:35 +0200 | [diff] [blame] | 5 | subdir('entity_manager') |
Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 6 | |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 7 | if get_option('fru-device') |
Christopher Meis | 3cbff97 | 2025-04-09 14:07:22 +0200 | [diff] [blame^] | 8 | subdir('fru_device') |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 9 | endif |
Chris Sides | 2ab7341 | 2024-10-15 16:04:11 -0500 | [diff] [blame] | 10 | |
| 11 | if get_option('devicetree-vpd') |
| 12 | cpp_args_fd = cpp_args |
| 13 | executable( |
| 14 | 'devicetree-vpd-parser', |
| 15 | 'machine_context.cpp', |
| 16 | 'devicetree_vpd_parser.cpp', |
| 17 | cpp_args: cpp_args_fd, |
Patrick Williams | 37304f0 | 2025-02-01 08:38:32 -0500 | [diff] [blame] | 18 | dependencies: [sdbusplus, phosphor_dbus_interfaces_dep], |
Chris Sides | 2ab7341 | 2024-10-15 16:04:11 -0500 | [diff] [blame] | 19 | install: true, |
| 20 | install_dir: installdir, |
| 21 | ) |
| 22 | endif |