From patchwork Wed May 11 09:28:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 15893 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 BEFAAC0F2A for ; Wed, 11 May 2022 09:28:57 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 1597E65659; Wed, 11 May 2022 11:28:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1652261337; bh=oNGCLHgnl/f8hSG6NOhfcLzbxKYOM3o/h4XfqB+/ISE=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=G4phPpSVAJqxZYpT4rYVSbUdEqQntftnWY74F73oSqbuYkbdKFBrNmP3go40JzXn4 L/mksJrrodDRZiSyi461pqOR+hVIris7MIm3pTssO5pCFZQeod8raAVYvlyuNpSHJ/ 404uGvOjYAOUPJ7KoX1ECn5MLVyuIsKRJ6Edqbyot+RjX4SoZDqJc4iEqbABOhRMiz H7ax2WYbs4NfaYrXNM05RllgtPPKbwdNZG8GSF3F+qZ68I/DjJQa2L89CgJF4vAo1J wvLq/wKgp/qhOuHHmHW5Z074jr1oewz1hlyLoS7ITrX9oq4y9Iuy5TvmjaOg1SgGzR SM44BcxPPtYtQ== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id CA4806150F for ; Wed, 11 May 2022 11:28:55 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="keyX3rib"; dkim-atps=neutral Received: from deskari.lan (91-156-85-209.elisa-laajakaista.fi [91.156.85.209]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 04124824; Wed, 11 May 2022 11:28:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1652261335; bh=oNGCLHgnl/f8hSG6NOhfcLzbxKYOM3o/h4XfqB+/ISE=; h=From:To:Cc:Subject:Date:From; b=keyX3ribh9VjAYItZiXgPdGYpfN0GugDQJXEGscT3mPqrHWkegg3ZdxBJVrWMPpM0 x0aqtvzwdlrLrhg9/I2/yVQtU+PfekaIc2fgyPjbIKSNmwF+w7spsCI2sYdDo3VNHZ 8yL60adSIssDDcnU8A+0T3gylcRTa+axh9l0plS4= To: libcamera-devel@lists.libcamera.org, Kieran Bingham , Laurent Pinchart Date: Wed, 11 May 2022 12:28:48 +0300 Message-Id: <20220511092848.24067-1-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2] py: meson: use files() for custom_target input files 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: , X-Patchwork-Original-From: Tomi Valkeinen via libcamera-devel From: Tomi Valkeinen Reply-To: Tomi Valkeinen Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Use files() for the input files for the custom_target(). I believe the current code works, but perhaps it is safer to use files() here. Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- v2: Pass an array to files() as used elsewhere src/py/libcamera/meson.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/py/libcamera/meson.build b/src/py/libcamera/meson.build index 0cd7c75b..c169b0c8 100644 --- a/src/py/libcamera/meson.build +++ b/src/py/libcamera/meson.build @@ -17,10 +17,10 @@ pycamera_sources = files([ 'pymain.cpp', ]) -gen_input_files = [ - meson.project_source_root() / 'src' / 'libcamera' / 'control_ids.yaml', +gen_input_files = files([ + '../../libcamera/control_ids.yaml', 'pyenums_generated.cpp.in', -] +]) gen_py_control_enums = files('gen-py-control-enums.py')