summaryrefslogtreecommitdiff
path: root/lib/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'lib/meson.build')
-rw-r--r--lib/meson.build8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/meson.build b/lib/meson.build
index 0931eef..f2626fa 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -19,12 +19,16 @@ if libcamera.found()
libuvcgadget_sources += files(['libcamera-source.cpp'])
endif
+if libjpeg.found() and threads.found()
+ libuvcgadget_sources += files(['mjpeg_encoder.cpp'])
+endif
+
libuvcgadget = shared_library('uvcgadget',
libuvcgadget_sources,
- dependencies : libcamera,
+ dependencies : [libcamera, libjpeg, threads],
version : uvc_gadget_version,
install : true,
- include_directories : includes)
+ include_directories : [includes, config_includes])
libuvcgadget_dep = declare_dependency(sources : [
uvcgadget_public_headers,