Enable Meson option to build parser and test cases
Meson script to build parser and test cases.
It will replace the use of auto tools to
build the code.
- Steps to build
In the directory, where you have meson.build file
execute the following commands.
meson -Doption=value builddir
<This will create a builddir>
ninja -C builddir
<Creates EXE>
ninja -C builddir test
<Executes unit tests>
Change-Id: Ic351daf2c135b06e1b04048a4a6ad8d9897fba54
Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
diff --git a/meson_options.txt b/meson_options.txt
new file mode 100644
index 0000000..f198832
--- /dev/null
+++ b/meson_options.txt
@@ -0,0 +1,6 @@
+option('oe-sdk', type: 'feature', description: 'ENABLE OE SDK FOR OPENPOWER VPD PARSER')
+option('tests', type: 'feature', value : 'enabled', description: 'Build tests')
+option('FRU_YAML',type: 'string', value: 'writefru.yaml', description: 'YAML STRING')
+option('PROP_YAML',type: 'string', value: 'extra-properties-example.yaml', description: 'YAML PROPERTY')
+option('ibm-parser', type: 'feature', description: 'ENABLE IBM PARSER')
+option('INVENTORY_JSON',type: 'string', value: '/usr/share/vpd/vpd_inventory.json', description: 'JSON file that defines inventory blueprint')