pseq: Create standalone config file parser
Create a standalone JSON configuration file parser for the
phosphor-power-sequencer application. Support the new config file
properties in the parser.
Separating the config file parser from the rest of the code makes it
easier to implement and test.
Create automated test cases to verify the parser functions.
Change-Id: Ia753ffadf395359899964a612e479b00377ad495
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
diff --git a/phosphor-power-sequencer/src/meson.build b/phosphor-power-sequencer/src/meson.build
index de691c9..faab116 100644
--- a/phosphor-power-sequencer/src/meson.build
+++ b/phosphor-power-sequencer/src/meson.build
@@ -3,6 +3,18 @@
'../..'
)
+phosphor_power_sequencer_library = static_library(
+ 'phosphor-power-sequencer',
+ 'config_file_parser.cpp',
+ implicit_include_directories: false,
+ dependencies: [
+ nlohmann_json_dep
+ ],
+ include_directories: [
+ phosphor_power_sequencer_include_directories
+ ]
+)
+
phosphor_power_sequencer = executable(
'phosphor-power-control',
'power_control_main.cpp',