sdbus++: create script to generate all files from a dir
Meson doesn't handle generating code in the style that sdbus++
has, so we're going to need a script of some part as a helper.
Create a script that can generate all sdbus++ parts by looking
at a directory for YAML files.
phosphor-dbus-interfaces has similar scripts already that generate
autotools makefiles[1] and gnome has scripts like this to workaround
meson limitations[2]. Having sdbusplus provide this will hopefully
reduce duplication for other repositories.
1. https://github.com/openbmc/phosphor-dbus-interfaces/blob/5fd7574b59acfce023b892a995e0c87b13c5ab4c/generate_makefile.sh
2. https://github.com/gtkd-developers/GlibD/blob/b09fb1411378b98c3c035038863c5def6a4a0774/meson.build#L32
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ifd3cc04a10937c06dc20fe3d447a54e6f45b672a
diff --git a/tools/setup.py b/tools/setup.py
index 6e5357d..5404d7b 100755
--- a/tools/setup.py
+++ b/tools/setup.py
@@ -6,7 +6,7 @@
version="1.0",
packages=find_packages(),
install_requires=["inflection", "mako", "pyyaml"],
- scripts=["sdbus++"],
+ scripts=["sdbus++", "sdbus++-gendir"],
package_data={"sdbusplus": ["templates/*.mako.*"]},
url="http://github.com/openbmc/sdbusplus",
classifiers=["License :: OSI Approved :: Apache Software License"],