[libcamera-devel] [PATCH v3 01/14] libcamera: Use 'files()' function to specify gen-header.sh
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Mon Jul 1 01:38:04 CEST 2019
From: Kieran Bingham <kieran.bingham at ideasonboard.com>
The files() function generates a variable with the location of the
referenced files.
This is shorter than joining the current_source_dir() of which use is
somewhat frowned upon.
Fixes: 90de3690c456 ("libcamera: Auto-generate libcamera.h")
Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
include/libcamera/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/libcamera/meson.build b/include/libcamera/meson.build
index 1b86fdc7fca4..15484724df01 100644
--- a/include/libcamera/meson.build
+++ b/include/libcamera/meson.build
@@ -14,7 +14,7 @@ libcamera_api = files([
'timer.h',
])
-gen_header = join_paths(meson.current_source_dir(), 'gen-header.sh')
+gen_header = files('gen-header.sh')
libcamera_h = custom_target('gen-header',
input : 'meson.build',
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list