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 | 47af65a | 2021-12-01 14:16:31 +1030 | [diff] [blame] | 7 | 'PerformScan.cpp', |
Andrew Jeffery | f07c5ed | 2021-12-01 14:22:04 +1030 | [diff] [blame] | 8 | 'PerformProbe.cpp', |
Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 9 | 'Overlay.cpp', |
| 10 | 'Utils.cpp', |
| 11 | cpp_args: cpp_args + ['-DBOOST_ASIO_DISABLE_THREADS'], |
| 12 | dependencies: [ |
| 13 | boost, |
Ed Tanous | 55ae5a8 | 2021-08-02 14:00:02 -0700 | [diff] [blame] | 14 | nlohmann_json, |
Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 15 | sdbusplus, |
Brad Bishop | ff1ddb7 | 2020-01-15 12:24:56 -0500 | [diff] [blame] | 16 | valijson, |
Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 17 | ], |
| 18 | implicit_include_directories: false, |
| 19 | include_directories: '../include', |
| 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', |
| 30 | 'FruDevice.cpp', |
| 31 | 'Utils.cpp', |
Patrick Venture | ab29641 | 2020-12-30 13:39:37 -0800 | [diff] [blame] | 32 | 'FruUtils.cpp', |
Andrei Kartashev | 6b3d4c5 | 2020-08-10 19:24:17 +0300 | [diff] [blame] | 33 | cpp_args: cpp_args_fd, |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 34 | dependencies: [ |
| 35 | boost, |
| 36 | i2c, |
Ed Tanous | 55ae5a8 | 2021-08-02 14:00:02 -0700 | [diff] [blame] | 37 | nlohmann_json, |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 38 | sdbusplus, |
| 39 | threads, |
| 40 | valijson, |
| 41 | ], |
| 42 | implicit_include_directories: false, |
| 43 | include_directories: '../include', |
| 44 | install: true, |
| 45 | ) |
| 46 | endif |