libcamera/src/cam/meson.build
Laurent Pinchart 7d35c771c0 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>
2020-11-15 22:21:23 +02:00

25 lines
615 B
Meson

# 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',
'event_loop.cpp',
'main.cpp',
'options.cpp',
'stream_options.cpp',
])
cam = executable('cam', cam_sources,
dependencies : [
libatomic,
libcamera_dep,
libevent,
],
install : true)