Christopher Meis | 3cbff97 | 2025-04-09 14:07:22 +0200 | [diff] [blame] | 1 | cpp_args_fd = cpp_args |
| 2 | if get_option('fru-device-resizefru') |
| 3 | cpp_args_fd = cpp_args_fd + ['-DENABLE_FRU_AREA_RESIZE'] |
| 4 | endif |
| 5 | detect_mode = get_option('fru-device-16bitdetectmode') |
| 6 | cpp_args_fd += ['-DFRU_DEVICE_16BITDETECTMODE="' + detect_mode + '"'] |
| 7 | executable( |
| 8 | 'fru-device', |
Christopher Meis | 3cbff97 | 2025-04-09 14:07:22 +0200 | [diff] [blame] | 9 | 'fru_device.cpp', |
| 10 | '../utils.cpp', |
| 11 | 'fru_utils.cpp', |
| 12 | 'fru_reader.cpp', |
| 13 | cpp_args: cpp_args_fd, |
| 14 | dependencies: [ |
| 15 | boost, |
| 16 | i2c, |
| 17 | nlohmann_json_dep, |
| 18 | phosphor_logging_dep, |
| 19 | sdbusplus, |
| 20 | threads, |
| 21 | valijson, |
| 22 | ], |
| 23 | install: true, |
| 24 | install_dir: installdir, |
| 25 | ) |
| 26 | |
| 27 | |