[libcamera-devel,v2] py: meson: use files() for custom_target input files
diff mbox series

Message ID 20220511092848.24067-1-tomi.valkeinen@ideasonboard.com
State Accepted
Commit ed3a440177bef2be8aa079f6915939be7a223125
Headers show
Series
  • [libcamera-devel,v2] py: meson: use files() for custom_target input files
Related show

Commit Message

Tomi Valkeinen May 11, 2022, 9:28 a.m. UTC
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>
---

v2: Pass an array to files() as used elsewhere

 src/py/libcamera/meson.build | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch
diff mbox series

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')