blob: 07b1dd5a67b1af776650e5a493a1700e7102c634 [file] [log] [blame]
Tony Lee84d430c2019-06-13 15:26:15 +08001project(
2 'phosphor-nvme',
3 'cpp',
4 version: '1.0',
5 default_options: [
6 'cpp_std=c++17',
7 ],
8)
9
10executable(
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
26conf_data = configuration_data()
27conf_data.set('NVME_REQUEST_NAME', '"xyz.openbmc_project.nvme.manager"')
28conf_data.set('NVME_OBJ_PATH_ROOT', '"/xyz/openbmc_project/sensors/temperature"')
29conf_data.set('NVME_OBJ_PATH', '"/xyz/openbmc_project/sensors/temperature/nvme"')
30conf_data.set('DBUS_PROPERTY_IFACE', '"org.freedesktop.DBus.Properties"')
31
32configure_file(output : 'config.h',
33 configuration : conf_data)