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