[libcamera-devel] [PATCH] meson: options: Add a option to control compilation of qcam
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Tue Jun 16 20:06:12 CEST 2020
Hi Niklas,
Thank you for the patch.
On Tue, Jun 16, 2020 at 05:27:24PM +0200, Niklas Söderlund wrote:
> Add a option to control compilation of the qcam test application. The
s/a option/an option/
> default behavior is to compile qcam, no change in behavior without user
> intervention.
>
> Signed-off-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>
> ---
> meson_options.txt | 5 +++++
> src/meson.build | 5 ++++-
> 2 files changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/meson_options.txt b/meson_options.txt
> index badace151bb62bc9..9a4edf2a5fde8bcb 100644
> --- a/meson_options.txt
> +++ b/meson_options.txt
> @@ -27,3 +27,8 @@ option('v4l2',
> type : 'boolean',
> value : false,
> description : 'Compile the V4L2 compatibility layer')
> +
> +option('qcam',
> + type : 'boolean',
> + value : true,
> + description : 'Compile the qcam test application')
Could we keep the options alphabetically sorted ?
Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> diff --git a/src/meson.build b/src/meson.build
> index d69b4c1ea9788f83..3a816fb610a68905 100644
> --- a/src/meson.build
> +++ b/src/meson.build
> @@ -19,7 +19,10 @@ endif
> subdir('libcamera')
> subdir('ipa')
> subdir('cam')
> -subdir('qcam')
> +
> +if get_option('qcam')
> + subdir('qcam')
> +endif
>
> if get_option('v4l2')
> subdir('v4l2')
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list