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 executable( 32 'fru-device', 33 'expression.cpp', 34 'fru_device.cpp', 35 'utils.cpp', 36 'fru_utils.cpp', 37 'fru_reader.cpp', 38 cpp_args: cpp_args_fd, 39 dependencies: [ 40 boost, 41 i2c, 42 nlohmann_json_dep, 43 phosphor_logging_dep, 44 sdbusplus, 45 threads, 46 valijson, 47 ], 48 install: true, 49 install_dir: installdir, 50 ) 51endif 52 53if get_option('devicetree-vpd') 54 cpp_args_fd = cpp_args 55 executable( 56 'devicetree-vpd-parser', 57 'machine_context.cpp', 58 'devicetree_vpd_parser.cpp', 59 cpp_args: cpp_args_fd, 60 dependencies: [ 61 sdbusplus, 62 phosphor_dbus_interfaces_dep, 63 ], 64 install: true, 65 install_dir: installdir, 66 ) 67endif 68