libcamera: Turn the android option into a feature

Allow disabling compilation of the Android HAL adaptation layer
automatically when a dependency is missing by turning the android option
into a feature. The default value is set to 'disabled' to match the
current behaviour.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
Laurent Pinchart 2020-09-16 16:04:03 +03:00
parent de20029a58
commit d5ce2679c6
4 changed files with 18 additions and 11 deletions

View file

@ -1,8 +1,8 @@
# SPDX-License-Identifier: CC0-1.0
option('android',
type : 'boolean',
value : false,
type : 'feature',
value : 'disabled',
description : 'Compile libcamera with Android Camera3 HAL interface')
option('documentation',