blob: 0ea941aefd2fc1dae8491125c4813327266100d9 [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 Hansene3043b22025-06-27 16:27:35 +02009em_deps = [boost, nlohmann_json_dep, phosphor_logging_dep, sdbusplus, valijson]
10
11entity_manager_lib = static_library(
Christopher Meisfc9e7fd2025-04-03 13:13:35 +020012 'entity-manager',
13 'entity_manager.cpp',
14 'configuration.cpp',
Christopher Meis59ef1e72025-04-16 08:53:25 +020015 'expression.cpp',
Christopher Meisfc9e7fd2025-04-03 13:13:35 +020016 'dbus_interface.cpp',
17 'perform_scan.cpp',
18 'perform_probe.cpp',
Alexander Hansen8c99fcf2025-07-24 12:27:05 +020019 'power_status_monitor.cpp',
Christopher Meisfc9e7fd2025-04-03 13:13:35 +020020 'overlay.cpp',
21 'topology.cpp',
Christopher Meis59ef1e72025-04-16 08:53:25 +020022 'utils.cpp',
Alexander Hansenf57a2592025-06-27 15:07:07 +020023 'log_device_inventory.cpp',
Christopher Meisfc9e7fd2025-04-03 13:13:35 +020024 '../utils.cpp',
Alexander Hansene3043b22025-06-27 16:27:35 +020025 cpp_args: cpp_args_em,
26 dependencies: em_deps,
27)
28
29executable(
30 'entity-manager',
Alexander Hansen44c90252025-06-27 15:17:42 +020031 'main.cpp',
Alexander Hansen7f51d322025-06-25 12:26:09 +020032 cpp_args: cpp_args_em,
Alexander Hansene3043b22025-06-27 16:27:35 +020033 dependencies: em_deps,
34 link_with: entity_manager_lib,
Christopher Meisfc9e7fd2025-04-03 13:13:35 +020035 install: true,
36 install_dir: installdir,
37)
38