From 006aa232ac92e3ccde06a3b1536d6e02e8496766 Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Mon, 16 Jan 2023 07:58:12 +0000 Subject: libcamera: Add new libcamera source Provide the integration of a libcamera source within uvc-gadget. This adds C++ support to the project and adds libcamera as an optional external dependency. Reviewed-by: Kieran Bingham Signed-off-by: Kieran Bingham Signed-off-by: Daniel Scally --- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index b5d7e2b..c928170 100644 --- a/meson.build +++ b/meson.build @@ -1,11 +1,12 @@ # SPDX-License-Identifier: CC0-1.0 -project('uvc-gadget', 'c', +project('uvc-gadget', 'c', 'cpp', meson_version : '>= 0.56', version : '0.2.0', default_options : [ 'werror=true', 'warning_level=2', + 'cpp_std=c++17', ], license : 'LGPL 2.1+') @@ -52,6 +53,8 @@ summary({ 'Sources': uvc_gadget_git_version, }, section : 'Versions') # Configure the build environment. cc = meson.get_compiler('c') +libcamera = dependency('libcamera', required : false) + subdir('include') subdir('lib') -- cgit v1.2.3