There's no user of the EventDispatcher (and the related EventNotifier and Timer classes) outside of libcamera. Move those classes to the internal API. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
89 lines
2.8 KiB
Meson
89 lines
2.8 KiB
Meson
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
libcamera_public_headers = files([
|
|
'bound_method.h',
|
|
'buffer.h',
|
|
'camera.h',
|
|
'camera_manager.h',
|
|
'controls.h',
|
|
'extensible.h',
|
|
'file_descriptor.h',
|
|
'framebuffer_allocator.h',
|
|
'geometry.h',
|
|
'logging.h',
|
|
'object.h',
|
|
'pixel_format.h',
|
|
'request.h',
|
|
'signal.h',
|
|
'span.h',
|
|
'stream.h',
|
|
'transform.h',
|
|
])
|
|
|
|
include_dir = join_paths(libcamera_include_dir, 'libcamera')
|
|
|
|
subdir('internal')
|
|
subdir('ipa')
|
|
|
|
install_headers(libcamera_public_headers,
|
|
subdir : include_dir)
|
|
|
|
#
|
|
# Generate headers from templates.
|
|
#
|
|
|
|
# control_ids.h and property_ids.h
|
|
control_source_files = [
|
|
'control_ids',
|
|
'property_ids',
|
|
]
|
|
|
|
control_headers = []
|
|
|
|
foreach header : control_source_files
|
|
input_files = files('../../src/libcamera/' + header +'.yaml', header + '.h.in')
|
|
control_headers += custom_target(header + '_h',
|
|
input : input_files,
|
|
output : header + '.h',
|
|
depend_files : gen_controls,
|
|
command : [gen_controls, '-o', '@OUTPUT@', '@INPUT@'],
|
|
install : true,
|
|
install_dir : join_paths('include', include_dir))
|
|
endforeach
|
|
|
|
libcamera_public_headers += control_headers
|
|
|
|
# formats.h
|
|
formats_h = custom_target('formats_h',
|
|
input : files(
|
|
'../../src/libcamera/formats.yaml',
|
|
'formats.h.in',
|
|
'../linux/drm_fourcc.h'
|
|
),
|
|
output : 'formats.h',
|
|
command : [gen_formats, '-o', '@OUTPUT@', '@INPUT@'],
|
|
install : true,
|
|
install_dir : join_paths('include', include_dir))
|
|
libcamera_public_headers += formats_h
|
|
|
|
# libcamera.h
|
|
libcamera_h = custom_target('gen-header',
|
|
input : 'meson.build',
|
|
output : 'libcamera.h',
|
|
command : [gen_header, meson.current_source_dir(), '@OUTPUT@'],
|
|
install : true,
|
|
install_dir : join_paths('include', include_dir))
|
|
|
|
libcamera_public_headers += libcamera_h
|
|
|
|
# version.h
|
|
version = libcamera_version.split('.')
|
|
libcamera_version_config = configuration_data()
|
|
libcamera_version_config.set('LIBCAMERA_VERSION_MAJOR', version[0])
|
|
libcamera_version_config.set('LIBCAMERA_VERSION_MINOR', version[1])
|
|
libcamera_version_config.set('LIBCAMERA_VERSION_PATCH', version[2])
|
|
|
|
configure_file(input : 'version.h.in',
|
|
output : 'version.h',
|
|
configuration : libcamera_version_config,
|
|
install_dir : join_paths('include', include_dir))
|