From patchwork Sat Mar 20 21:45:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 11631 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 82ED1BD80C for ; Sat, 20 Mar 2021 21:46:17 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 1335568D6B; Sat, 20 Mar 2021 22:46:16 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="iv+DQD+4"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 5255468D58 for ; Sat, 20 Mar 2021 22:46:14 +0100 (CET) Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id DD87E8DE for ; Sat, 20 Mar 2021 22:46:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1616276774; bh=91jCFALCLmcwDNV4VAHmE7E8YuEcsHeM5OkWAWqO6wQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iv+DQD+4s9kyqOuen8H0PFr5cn/qs1ilauQ4mlh5OlTqa5xTMczssYrZJJZ3iJl8v UfF0taX0vNI3V010ctwXy39tz4m0nkjDvGum0b+EKkY1K1OqMfv5OR4Bj7NtIknsGa 3Z4CIe3sk5DfcdTtOPX0brI4E73yt7rTGKjhgacU= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Sat, 20 Mar 2021 23:45:30 +0200 Message-Id: <20210320214531.10172-2-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.28.1 In-Reply-To: <20210320214531.10172-1-laurent.pinchart@ideasonboard.com> References: <20210320214531.10172-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 2/3] meson: Add configuration option to build the cam application X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" 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 --- meson_options.txt | 5 +++++ src/cam/meson.build | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/meson_options.txt b/meson_options.txt index f6b6c65c5c85..12de8fa161f8 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -11,6 +11,11 @@ option('android_platform', value : 'generic', description : 'Select the Android platform to compile for') +option('cam', + type : 'feature', + value : 'auto', + description : 'Compile the cam test application') + option('documentation', type : 'feature', description : 'Generate the project documentation') diff --git a/src/cam/meson.build b/src/cam/meson.build index f0c08589a654..65784beda4e6 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