Files
external_libcamera/src/cam/meson.build
T
Laurent Pinchart c7dd9655e5 meson: Add configuration option to build the cam application
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>
2021-03-23 19:15:55 +02:00

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)