From patchwork Wed May 11 08:23:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 15892 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 B903CC3256 for ; Wed, 11 May 2022 08:24:06 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 0B5B665659; Wed, 11 May 2022 10:24:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1652257446; bh=z5kJAWgbqhYoijcQSB/bA9JmQTaxvugfOXrEMr9RxXM=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=I/cK5vwT01wkQbGYIPNp16Jl4JfDynVwvBeGq3QlCUBRig0n15SgrOiAOAJOAM7DC mmHfq13s8PkLK9lP9qmNeXOol4tv9YDRrFXSG+ABJX/+HdPLEPlHQtvKzX7aRifrY6 +YPMKX9ORdC1ajKxahzYkXSCVTWTrlHp/sGfFzhDKuwz9AYYaaas780PRlsNCqDRDr g0JloIyX7FPff2IVxnN1s4ycsHrlI3MLNFJvpA3kAFef9rBfYLXFbxTadJaGl41kxz ZHjy5foFGxXE5ckWKBEaTvMdNVxwEY9VYC5LOzihqVH1WKj0DM3PpxJDztBYV6FTyt fJoMaxvTUnyDA== 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 B5EF26150F for ; Wed, 11 May 2022 10:24:03 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="PfZH8Fu3"; 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 00FE5824; Wed, 11 May 2022 10:24:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1652257443; bh=z5kJAWgbqhYoijcQSB/bA9JmQTaxvugfOXrEMr9RxXM=; h=From:To:Cc:Subject:Date:From; b=PfZH8Fu3IrPCV4fy0IZ2HuPKmVn/yZavff5b7OmAcjfzHgIVUCImt4wsbIGkAgtzL kbndw/sB8oeN+IvHnoJPAkDQZjvwUiwSyUqwk6iUibHso4oD2YeyXNXYz8ypM4F265 zRlWW5tcD+y7N10vO3jCldwO10alPkgOXBzD20co= To: libcamera-devel@lists.libcamera.org, Kieran Bingham , Laurent Pinchart Date: Wed, 11 May 2022 11:23:46 +0300 Message-Id: <20220511082346.18972-1-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] 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 --- 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..3f7ddf1d 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')