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:
parent
6f0c4d0742
commit
dba2de3a0f
1 changed files with 1 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue