blob: 411f0d4871c0bc9b1d2ee966ced7aa99624487f9 [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 Jefferya05437e2022-04-07 16:17:21 +09307 'Expression.cpp',
Andrew Jeffery47af65a2021-12-01 14:16:31 +10308 'PerformScan.cpp',
Andrew Jefferyf07c5ed2021-12-01 14:22:04 +10309 'PerformProbe.cpp',
Brad Bishopb4459912019-11-05 19:39:11 -050010 'Overlay.cpp',
11 'Utils.cpp',
12 cpp_args: cpp_args + ['-DBOOST_ASIO_DISABLE_THREADS'],
13 dependencies: [
14 boost,
Andrew Jeffery14a7bc92021-08-02 10:01:22 +093015 nlohmann_json_dep,
Brad Bishopb4459912019-11-05 19:39:11 -050016 sdbusplus,
Brad Bishopff1ddb72020-01-15 12:24:56 -050017 valijson,
Brad Bishopb4459912019-11-05 19:39:11 -050018 ],
19 implicit_include_directories: false,
20 include_directories: '../include',
21 install: true,
22)
23
Brad Bishop92daaaa2020-01-20 15:45:01 -050024if get_option('fru-device')
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030025 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 Bishop92daaaa2020-01-20 15:45:01 -050029 executable(
30 'fru-device',
Andrew Jefferya05437e2022-04-07 16:17:21 +093031 'Expression.cpp',
Brad Bishop92daaaa2020-01-20 15:45:01 -050032 'FruDevice.cpp',
33 'Utils.cpp',
Patrick Ventureab296412020-12-30 13:39:37 -080034 'FruUtils.cpp',
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030035 cpp_args: cpp_args_fd,
Brad Bishop92daaaa2020-01-20 15:45:01 -050036 dependencies: [
37 boost,
38 i2c,
Andrew Jeffery14a7bc92021-08-02 10:01:22 +093039 nlohmann_json_dep,
Brad Bishop92daaaa2020-01-20 15:45:01 -050040 sdbusplus,
41 threads,
42 valijson,
43 ],
44 implicit_include_directories: false,
45 include_directories: '../include',
46 install: true,
47 )
48endif