Tony Lee | 84d430c | 2019-06-13 15:26:15 +0800 | [diff] [blame^] | 1 | project( |
| 2 | 'phosphor-nvme', |
| 3 | 'cpp', |
| 4 | version: '1.0', |
| 5 | default_options: [ |
| 6 | 'cpp_std=c++17', |
| 7 | ], |
| 8 | ) |
| 9 | |
| 10 | executable( |
| 11 | 'nvme_main', |
| 12 | [ |
| 13 | 'nvme_main.cpp', |
| 14 | 'nvme_manager.cpp', |
| 15 | ], |
| 16 | dependencies: [ |
| 17 | dependency('phosphor-logging'), |
| 18 | dependency('sdbusplus'), |
| 19 | dependency('phosphor-dbus-interfaces'), |
| 20 | dependency('sdeventplus'), |
| 21 | ], |
| 22 | install: true, |
| 23 | install_dir: get_option('bindir') |
| 24 | ) |
| 25 | |
| 26 | conf_data = configuration_data() |
| 27 | conf_data.set('NVME_REQUEST_NAME', '"xyz.openbmc_project.nvme.manager"') |
| 28 | conf_data.set('NVME_OBJ_PATH_ROOT', '"/xyz/openbmc_project/sensors/temperature"') |
| 29 | conf_data.set('NVME_OBJ_PATH', '"/xyz/openbmc_project/sensors/temperature/nvme"') |
| 30 | conf_data.set('DBUS_PROPERTY_IFACE', '"org.freedesktop.DBus.Properties"') |
| 31 | |
| 32 | configure_file(output : 'config.h', |
| 33 | configuration : conf_data) |