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 |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 31 | executable( |
| 32 | 'fru-device', |
Brad Bishop | e45d8c7 | 2022-05-25 15:12:53 -0400 | [diff] [blame] | 33 | 'expression.cpp', |
| 34 | 'fru_device.cpp', |
| 35 | 'utils.cpp', |
| 36 | 'fru_utils.cpp', |
Zev Weiss | 309c0b1 | 2022-02-25 01:44:12 +0000 | [diff] [blame] | 37 | 'fru_reader.cpp', |
Andrei Kartashev | 6b3d4c5 | 2020-08-10 19:24:17 +0300 | [diff] [blame] | 38 | cpp_args: cpp_args_fd, |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 39 | dependencies: [ |
| 40 | boost, |
| 41 | i2c, |
Andrew Jeffery | 14a7bc9 | 2021-08-02 10:01:22 +0930 | [diff] [blame] | 42 | nlohmann_json_dep, |
Alexander Hansen | c3db2c3 | 2024-08-20 15:01:38 +0200 | [diff] [blame] | 43 | phosphor_logging_dep, |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 44 | sdbusplus, |
| 45 | threads, |
| 46 | valijson, |
| 47 | ], |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 48 | install: true, |
Potin Lai | f375fec | 2024-03-21 14:35:45 +0800 | [diff] [blame] | 49 | install_dir: installdir, |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 50 | ) |
| 51 | endif |