From c7dd9655e5e0a95e3a776eb92f54841a68b82331 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sat, 20 Mar 2021 23:35:36 +0200 Subject: 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 Reviewed-by: Kieran Bingham --- src/cam/meson.build | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/cam') diff --git a/src/cam/meson.build b/src/cam/meson.build index f0c08589..65784bed 100644 --- a/src/cam/meson.build +++ b/src/cam/meson.build @@ -1,9 +1,8 @@ # SPDX-License-Identifier: CC0-1.0 -libevent = dependency('libevent_pthreads', required : false) +libevent = dependency('libevent_pthreads', required : get_option('cam')) if not libevent.found() - warning('libevent_pthreads not found, \'cam\' application will not be compiled') subdir_done() endif -- cgit v1.2.1