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 + '/"' ] |
Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 3 | |
| 4 | executable( |
| 5 | 'entity-manager', |
Brad Bishop | e45d8c7 | 2022-05-25 15:12:53 -0400 | [diff] [blame] | 6 | 'entity_manager.cpp', |
| 7 | 'expression.cpp', |
| 8 | 'perform_scan.cpp', |
| 9 | 'perform_probe.cpp', |
| 10 | 'overlay.cpp', |
Benjamin Fair | ca2eb04 | 2022-09-13 06:40:42 +0000 | [diff] [blame] | 11 | 'topology.cpp', |
Brad Bishop | e45d8c7 | 2022-05-25 15:12:53 -0400 | [diff] [blame] | 12 | 'utils.cpp', |
Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 13 | cpp_args: cpp_args + ['-DBOOST_ASIO_DISABLE_THREADS'], |
| 14 | dependencies: [ |
| 15 | boost, |
Andrew Jeffery | 14a7bc9 | 2021-08-02 10:01:22 +0930 | [diff] [blame] | 16 | nlohmann_json_dep, |
Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 17 | sdbusplus, |
Brad Bishop | ff1ddb7 | 2020-01-15 12:24:56 -0500 | [diff] [blame] | 18 | valijson, |
Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 19 | ], |
Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 20 | install: true, |
| 21 | ) |
| 22 | |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 23 | if get_option('fru-device') |
Andrei Kartashev | 6b3d4c5 | 2020-08-10 19:24:17 +0300 | [diff] [blame] | 24 | cpp_args_fd = cpp_args |
| 25 | if get_option('fru-device-resizefru') |
| 26 | cpp_args_fd = cpp_args_fd + ['-DENABLE_FRU_AREA_RESIZE'] |
| 27 | endif |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 28 | executable( |
| 29 | 'fru-device', |
Brad Bishop | e45d8c7 | 2022-05-25 15:12:53 -0400 | [diff] [blame] | 30 | 'expression.cpp', |
| 31 | 'fru_device.cpp', |
| 32 | 'utils.cpp', |
| 33 | 'fru_utils.cpp', |
Zev Weiss | 309c0b1 | 2022-02-25 01:44:12 +0000 | [diff] [blame] | 34 | 'fru_reader.cpp', |
Andrei Kartashev | 6b3d4c5 | 2020-08-10 19:24:17 +0300 | [diff] [blame] | 35 | cpp_args: cpp_args_fd, |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 36 | dependencies: [ |
| 37 | boost, |
| 38 | i2c, |
Andrew Jeffery | 14a7bc9 | 2021-08-02 10:01:22 +0930 | [diff] [blame] | 39 | nlohmann_json_dep, |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 40 | sdbusplus, |
| 41 | threads, |
| 42 | valijson, |
| 43 | ], |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 44 | install: true, |
| 45 | ) |
| 46 | endif |