libcamera/include/libcamera/meson.build
Kieran Bingham dba2de3a0f 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>
2019-07-01 02:26:55 +03:00

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')