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', |
| 6 | 'EntityManager.cpp', |
Andrew Jeffery | a05437e | 2022-04-07 16:17:21 +0930 | [diff] [blame] | 7 | 'Expression.cpp', |
Andrew Jeffery | 47af65a | 2021-12-01 14:16:31 +1030 | [diff] [blame] | 8 | 'PerformScan.cpp', |
Andrew Jeffery | f07c5ed | 2021-12-01 14:22:04 +1030 | [diff] [blame] | 9 | 'PerformProbe.cpp', |
Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 10 | 'Overlay.cpp', |
| 11 | 'Utils.cpp', |
| 12 | cpp_args: cpp_args + ['-DBOOST_ASIO_DISABLE_THREADS'], |
| 13 | dependencies: [ |
| 14 | boost, |
Andrew Jeffery | 14a7bc9 | 2021-08-02 10:01:22 +0930 | [diff] [blame^] | 15 | nlohmann_json_dep, |
Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 16 | sdbusplus, |
Brad Bishop | ff1ddb7 | 2020-01-15 12:24:56 -0500 | [diff] [blame] | 17 | valijson, |
Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 18 | ], |
| 19 | implicit_include_directories: false, |
| 20 | include_directories: '../include', |
| 21 | install: true, |
| 22 | ) |
| 23 | |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 24 | if get_option('fru-device') |
Andrei Kartashev | 6b3d4c5 | 2020-08-10 19:24:17 +0300 | [diff] [blame] | 25 | cpp_args_fd = cpp_args |
| 26 | if get_option('fru-device-resizefru') |
| 27 | cpp_args_fd = cpp_args_fd + ['-DENABLE_FRU_AREA_RESIZE'] |
| 28 | endif |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 29 | executable( |
| 30 | 'fru-device', |
Andrew Jeffery | a05437e | 2022-04-07 16:17:21 +0930 | [diff] [blame] | 31 | 'Expression.cpp', |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 32 | 'FruDevice.cpp', |
| 33 | 'Utils.cpp', |
Patrick Venture | ab29641 | 2020-12-30 13:39:37 -0800 | [diff] [blame] | 34 | 'FruUtils.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 | ], |
| 44 | implicit_include_directories: false, |
| 45 | include_directories: '../include', |
| 46 | install: true, |
| 47 | ) |
| 48 | endif |