blob: 8ddb21e47b43555e1aa0a487c692b3a51650e5e5 [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',
Brad Bishope45d8c72022-05-25 15:12:53 -04006 'entity_manager.cpp',
7 'expression.cpp',
8 'perform_scan.cpp',
9 'perform_probe.cpp',
10 'overlay.cpp',
11 'utils.cpp',
Brad Bishopb4459912019-11-05 19:39:11 -050012 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',
Brad Bishope45d8c72022-05-25 15:12:53 -040031 'expression.cpp',
32 'fru_device.cpp',
33 'utils.cpp',
34 'fru_utils.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