blob: bab416c1d963038c6fa355acf18eb00c786e706a [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',
Andrew Jeffery47af65a2021-12-01 14:16:31 +10306 'PerformScan.cpp',
Brad Bishopb4459912019-11-05 19:39:11 -05007 'Overlay.cpp',
8 'Utils.cpp',
9 cpp_args: cpp_args + ['-DBOOST_ASIO_DISABLE_THREADS'],
10 dependencies: [
11 boost,
Ed Tanous55ae5a82021-08-02 14:00:02 -070012 nlohmann_json,
Brad Bishopb4459912019-11-05 19:39:11 -050013 sdbusplus,
Brad Bishopff1ddb72020-01-15 12:24:56 -050014 valijson,
Brad Bishopb4459912019-11-05 19:39:11 -050015 ],
16 implicit_include_directories: false,
17 include_directories: '../include',
18 install: true,
19)
20
Brad Bishop92daaaa2020-01-20 15:45:01 -050021if get_option('fru-device')
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030022 cpp_args_fd = cpp_args
23 if get_option('fru-device-resizefru')
24 cpp_args_fd = cpp_args_fd + ['-DENABLE_FRU_AREA_RESIZE']
25 endif
Brad Bishop92daaaa2020-01-20 15:45:01 -050026 executable(
27 'fru-device',
28 'FruDevice.cpp',
29 'Utils.cpp',
Patrick Ventureab296412020-12-30 13:39:37 -080030 'FruUtils.cpp',
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030031 cpp_args: cpp_args_fd,
Brad Bishop92daaaa2020-01-20 15:45:01 -050032 dependencies: [
33 boost,
34 i2c,
Ed Tanous55ae5a82021-08-02 14:00:02 -070035 nlohmann_json,
Brad Bishop92daaaa2020-01-20 15:45:01 -050036 sdbusplus,
37 threads,
38 valijson,
39 ],
40 implicit_include_directories: false,
41 include_directories: '../include',
42 install: true,
43 )
44endif