Move repository to meson
The time has come to move this over to meson as automake is not building
properly with the latest c++ and the OpenBMC project has made it a
requirement that all repos move to meson.
Tested:
- Confirmed p10bmc now builds with appropriate recipe updates on top
of latest sdbusplus bump
Change-Id: I303731f1b5b7c617ecb1140b22bac6dbd27acbc0
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/scripts/meson.build b/scripts/meson.build
new file mode 100644
index 0000000..9b78af1
--- /dev/null
+++ b/scripts/meson.build
@@ -0,0 +1,18 @@
+# Generate Configuration Files from Yaml
+python_exe = find_program('python3', 'python')
+
+invsensor_gen = custom_target(
+ 'invsensor-gen',
+ output: 'inventory-sensor.cpp',
+ input: ['inventory-sensor.py', get_option('invsensor-yaml-gen')],
+ command: [
+ python_exe,
+ '@INPUT0@',
+ '-i',
+ '@INPUT1@',
+ '-o',
+ meson.current_build_dir(),
+ 'generate-cpp',
+ ],
+)
+inventory_gen_src = invsensor_gen