blob: d1112ccd63cb473fad86301a94be5d5658dba12e [file] [log] [blame]
Brad Bishopb4459912019-11-05 19:39:11 -05001cpp_args = boost_args + ['-DPACKAGE_DIR="' + packagedir + '/"']
Andrew Jefferya9c58922021-06-01 09:28:59 +09302cpp_args += ['-DSYSCONF_DIR="' + sysconfdir + '/"' ]
Brad Bishopb4459912019-11-05 19:39:11 -05003
4executable(
5 'entity-manager',
6 'EntityManager.cpp',
Andrew Jeffery47af65a2021-12-01 14:16:31 +10307 'PerformScan.cpp',
Andrew Jefferyf07c5ed2021-12-01 14:22:04 +10308 'PerformProbe.cpp',
Brad Bishopb4459912019-11-05 19:39:11 -05009 'Overlay.cpp',
10 'Utils.cpp',
11 cpp_args: cpp_args + ['-DBOOST_ASIO_DISABLE_THREADS'],
12 dependencies: [
13 boost,
Ed Tanous55ae5a82021-08-02 14:00:02 -070014 nlohmann_json,
Brad Bishopb4459912019-11-05 19:39:11 -050015 sdbusplus,
Brad Bishopff1ddb72020-01-15 12:24:56 -050016 valijson,
Brad Bishopb4459912019-11-05 19:39:11 -050017 ],
18 implicit_include_directories: false,
19 include_directories: '../include',
20 install: true,
21)
22
Brad Bishop92daaaa2020-01-20 15:45:01 -050023if get_option('fru-device')
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030024 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 Bishop92daaaa2020-01-20 15:45:01 -050028 executable(
29 'fru-device',
30 'FruDevice.cpp',
31 'Utils.cpp',
Patrick Ventureab296412020-12-30 13:39:37 -080032 'FruUtils.cpp',
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030033 cpp_args: cpp_args_fd,
Brad Bishop92daaaa2020-01-20 15:45:01 -050034 dependencies: [
35 boost,
36 i2c,
Ed Tanous55ae5a82021-08-02 14:00:02 -070037 nlohmann_json,
Brad Bishop92daaaa2020-01-20 15:45:01 -050038 sdbusplus,
39 threads,
40 valijson,
41 ],
42 implicit_include_directories: false,
43 include_directories: '../include',
44 install: true,
45 )
46endif