From patchwork Mon Nov 23 16:43:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 10475 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 CBA44BE177 for ; Mon, 23 Nov 2020 16:45:03 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 9BD8563409; Mon, 23 Nov 2020 17:45:03 +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="nZvn1xHV"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 2E3C0633F1 for ; Mon, 23 Nov 2020 17:44:59 +0100 (CET) Received: from Q.local (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id CF2AC5A6; Mon, 23 Nov 2020 17:44:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1606149899; bh=ZOHjDoQU60vDqYuL/6JJ6hTGM1m3nafvymWqGJnICjw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nZvn1xHVtVAbWROxVQk1m5qrxEhfBErfBDorfHjCCjGtFUdM0bU0BPx1UFIZDy7Yk G6g0BzhQlGgeDfLUMov1DudGGMuPF255jMmlclttmOoEzBwkkfpHYp/7I0GTYyoUAD IGtgAkDIBmcSpfAghOmUpgGzU00WJ4Yv044SEGeU= From: Kieran Bingham To: libcamera devel Date: Mon, 23 Nov 2020 16:43:15 +0000 Message-Id: <20201123164319.152742-5-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201123164319.152742-1-kieran.bingham@ideasonboard.com> References: <20201123164319.152742-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [RFC PATCH 4/8] src: meson: Define system paths 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" Define libcamera specific system paths for use within the library code base. These can be used to identify system configuration files and shared data. Signed-off-by: Kieran Bingham Reviewed-by: Jacopo Mondi --- src/meson.build | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/meson.build b/src/meson.build index 8c7449f9b8a0..b1b3514f6ed7 100644 --- a/src/meson.build +++ b/src/meson.build @@ -1,5 +1,17 @@ # SPDX-License-Identifier: CC0-1.0 +# Handle system paths +datadir = get_option('datadir') +prefix = get_option('prefix') +sysconfdir = get_option('sysconfdir') + +libcamera_datadir = datadir / 'libcamera' +libcamera_sysconfdir = sysconfdir / 'libcamera' + +config_h.set('LIBCAMERA_SYSCONF_DIR', '"' + prefix / libcamera_sysconfdir + '"') +config_h.set('LIBCAMERA_DATA_DIR', '"' + prefix / libcamera_datadir + '"') + +# Module Signing openssl = find_program('openssl', required : true) if openssl.found() ipa_priv_key = custom_target('ipa-priv-key',