blob: 8a9811bd355a7e6cc7edbfd0aa95e6c02dc4026e [file] [log] [blame]
Brad Bishopb4459912019-11-05 19:39:11 -05001cpp_args = boost_args + ['-DPACKAGE_DIR="' + packagedir + '/"']
2
3executable(
4 'entity-manager',
5 'EntityManager.cpp',
6 'Overlay.cpp',
7 'Utils.cpp',
8 cpp_args: cpp_args + ['-DBOOST_ASIO_DISABLE_THREADS'],
9 dependencies: [
10 boost,
Ed Tanous55ae5a82021-08-02 14:00:02 -070011 nlohmann_json,
Brad Bishopb4459912019-11-05 19:39:11 -050012 sdbusplus,
Brad Bishopff1ddb72020-01-15 12:24:56 -050013 valijson,
Brad Bishopb4459912019-11-05 19:39:11 -050014 ],
15 implicit_include_directories: false,
16 include_directories: '../include',
17 install: true,
18)
19
Brad Bishop92daaaa2020-01-20 15:45:01 -050020if get_option('fru-device')
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030021 cpp_args_fd = cpp_args
22 if get_option('fru-device-resizefru')
23 cpp_args_fd = cpp_args_fd + ['-DENABLE_FRU_AREA_RESIZE']
24 endif
Brad Bishop92daaaa2020-01-20 15:45:01 -050025 executable(
26 'fru-device',
27 'FruDevice.cpp',
28 'Utils.cpp',
Patrick Ventureab296412020-12-30 13:39:37 -080029 'FruUtils.cpp',
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030030 cpp_args: cpp_args_fd,
Brad Bishop92daaaa2020-01-20 15:45:01 -050031 dependencies: [
32 boost,
33 i2c,
Ed Tanous55ae5a82021-08-02 14:00:02 -070034 nlohmann_json,
Brad Bishop92daaaa2020-01-20 15:45:01 -050035 sdbusplus,
36 threads,
37 valijson,
38 ],
39 implicit_include_directories: false,
40 include_directories: '../include',
41 install: true,
42 )
43endif