mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-19 10:25:05 +03:00
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: 6e92cb9dc4
("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>
This commit is contained in:
parent
c39b52c184
commit
226563607e
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue