diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2022-05-10 16:25:02 +0200 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2022-05-10 21:15:22 +0200 |
commit | 226563607ea888c0af49bf3cdc7b3654d6a50089 (patch) | |
tree | 34e9d05cc90314ddfaed0c3f8ab07e0546ac9b57 /src/py | |
parent | c39b52c1840545bf89ff048764a4b550db465624 (diff) |
py: Fix gen-py-control-enums.py reference
Scripts should be referenced using the meson files() directive to ensure
the location is correctly identified with the relevant paths. This
prevents compilation failures if the working directory does not match
the source tree.
Fixes: 6e92cb9dc49e ("py: Generate control enums from yaml")
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/py')
-rw-r--r-- | src/py/libcamera/meson.build | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/py/libcamera/meson.build b/src/py/libcamera/meson.build index 842db1ed..0cd7c75b 100644 --- a/src/py/libcamera/meson.build +++ b/src/py/libcamera/meson.build @@ -22,10 +22,12 @@ gen_input_files = [ 'pyenums_generated.cpp.in', ] +gen_py_control_enums = files('gen-py-control-enums.py') + generated_sources = custom_target('py_gen_controls', input : gen_input_files, output : ['pyenums_generated.cpp'], - command : ['gen-py-control-enums.py', '-o', '@OUTPUT@', '@INPUT@']) + command : [gen_py_control_enums, '-o', '@OUTPUT@', '@INPUT@']) pycamera_sources += generated_sources |