Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 1 | cpp_args = boost_args + ['-DPACKAGE_DIR="' + packagedir + '/"'] |
Andrew Jeffery | a9c5892 | 2021-06-01 09:28:59 +0930 | [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 | |
| 5 | executable( |
| 6 | 'entity-manager', |
Brad Bishop | e45d8c7 | 2022-05-25 15:12:53 -0400 | [diff] [blame] | 7 | 'entity_manager.cpp', |
| 8 | 'expression.cpp', |
| 9 | 'perform_scan.cpp', |
| 10 | 'perform_probe.cpp', |
| 11 | 'overlay.cpp', |
Benjamin Fair | ca2eb04 | 2022-09-13 06:40:42 +0000 | [diff] [blame] | 12 | 'topology.cpp', |
Brad Bishop | e45d8c7 | 2022-05-25 15:12:53 -0400 | [diff] [blame] | 13 | 'utils.cpp', |
Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 14 | cpp_args: cpp_args + ['-DBOOST_ASIO_DISABLE_THREADS'], |
| 15 | dependencies: [ |
| 16 | boost, |
Andrew Jeffery | 14a7bc9 | 2021-08-02 10:01:22 +0930 | [diff] [blame] | 17 | nlohmann_json_dep, |
Alexander Hansen | c3db2c3 | 2024-08-20 15:01:38 +0200 | [diff] [blame] | 18 | phosphor_logging_dep, |
Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 19 | sdbusplus, |
Brad Bishop | ff1ddb7 | 2020-01-15 12:24:56 -0500 | [diff] [blame] | 20 | valijson, |
Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 21 | ], |
Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 22 | install: true, |
Potin Lai | f375fec | 2024-03-21 14:35:45 +0800 | [diff] [blame] | 23 | install_dir: installdir, |
Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 24 | ) |
| 25 | |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 26 | if get_option('fru-device') |
Andrei Kartashev | 6b3d4c5 | 2020-08-10 19:24:17 +0300 | [diff] [blame] | 27 | cpp_args_fd = cpp_args |
| 28 | if get_option('fru-device-resizefru') |
| 29 | cpp_args_fd = cpp_args_fd + ['-DENABLE_FRU_AREA_RESIZE'] |
| 30 | endif |
Vu Pham | dac2dfc | 2024-11-05 12:20:42 -0600 | [diff] [blame^] | 31 | detect_mode = get_option('fru-device-16bitdetectmode') |
| 32 | cpp_args_fd += ['-DFRU_DEVICE_16BITDETECTMODE="' + detect_mode + '"'] |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 33 | executable( |
| 34 | 'fru-device', |
Brad Bishop | e45d8c7 | 2022-05-25 15:12:53 -0400 | [diff] [blame] | 35 | 'expression.cpp', |
| 36 | 'fru_device.cpp', |
| 37 | 'utils.cpp', |
| 38 | 'fru_utils.cpp', |
Zev Weiss | 309c0b1 | 2022-02-25 01:44:12 +0000 | [diff] [blame] | 39 | 'fru_reader.cpp', |
Andrei Kartashev | 6b3d4c5 | 2020-08-10 19:24:17 +0300 | [diff] [blame] | 40 | cpp_args: cpp_args_fd, |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 41 | dependencies: [ |
| 42 | boost, |
| 43 | i2c, |
Andrew Jeffery | 14a7bc9 | 2021-08-02 10:01:22 +0930 | [diff] [blame] | 44 | nlohmann_json_dep, |
Alexander Hansen | c3db2c3 | 2024-08-20 15:01:38 +0200 | [diff] [blame] | 45 | phosphor_logging_dep, |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 46 | sdbusplus, |
| 47 | threads, |
| 48 | valijson, |
| 49 | ], |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 50 | install: true, |
Potin Lai | f375fec | 2024-03-21 14:35:45 +0800 | [diff] [blame] | 51 | install_dir: installdir, |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 52 | ) |
| 53 | endif |
Chris Sides | 2ab7341 | 2024-10-15 16:04:11 -0500 | [diff] [blame] | 54 | |
| 55 | if get_option('devicetree-vpd') |
| 56 | cpp_args_fd = cpp_args |
| 57 | executable( |
| 58 | 'devicetree-vpd-parser', |
| 59 | 'machine_context.cpp', |
| 60 | 'devicetree_vpd_parser.cpp', |
| 61 | cpp_args: cpp_args_fd, |
| 62 | dependencies: [ |
| 63 | sdbusplus, |
| 64 | phosphor_dbus_interfaces_dep, |
| 65 | ], |
| 66 | install: true, |
| 67 | install_dir: installdir, |
| 68 | ) |
| 69 | endif |