SunnySrivastava1984 | b59fd09 | 2020-02-03 09:58:56 -0600 | [diff] [blame^] | 1 | project('vpd-manager', |
| 2 | 'cpp', |
| 3 | default_options : ['cpp_std=c++17'], |
| 4 | version : '1.0') |
| 5 | sdbusplus = dependency('sdbusplus') |
| 6 | phosphor_logging = dependency('phosphor-logging') |
| 7 | systemd = dependency('libsystemd', version : '>= 221') |
| 8 | phosphor_dbus_interfaces = dependency('phosphor-dbus-interfaces') |
| 9 | |
| 10 | compiler = meson.get_compiler('cpp') |
| 11 | |
| 12 | configure_file( output: 'config.h', |
| 13 | configuration: { |
| 14 | 'BUSNAME' : '"' + get_option('BUSNAME') + '"', |
| 15 | 'OBJPATH' : '"' + get_option('OBJPATH') + '"', |
| 16 | 'IFACE' : '"' + get_option('IFACE') + '"', |
| 17 | } |
| 18 | ) |
| 19 | |
| 20 | configuration_inc = include_directories('.', '../') |
| 21 | |
| 22 | vpd_manager_SOURCES =[ |
| 23 | 'manager_main.cpp', |
| 24 | 'manager.cpp', |
| 25 | 'server.cpp', |
| 26 | 'error.cpp' |
| 27 | ] |
| 28 | |
| 29 | vpd_manager_exe = executable('vpd-manager', |
| 30 | vpd_manager_SOURCES, |
| 31 | include_directories : configuration_inc, |
| 32 | dependencies :[ |
| 33 | sdbusplus, |
| 34 | phosphor_logging, |
| 35 | systemd, |
| 36 | phosphor_dbus_interfaces, |
| 37 | ], |
| 38 | ) |