blob: 369948464163988b00dc437e570500eba36fabc6 [file] [log] [blame]
Brad Bishopb4459912019-11-05 19:39:11 -05001cpp_args = boost_args + ['-DPACKAGE_DIR="' + packagedir + '/"']
Patrick Williams37304f02025-02-01 08:38:32 -05002cpp_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',
Christopher Meisbdaa6b22025-04-02 10:49:02 +02008 'configuration.cpp',
Brad Bishope45d8c72022-05-25 15:12:53 -04009 'expression.cpp',
Christopher Meis12bea9b2025-04-03 10:14:42 +020010 'dbus_interface.cpp',
Brad Bishope45d8c72022-05-25 15:12:53 -040011 'perform_scan.cpp',
12 'perform_probe.cpp',
13 'overlay.cpp',
Benjamin Fairca2eb042022-09-13 06:40:42 +000014 'topology.cpp',
Brad Bishope45d8c72022-05-25 15:12:53 -040015 'utils.cpp',
Brad Bishopb4459912019-11-05 19:39:11 -050016 cpp_args: cpp_args + ['-DBOOST_ASIO_DISABLE_THREADS'],
17 dependencies: [
18 boost,
Andrew Jeffery14a7bc92021-08-02 10:01:22 +093019 nlohmann_json_dep,
Alexander Hansenc3db2c32024-08-20 15:01:38 +020020 phosphor_logging_dep,
Brad Bishopb4459912019-11-05 19:39:11 -050021 sdbusplus,
Brad Bishopff1ddb72020-01-15 12:24:56 -050022 valijson,
Brad Bishopb4459912019-11-05 19:39:11 -050023 ],
Brad Bishopb4459912019-11-05 19:39:11 -050024 install: true,
Potin Laif375fec2024-03-21 14:35:45 +080025 install_dir: installdir,
Brad Bishopb4459912019-11-05 19:39:11 -050026)
27
Brad Bishop92daaaa2020-01-20 15:45:01 -050028if get_option('fru-device')
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030029 cpp_args_fd = cpp_args
30 if get_option('fru-device-resizefru')
31 cpp_args_fd = cpp_args_fd + ['-DENABLE_FRU_AREA_RESIZE']
32 endif
Vu Phamdac2dfc2024-11-05 12:20:42 -060033 detect_mode = get_option('fru-device-16bitdetectmode')
34 cpp_args_fd += ['-DFRU_DEVICE_16BITDETECTMODE="' + detect_mode + '"']
Brad Bishop92daaaa2020-01-20 15:45:01 -050035 executable(
36 'fru-device',
Brad Bishope45d8c72022-05-25 15:12:53 -040037 'expression.cpp',
38 'fru_device.cpp',
39 'utils.cpp',
40 'fru_utils.cpp',
Zev Weiss309c0b12022-02-25 01:44:12 +000041 'fru_reader.cpp',
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030042 cpp_args: cpp_args_fd,
Brad Bishop92daaaa2020-01-20 15:45:01 -050043 dependencies: [
44 boost,
45 i2c,
Andrew Jeffery14a7bc92021-08-02 10:01:22 +093046 nlohmann_json_dep,
Alexander Hansenc3db2c32024-08-20 15:01:38 +020047 phosphor_logging_dep,
Brad Bishop92daaaa2020-01-20 15:45:01 -050048 sdbusplus,
49 threads,
50 valijson,
51 ],
Brad Bishop92daaaa2020-01-20 15:45:01 -050052 install: true,
Potin Laif375fec2024-03-21 14:35:45 +080053 install_dir: installdir,
Brad Bishop92daaaa2020-01-20 15:45:01 -050054 )
55endif
Chris Sides2ab73412024-10-15 16:04:11 -050056
57if get_option('devicetree-vpd')
58 cpp_args_fd = cpp_args
59 executable(
60 'devicetree-vpd-parser',
61 'machine_context.cpp',
62 'devicetree_vpd_parser.cpp',
63 cpp_args: cpp_args_fd,
Patrick Williams37304f02025-02-01 08:38:32 -050064 dependencies: [sdbusplus, phosphor_dbus_interfaces_dep],
Chris Sides2ab73412024-10-15 16:04:11 -050065 install: true,
66 install_dir: installdir,
67 )
68endif