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 --- lib/meson.build | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/meson.build') diff --git a/lib/meson.build b/lib/meson.build index 680be1c..0931eef 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -15,8 +15,13 @@ libuvcgadget_sources = files([ 'video-source.c', ]) +if libcamera.found() + libuvcgadget_sources += files(['libcamera-source.cpp']) +endif + libuvcgadget = shared_library('uvcgadget', libuvcgadget_sources, + dependencies : libcamera, version : uvc_gadget_version, install : true, include_directories : includes) -- cgit v1.2.3