[libcamera-devel] [PATCH v3 01/18] py: meson: use files() for custom_target input files

Kieran Bingham kieran.bingham at ideasonboard.com
Wed May 18 16:07:28 CEST 2022


Quoting Tomi Valkeinen (2022-05-18 14:13:12)
> Use files() for the input files for the custom_target(). I believe the
> current code works, but perhaps it is safer to use files() here.
> 
> Signed-off-by: Tomi Valkeinen <tomi.valkeinen at ideasonboard.com>
> Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> ---
>  src/py/libcamera/meson.build | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/src/py/libcamera/meson.build b/src/py/libcamera/meson.build
> index 2fc2eaec..cd20bb00 100644
> --- a/src/py/libcamera/meson.build
> +++ b/src/py/libcamera/meson.build
> @@ -17,10 +17,10 @@ pycamera_sources = files([
>      'pymain.cpp',
>  ])
>  
> -gen_input_files = [
> -    meson.project_source_root() / 'src' / 'libcamera' / 'control_ids.yaml',
> +gen_input_files = files([
> +    '../../libcamera/control_ids.yaml',

Fine by me, but I wonder if we should set control_ids.yaml in a meson
files() definition in the libcamera tree directly. But it probably only
makes a difference if there's another user of this ...

But - this is probably sufficient for now, as the usage of that to
create the controls is more complex to support multiple headers. No
point changing that for the sake of this.


Reviewed-by: Kieran Bingham <kieran.bingham at ideasonboard.com>

>      'pyenums_generated.cpp.in',
> -]
> +])
>  
>  gen_py_control_enums = files('gen-py-control-enums.py')
>  
> -- 
> 2.34.1
>


More information about the libcamera-devel mailing list