meson: regenerate files when pimgen.py changes
Add appropriate meson custom_target directives so that pimgen.py is
considered a dependency for the custom_target outputs it creates. This
allows easier testing of pimgen.py changes without needing a `clean`.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I1563f01f707a3740e309b169086bac121fecc804
diff --git a/meson.build b/meson.build
index 248ef7f..acb5dbb 100644
--- a/meson.build
+++ b/meson.build
@@ -77,9 +77,10 @@
generated_cpp = custom_target(
'generated.cpp',
+ input: [meson.project_source_root() / 'pimgen.py'],
command: [
prog_python,
- meson.project_source_root() + '/pimgen.py',
+ '@INPUT0@',
'-i',
ifacesdir,
'-d',
@@ -96,9 +97,10 @@
gen_serialization_hpp = custom_target(
'gen_serialization.hpp',
+ input: [meson.project_source_root() / 'pimgen.py'],
command: [
prog_python,
- meson.project_source_root() + '/pimgen.py',
+ '@INPUT0@',
'-i',
ifacesdir,
'-d',