From ed3a440177bef2be8aa079f6915939be7a223125 Mon Sep 17 00:00:00 2001
From: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Date: Wed, 18 May 2022 16:13:12 +0300
Subject: py: meson: Use files() for custom_target input files

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 <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 src/py/libcamera/meson.build | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src')

diff --git a/src/py/libcamera/meson.build b/src/py/libcamera/meson.build
index 2fc2eaec..cd20bb00 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')
 
-- 
cgit v1.2.1