blob: 5add4001b29048aee9b18cf90facb5af4ddea30e [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',
Andrew Jefferyf07c5ed2021-12-01 14:22:04 +10307 'PerformProbe.cpp',
Brad Bishopb4459912019-11-05 19:39:11 -05008 'Overlay.cpp',
9 'Utils.cpp',
10 cpp_args: cpp_args + ['-DBOOST_ASIO_DISABLE_THREADS'],
11 dependencies: [
12 boost,
Ed Tanous55ae5a82021-08-02 14:00:02 -070013 nlohmann_json,
Brad Bishopb4459912019-11-05 19:39:11 -050014 sdbusplus,
Brad Bishopff1ddb72020-01-15 12:24:56 -050015 valijson,
Brad Bishopb4459912019-11-05 19:39:11 -050016 ],
17 implicit_include_directories: false,
18 include_directories: '../include',
19 install: true,
20)
21
Brad Bishop92daaaa2020-01-20 15:45:01 -050022if get_option('fru-device')
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030023 cpp_args_fd = cpp_args
24 if get_option('fru-device-resizefru')
25 cpp_args_fd = cpp_args_fd + ['-DENABLE_FRU_AREA_RESIZE']
26 endif
Brad Bishop92daaaa2020-01-20 15:45:01 -050027 executable(
28 'fru-device',
29 'FruDevice.cpp',
30 'Utils.cpp',
Patrick Ventureab296412020-12-30 13:39:37 -080031 'FruUtils.cpp',
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030032 cpp_args: cpp_args_fd,
Brad Bishop92daaaa2020-01-20 15:45:01 -050033 dependencies: [
34 boost,
35 i2c,
Ed Tanous55ae5a82021-08-02 14:00:02 -070036 nlohmann_json,
Brad Bishop92daaaa2020-01-20 15:45:01 -050037 sdbusplus,
38 threads,
39 valijson,
40 ],
41 implicit_include_directories: false,
42 include_directories: '../include',
43 install: true,
44 )
45endif