| 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') | 
| Naresh Solanki | 89092a9 | 2025-06-02 15:48:04 +0530 | [diff] [blame] | 6 |  | 
 | 7 | cpp_args_fd += [ | 
 | 8 |     '-DFRU_DEVICE_16BITDETECTMODE="' + detect_mode + '"', | 
 | 9 |     '-DENABLE_FRU_UPDATE_PROPERTY=' + (get_option('fru-device-update-property') == 'all' ? '1' : '0'), | 
 | 10 | ] | 
 | 11 |  | 
| Christopher Meis | 3cbff97 | 2025-04-09 14:07:22 +0200 | [diff] [blame] | 12 | executable( | 
 | 13 |     'fru-device', | 
| Christopher Meis | 3cbff97 | 2025-04-09 14:07:22 +0200 | [diff] [blame] | 14 |     'fru_device.cpp', | 
 | 15 |     '../utils.cpp', | 
| Christopher Meis | 3cbff97 | 2025-04-09 14:07:22 +0200 | [diff] [blame] | 16 |     'fru_reader.cpp', | 
| Ed Tanous | 10c5765 | 2025-09-30 10:24:57 -0700 | [diff] [blame] | 17 |     'fru_utils.cpp', | 
 | 18 |     'gzip_utils.cpp', | 
| Christopher Meis | 3cbff97 | 2025-04-09 14:07:22 +0200 | [diff] [blame] | 19 |     cpp_args: cpp_args_fd, | 
 | 20 |     dependencies: [ | 
 | 21 |         boost, | 
 | 22 |         i2c, | 
| Ed Tanous | 10c5765 | 2025-09-30 10:24:57 -0700 | [diff] [blame] | 23 |         libxml2_dep, | 
| Christopher Meis | 3cbff97 | 2025-04-09 14:07:22 +0200 | [diff] [blame] | 24 |         nlohmann_json_dep, | 
 | 25 |         phosphor_logging_dep, | 
 | 26 |         sdbusplus, | 
 | 27 |         threads, | 
 | 28 |         valijson, | 
| Ed Tanous | 10c5765 | 2025-09-30 10:24:57 -0700 | [diff] [blame] | 29 |         zlib_dep, | 
| Christopher Meis | 3cbff97 | 2025-04-09 14:07:22 +0200 | [diff] [blame] | 30 |     ], | 
 | 31 |     install: true, | 
 | 32 |     install_dir: installdir, | 
 | 33 | ) | 
 | 34 |  | 
 | 35 |  |