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 sdbusplus, 19 valijson, 20 ], 21 install: true, 22 install_dir: installdir, 23) 24 25if get_option('fru-device') 26 cpp_args_fd = cpp_args 27 if get_option('fru-device-resizefru') 28 cpp_args_fd = cpp_args_fd + ['-DENABLE_FRU_AREA_RESIZE'] 29 endif 30 executable( 31 'fru-device', 32 'expression.cpp', 33 'fru_device.cpp', 34 'utils.cpp', 35 'fru_utils.cpp', 36 'fru_reader.cpp', 37 cpp_args: cpp_args_fd, 38 dependencies: [ 39 boost, 40 i2c, 41 nlohmann_json_dep, 42 sdbusplus, 43 threads, 44 valijson, 45 ], 46 install: true, 47 install_dir: installdir, 48 ) 49endif 50