mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-16 17:05:08 +03:00
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:
parent
85f01678a0
commit
0e6cd15b06
2 changed files with 5 additions and 4 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue