[libcamera-devel] [RFC PATCH 2/8] src: meson: Re-order subdir layout

Jacopo Mondi jacopo at jmondi.org
Tue Nov 24 21:56:37 CET 2020


Hi Kieran,

On Mon, Nov 23, 2020 at 04:43:13PM +0000, Kieran Bingham wrote:
> Move the android subdir below the configuration options to keep all
> subdirs together.
>
> Add a comment explaining why android must come first, and some padding
> to group the libcamera and ipa components, applications, and remaining
> adaptation layers.
>
> Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
> ---
>  src/meson.build | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/src/meson.build b/src/meson.build
> index b9c7e7599d61..27f70544f1f6 100644
> --- a/src/meson.build
> +++ b/src/meson.build
> @@ -1,7 +1,5 @@
>  # SPDX-License-Identifier: CC0-1.0
>
> -subdir('android')
> -
>  openssl = find_program('openssl', required : true)
>  if openssl.found()
>      ipa_priv_key = custom_target('ipa-priv-key',
> @@ -13,8 +11,12 @@ else
>      ipa_sign_module = false
>  endif
>
> +# The Android HAL must be built before, and is included in libcamera.

well, to be picky, I think it's because of how we add the
android_hal_sources and the metadata library definition that we reuse
in the src/libcamera/meson.build file when building the library.

It's then mostly about how we instrumented the build system I think

# The 'android' subdir must be listed first, as build targets there
# defined are required when building libcamera

Just an idea

Whatever is fine,really
Reviewed-by: Jacopo Mondi <jacopo at jmondi.org>

Thanks
  j

> +subdir('android')
> +
>  subdir('libcamera')
>  subdir('ipa')
> +
>  subdir('cam')
>  subdir('qcam')
>
> --
> 2.25.1
>
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel at lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel


More information about the libcamera-devel mailing list