blob: 6565efc56daab3ade3a0f5c4953b13d4cb3acd07 [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,
Alexander Hansenc3db2c32024-08-20 15:01:38 +020018 phosphor_logging_dep,
Brad Bishopb4459912019-11-05 19:39:11 -050019 sdbusplus,
Brad Bishopff1ddb72020-01-15 12:24:56 -050020 valijson,
Brad Bishopb4459912019-11-05 19:39:11 -050021 ],
Brad Bishopb4459912019-11-05 19:39:11 -050022 install: true,
Potin Laif375fec2024-03-21 14:35:45 +080023 install_dir: installdir,
Brad Bishopb4459912019-11-05 19:39:11 -050024)
25
Brad Bishop92daaaa2020-01-20 15:45:01 -050026if get_option('fru-device')
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030027 cpp_args_fd = cpp_args
28 if get_option('fru-device-resizefru')
29 cpp_args_fd = cpp_args_fd + ['-DENABLE_FRU_AREA_RESIZE']
30 endif
Brad Bishop92daaaa2020-01-20 15:45:01 -050031 executable(
32 'fru-device',
Brad Bishope45d8c72022-05-25 15:12:53 -040033 'expression.cpp',
34 'fru_device.cpp',
35 'utils.cpp',
36 'fru_utils.cpp',
Zev Weiss309c0b12022-02-25 01:44:12 +000037 'fru_reader.cpp',
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030038 cpp_args: cpp_args_fd,
Brad Bishop92daaaa2020-01-20 15:45:01 -050039 dependencies: [
40 boost,
41 i2c,
Andrew Jeffery14a7bc92021-08-02 10:01:22 +093042 nlohmann_json_dep,
Alexander Hansenc3db2c32024-08-20 15:01:38 +020043 phosphor_logging_dep,
Brad Bishop92daaaa2020-01-20 15:45:01 -050044 sdbusplus,
45 threads,
46 valijson,
47 ],
Brad Bishop92daaaa2020-01-20 15:45:01 -050048 install: true,
Potin Laif375fec2024-03-21 14:35:45 +080049 install_dir: installdir,
Brad Bishop92daaaa2020-01-20 15:45:01 -050050 )
51endif