From patchwork Thu Feb 25 10:42:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 11376 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 CA77BBD1F1 for ; Thu, 25 Feb 2021 10:42:29 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 937EB68A48; Thu, 25 Feb 2021 11:42:29 +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="ki/Anbmp"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id B089B60106 for ; Thu, 25 Feb 2021 11:42:28 +0100 (CET) Received: from pyrite.rasen.tech (unknown [IPv6:2400:4051:61:600:2c71:1b79:d06d:5032]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 43C7E58E; Thu, 25 Feb 2021 11:42:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1614249748; bh=yawJSHkI5tjxhkQXyk3AQ2+SoITFZHBkojbSO/a2okA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ki/AnbmpMV/Ry4+VqMveilZDBr5krSS1hfgaU+lFoihlYVEaWqrj5A8O4VYypWO7c 8El0s6eZtHwfdXySP1BzldjBIDkiyjUe1KB9vO9KcBrKUuyjuNi/tsWReN2LQ7+rTb 12DK6NZ/ARUUutjBif4/A1hll8qNNAvf0muCrWYQ= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Thu, 25 Feb 2021 19:42:15 +0900 Message-Id: <20210225104217.108792-2-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210225104217.108792-1-paul.elder@ideasonboard.com> References: <20210225104217.108792-1-paul.elder@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 1/3] meson: Add cros build option 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" Add a cros build option to prepare for adding the symbols required for the new cros camera API. Signed-off-by: Paul Elder --- meson_options.txt | 5 +++++ src/android/meson.build | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/meson_options.txt b/meson_options.txt index 53f2675e..22efb323 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -5,6 +5,11 @@ option('android', value : 'disabled', description : 'Compile libcamera with Android Camera3 HAL interface') +option('cros', + type : 'boolean', + value : 'false', + description : 'Compile libcamera with the cros Camera3 HAL interface (depends on android option)') + option('documentation', type : 'feature', description : 'Generate the project documentation') diff --git a/src/android/meson.build b/src/android/meson.build index 9719c42b..a13ce63b 100644 --- a/src/android/meson.build +++ b/src/android/meson.build @@ -37,6 +37,11 @@ if android_enabled android_deps += [libyuv_dep] endif +if get_option('cros') and not android_enabled + warning('cros option enabled but android is not, cros option will be ignored') +endif +cros_enabled = get_option('cros') and android_enabled + android_hal_sources = files([ 'camera3_hal.cpp', 'camera_hal_manager.cpp',