summaryrefslogtreecommitdiff
path: root/src/cam/meson.build
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-10-25 14:40:50 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-11-15 22:21:23 +0200
commit7d35c771c0480e1ca5942ba3c9cf09c1fde22f85 (patch)
tree5de606b9a2a09fa58abf1f063a106b1cc9b4e1a6 /src/cam/meson.build
parenta27057fc503de6b8e1fb67bfe704dba80b51bfd8 (diff)
cam: Use libevent to implement event loop
To prepare for removal of the EventDispatcher from the libcamera public API, switch to libevent to handle the event loop. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src/cam/meson.build')
-rw-r--r--src/cam/meson.build13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/cam/meson.build b/src/cam/meson.build
index 89e124fb..f0c08589 100644
--- a/src/cam/meson.build
+++ b/src/cam/meson.build
@@ -1,5 +1,12 @@
# SPDX-License-Identifier: CC0-1.0
+libevent = dependency('libevent_pthreads', required : false)
+
+if not libevent.found()
+ warning('libevent_pthreads not found, \'cam\' application will not be compiled')
+ subdir_done()
+endif
+
cam_sources = files([
'buffer_writer.cpp',
'capture.cpp',
@@ -10,5 +17,9 @@ cam_sources = files([
])
cam = executable('cam', cam_sources,
- dependencies : [ libatomic, libcamera_dep ],
+ dependencies : [
+ libatomic,
+ libcamera_dep,
+ libevent,
+ ],
install : true)