mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-15 00:19:44 +03:00
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>
27 lines
739 B
Meson
27 lines
739 B
Meson
libcamera_api = files([
|
|
'buffer.h',
|
|
'camera.h',
|
|
'camera_manager.h',
|
|
'event_dispatcher.h',
|
|
'event_notifier.h',
|
|
'geometry.h',
|
|
'ipa/ipa_interface.h',
|
|
'ipa/ipa_module_info.h',
|
|
'object.h',
|
|
'request.h',
|
|
'signal.h',
|
|
'stream.h',
|
|
'timer.h',
|
|
])
|
|
|
|
gen_header = files('gen-header.sh')
|
|
|
|
libcamera_h = custom_target('gen-header',
|
|
input : 'meson.build',
|
|
output : 'libcamera.h',
|
|
command : [gen_header, meson.current_source_dir(), '@OUTPUT@'],
|
|
install : true,
|
|
install_dir : 'include/libcamera')
|
|
|
|
install_headers(libcamera_api,
|
|
subdir : 'libcamera')
|