[libcamera-devel] [PATCH v2 2/5] meson: ipa: Use files() to locate the mojom files

Laurent Pinchart laurent.pinchart at ideasonboard.com
Tue May 25 12:15:35 CEST 2021


Hi Paul,

Thank you for the patch.

On Tue, May 25, 2021 at 06:52:15PM +0900, Paul Elder wrote:
> Use meson's files() to list the mojom files instead of the file names
> directly. This is so that we can still access the files from
> src/libcamera/ipa/meson.build later for building documentation cpp
> files from the mojom files.
> 
> Signed-off-by: Paul Elder <paul.elder at ideasonboard.com>
> 
> ---
> Changes in v2:
> - simplify the conversion
> ---
>  include/libcamera/ipa/meson.build | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/include/libcamera/ipa/meson.build b/include/libcamera/ipa/meson.build
> index eca4e9ee..729483ab 100644
> --- a/include/libcamera/ipa/meson.build
> +++ b/include/libcamera/ipa/meson.build
> @@ -81,7 +81,7 @@ foreach file : ipa_mojom_files
>      endif
>  
>      # {pipeline}.mojom-module
> -    mojom = custom_target(file.split('.')[0] + '_mojom_module',
> +    mojom = custom_target(name + '_mojom_module',

A bit of a drive-by fix ? You may want to mention it in the commit
message.

Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>

>                            input : file,
>                            output : file + '-module',
>                            depends : ipa_mojom_core,
> @@ -143,3 +143,5 @@ foreach file : ipa_mojom_files
>  
>      libcamera_generated_ipa_headers += [header, serializer, proxy_header]
>  endforeach
> +
> +ipa_mojom_files = files(ipa_mojom_files)

-- 
Regards,

Laurent Pinchart


More information about the libcamera-devel mailing list