scripts: auto-generate list of schemas
Since the list of schemas is growing and we already have a directory, it
does not need to be updated manually. Make a script for it and check
that that's been done in CI.
Tested: Using 'meson install', check that schemas are installed like
before.
Script works and updates the files as expected.
Change-Id: Ia1b3d99890477c4077e8e3a52a5338805d810440
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/meson.build b/meson.build
index ffef7c8..17671a3 100644
--- a/meson.build
+++ b/meson.build
@@ -92,23 +92,8 @@
)
endif
-schemas = [
- 'cpld.json',
- 'global.json',
- 'gpio_presence.json',
- 'legacy.json',
- 'openbmc-dbus.json',
- 'ibm.json',
- 'intel.json',
- 'mctp.json',
- 'pid.json',
- 'pid_zone.json',
- 'stepwise.json',
- 'virtual_sensor.json',
- 'satellite_controller.json',
- 'leak_detector.json',
- 'firmware.json',
-]
+# this creates the 'schemas' variable
+subdir('schemas')
foreach s : schemas
install_data(