JSON parser for VPD manager app
This commit implements a parser which parse and store vpd JSON at the
launch of the application.
An applicatin specific parser is required to support write keyword
functionality as reverse mapping of JSON items is required.
In this case the user passes an invetory path and EEPROM VPD for that
inventory path needs to be extracted.
Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
Change-Id: I7f91b45982c59dfb0d36fe8e80ebd7373a93f147
diff --git a/vpd-manager/meson.build b/vpd-manager/meson.build
index a879b2b..0b655fd 100644
--- a/vpd-manager/meson.build
+++ b/vpd-manager/meson.build
@@ -8,12 +8,14 @@
phosphor_dbus_interfaces = dependency('phosphor-dbus-interfaces')
compiler = meson.get_compiler('cpp')
+compiler.has_header('nlohmann/json.hpp')
configure_file( output: 'config.h',
configuration: {
'BUSNAME' : '"' + get_option('BUSNAME') + '"',
'OBJPATH' : '"' + get_option('OBJPATH') + '"',
'IFACE' : '"' + get_option('IFACE') + '"',
+ 'INVENTORY_JSON' : '"' + get_option('INVENTORY_JSON') + '"'
}
)