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