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: 90de3690c4 ("libcamera: Auto-generate libcamera.h")
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Kieran Bingham 2019-06-27 17:49:57 +01:00 committed by Laurent Pinchart
parent 6f0c4d0742
commit dba2de3a0f

View file

@ -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',