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') |
SunnySrivastava1984 | de3c60d | 2020-02-03 10:34:33 -0600 | [diff] [blame] | 11 | compiler.has_header('nlohmann/json.hpp') |
SunnySrivastava1984 | b59fd09 | 2020-02-03 09:58:56 -0600 | [diff] [blame] | 12 | |
| 13 | configure_file( output: 'config.h', |
| 14 | configuration: { |
| 15 | 'BUSNAME' : '"' + get_option('BUSNAME') + '"', |
| 16 | 'OBJPATH' : '"' + get_option('OBJPATH') + '"', |
| 17 | 'IFACE' : '"' + get_option('IFACE') + '"', |
SunnySrivastava1984 | de3c60d | 2020-02-03 10:34:33 -0600 | [diff] [blame] | 18 | 'INVENTORY_JSON' : '"' + get_option('INVENTORY_JSON') + '"' |
SunnySrivastava1984 | b59fd09 | 2020-02-03 09:58:56 -0600 | [diff] [blame] | 19 | } |
| 20 | ) |
| 21 | |
| 22 | configuration_inc = include_directories('.', '../') |
| 23 | |
| 24 | vpd_manager_SOURCES =[ |
| 25 | 'manager_main.cpp', |
| 26 | 'manager.cpp', |
| 27 | 'server.cpp', |
SunnySrivastava1984 | 19be6d3 | 2020-03-03 07:21:45 -0600 | [diff] [blame^] | 28 | 'error.cpp', |
| 29 | '../impl.cpp' |
SunnySrivastava1984 | b59fd09 | 2020-02-03 09:58:56 -0600 | [diff] [blame] | 30 | ] |
| 31 | |
| 32 | vpd_manager_exe = executable('vpd-manager', |
| 33 | vpd_manager_SOURCES, |
| 34 | include_directories : configuration_inc, |
| 35 | dependencies :[ |
| 36 | sdbusplus, |
| 37 | phosphor_logging, |
| 38 | systemd, |
| 39 | phosphor_dbus_interfaces, |
| 40 | ], |
| 41 | ) |