summaryrefslogtreecommitdiff
path: root/lib/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'lib/meson.build')
-rw-r--r--lib/meson.build5
1 files changed, 5 insertions, 0 deletions
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)