src: meson: Simplify v4l2 enablement

Simplify the src level meson file by moving the declaration of the v4l2
subdir to match the other invocations, making use of 'subdir_done()' to
break out if the adaptation layer is not enabled.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Kieran Bingham 2020-11-10 16:05:34 +00:00
parent 85f01678a0
commit 0e6cd15b06
2 changed files with 5 additions and 4 deletions

View file

@ -1,5 +1,9 @@
# SPDX-License-Identifier: CC0-1.0
if not get_option('v4l2')
subdir_done()
endif
v4l2_compat_sources = files([
'v4l2_camera.cpp',
'v4l2_camera_file.cpp',