Files
external_libcamera/include/libcamera/meson.build
Laurent Pinchart 90de3690c4 libcamera: Auto-generate libcamera.h
As shown by two missing includes, keeping the libcamera.h file in sync
when adding or removing headers is an error-prone manual process.
Automate it by generating the header automatically.

The libcamera.h header is also added to the libcamera dependency
libcamera_dep to ensure that the headers gets generated before any
source depending on it gets compiled.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2019-05-23 13:56:36 +03:00

27 lines
745 B
Meson

libcamera_api = files([
'buffer.h',
'camera.h',
'camera_manager.h',
'event_dispatcher.h',
'event_notifier.h',
'geometry.h',
'ipa/ipa_module_info.h',
'object.h',
'request.h',
'signal.h',
'stream.h',
'timer.h',
])
gen_header = join_paths(meson.current_source_dir(), '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')