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', | ||||
9 | '../expression.cpp', | ||||
10 | 'fru_device.cpp', | ||||
11 | '../utils.cpp', | ||||
12 | 'fru_utils.cpp', | ||||
13 | 'fru_reader.cpp', | ||||
14 | cpp_args: cpp_args_fd, | ||||
15 | dependencies: [ | ||||
16 | boost, | ||||
17 | i2c, | ||||
18 | nlohmann_json_dep, | ||||
19 | phosphor_logging_dep, | ||||
20 | sdbusplus, | ||||
21 | threads, | ||||
22 | valijson, | ||||
23 | ], | ||||
24 | install: true, | ||||
25 | install_dir: installdir, | ||||
26 | ) | ||||
27 | |||||
28 |