blob: 248404cc5c95fdbbb1eb33681ad10b4006f89105 [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 + '/"' ]
Potin Laif375fec2024-03-21 14:35:45 +08003installdir = join_paths(get_option('libexecdir'), 'entity-manager')
Brad Bishopb4459912019-11-05 19:39:11 -05004
5executable(
6 'entity-manager',
Brad Bishope45d8c72022-05-25 15:12:53 -04007 'entity_manager.cpp',
8 'expression.cpp',
9 'perform_scan.cpp',
10 'perform_probe.cpp',
11 'overlay.cpp',
Benjamin Fairca2eb042022-09-13 06:40:42 +000012 'topology.cpp',
Brad Bishope45d8c72022-05-25 15:12:53 -040013 'utils.cpp',
Brad Bishopb4459912019-11-05 19:39:11 -050014 cpp_args: cpp_args + ['-DBOOST_ASIO_DISABLE_THREADS'],
15 dependencies: [
16 boost,
Andrew Jeffery14a7bc92021-08-02 10:01:22 +093017 nlohmann_json_dep,
Brad Bishopb4459912019-11-05 19:39:11 -050018 sdbusplus,
Brad Bishopff1ddb72020-01-15 12:24:56 -050019 valijson,
Brad Bishopb4459912019-11-05 19:39:11 -050020 ],
Brad Bishopb4459912019-11-05 19:39:11 -050021 install: true,
Potin Laif375fec2024-03-21 14:35:45 +080022 install_dir: installdir,
Brad Bishopb4459912019-11-05 19:39:11 -050023)
24
Brad Bishop92daaaa2020-01-20 15:45:01 -050025if get_option('fru-device')
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030026 cpp_args_fd = cpp_args
27 if get_option('fru-device-resizefru')
28 cpp_args_fd = cpp_args_fd + ['-DENABLE_FRU_AREA_RESIZE']
29 endif
Brad Bishop92daaaa2020-01-20 15:45:01 -050030 executable(
31 'fru-device',
Brad Bishope45d8c72022-05-25 15:12:53 -040032 'expression.cpp',
33 'fru_device.cpp',
34 'utils.cpp',
35 'fru_utils.cpp',
Zev Weiss309c0b12022-02-25 01:44:12 +000036 'fru_reader.cpp',
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030037 cpp_args: cpp_args_fd,
Brad Bishop92daaaa2020-01-20 15:45:01 -050038 dependencies: [
39 boost,
40 i2c,
Andrew Jeffery14a7bc92021-08-02 10:01:22 +093041 nlohmann_json_dep,
Brad Bishop92daaaa2020-01-20 15:45:01 -050042 sdbusplus,
43 threads,
44 valijson,
45 ],
Brad Bishop92daaaa2020-01-20 15:45:01 -050046 install: true,
Potin Laif375fec2024-03-21 14:35:45 +080047 install_dir: installdir,
Brad Bishop92daaaa2020-01-20 15:45:01 -050048 )
49endif