1cpp_args = boost_args + ['-DPACKAGE_DIR="' + packagedir + '/"'] 2cpp_args += ['-DSYSCONF_DIR="' + sysconfdir + '/"'] 3installdir = join_paths(get_option('libexecdir'), 'entity-manager') 4 5executable( 6 'entity-manager', 7 'entity_manager.cpp', 8 'expression.cpp', 9 'perform_scan.cpp', 10 'perform_probe.cpp', 11 'overlay.cpp', 12 'topology.cpp', 13 'utils.cpp', 14 cpp_args: cpp_args + ['-DBOOST_ASIO_DISABLE_THREADS'], 15 dependencies: [ 16 boost, 17 nlohmann_json_dep, 18 phosphor_logging_dep, 19 sdbusplus, 20 valijson, 21 ], 22 install: true, 23 install_dir: installdir, 24) 25 26if get_option('fru-device') 27 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 31 detect_mode = get_option('fru-device-16bitdetectmode') 32 cpp_args_fd += ['-DFRU_DEVICE_16BITDETECTMODE="' + detect_mode + '"'] 33 executable( 34 'fru-device', 35 'expression.cpp', 36 'fru_device.cpp', 37 'utils.cpp', 38 'fru_utils.cpp', 39 'fru_reader.cpp', 40 cpp_args: cpp_args_fd, 41 dependencies: [ 42 boost, 43 i2c, 44 nlohmann_json_dep, 45 phosphor_logging_dep, 46 sdbusplus, 47 threads, 48 valijson, 49 ], 50 install: true, 51 install_dir: installdir, 52 ) 53endif 54 55if get_option('devicetree-vpd') 56 cpp_args_fd = cpp_args 57 executable( 58 'devicetree-vpd-parser', 59 'machine_context.cpp', 60 'devicetree_vpd_parser.cpp', 61 cpp_args: cpp_args_fd, 62 dependencies: [sdbusplus, phosphor_dbus_interfaces_dep], 63 install: true, 64 install_dir: installdir, 65 ) 66endif 67