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:
@@ -121,7 +121,7 @@ libcamera_deps = [
|
||||
|
||||
libcamera_link_with = []
|
||||
|
||||
if get_option('android')
|
||||
if android_enabled
|
||||
libcamera_sources += android_hal_sources
|
||||
includes += android_includes
|
||||
libcamera_link_with += android_camera_metadata
|
||||
|
||||
Reference in New Issue
Block a user