blob: 1fe9b086176e6f972b46f0bb97f859f124d4f0eb [file] [log] [blame]
Alexander Hansen7f51d322025-06-25 12:26:09 +02001cpp_args_em = cpp_args + ['-DBOOST_ASIO_DISABLE_THREADS']
2
3if get_option('runtime-validate-json')
4 cpp_args_em += ['-DENABLE_RUNTIME_VALIDATE_JSON=true']
5else
6 cpp_args_em += ['-DENABLE_RUNTIME_VALIDATE_JSON=false']
7endif
8
Alexander Hansene6651852025-01-21 16:22:05 +01009allowed = get_option('new-device-detection')
10cpp_args_em += '-DEM_CACHE_CONFIGURATION=' + allowed.to_string()
11
Alexander Hansene3043b22025-06-27 16:27:35 +020012em_deps = [boost, nlohmann_json_dep, phosphor_logging_dep, sdbusplus, valijson]
13
14entity_manager_lib = static_library(
Christopher Meisfc9e7fd2025-04-03 13:13:35 +020015 'entity-manager',
16 'entity_manager.cpp',
17 'configuration.cpp',
Christopher Meis59ef1e72025-04-16 08:53:25 +020018 'expression.cpp',
Christopher Meisfc9e7fd2025-04-03 13:13:35 +020019 'dbus_interface.cpp',
20 'perform_scan.cpp',
21 'perform_probe.cpp',
Alexander Hansen8c99fcf2025-07-24 12:27:05 +020022 'power_status_monitor.cpp',
Christopher Meisfc9e7fd2025-04-03 13:13:35 +020023 'overlay.cpp',
24 'topology.cpp',
Christopher Meis59ef1e72025-04-16 08:53:25 +020025 'utils.cpp',
Alexander Hansenf57a2592025-06-27 15:07:07 +020026 'log_device_inventory.cpp',
Christopher Meisfc9e7fd2025-04-03 13:13:35 +020027 '../utils.cpp',
Alexander Hansene3043b22025-06-27 16:27:35 +020028 cpp_args: cpp_args_em,
29 dependencies: em_deps,
30)
31
32executable(
33 'entity-manager',
Alexander Hansen44c90252025-06-27 15:17:42 +020034 'main.cpp',
Alexander Hansen7f51d322025-06-25 12:26:09 +020035 cpp_args: cpp_args_em,
Alexander Hansene3043b22025-06-27 16:27:35 +020036 dependencies: em_deps,
37 link_with: entity_manager_lib,
Christopher Meisfc9e7fd2025-04-03 13:13:35 +020038 install: true,
39 install_dir: installdir,
40)
41