From dba2de3a0feddddf2774b75c1bcc8ed0c6bd54c5 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Thu, 27 Jun 2019 17:49:57 +0100 Subject: libcamera: Use 'files()' function to specify gen-header.sh 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 Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- include/libcamera/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/libcamera/meson.build b/include/libcamera/meson.build index 1b86fdc7..15484724 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', -- cgit v1.2.1