1cpp_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 9allowed = get_option('new-device-detection') 10cpp_args_em += '-DEM_CACHE_CONFIGURATION=' + allowed.to_string() 11 12em_deps = [boost, nlohmann_json_dep, phosphor_logging_dep, sdbusplus, valijson] 13 14entity_manager_lib = static_library( 15 'entity-manager', 16 'entity_manager.cpp', 17 'configuration.cpp', 18 'expression.cpp', 19 'dbus_interface.cpp', 20 'perform_scan.cpp', 21 'perform_probe.cpp', 22 'power_status_monitor.cpp', 23 'overlay.cpp', 24 'topology.cpp', 25 'utils.cpp', 26 'log_device_inventory.cpp', 27 '../utils.cpp', 28 cpp_args: cpp_args_em, 29 dependencies: em_deps, 30) 31 32executable( 33 'entity-manager', 34 'main.cpp', 35 cpp_args: cpp_args_em, 36 dependencies: em_deps, 37 link_with: entity_manager_lib, 38 install: true, 39 install_dir: installdir, 40) 41 42