c7dd9655e5
Building the cam application isn't always desired, for instance in a production environment that only needs the libcamera library. Add a meson option to disable it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
25 lines
542 B
Meson
25 lines
542 B
Meson
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
libevent = dependency('libevent_pthreads', required : get_option('cam'))
|
|
|
|
if not libevent.found()
|
|
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)
|