The list of public, IPA and internal header files are stored in three meson variables, named libcamera_api, libcamera_ipa_api and libcamera_headers respectively. The lack of uniformity is a bit confusing. Fix it by renaming those variables to libcamera_public_headers, libcamera_ipa_headers and libcamera_internal_headers. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Jacopo Mondi <jacopo@jmondi.org> Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
75 lines
2.3 KiB
Meson
75 lines
2.3 KiB
Meson
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
libcamera_public_headers = files([
|
|
'bound_method.h',
|
|
'buffer.h',
|
|
'camera.h',
|
|
'camera_manager.h',
|
|
'controls.h',
|
|
'event_dispatcher.h',
|
|
'event_notifier.h',
|
|
'file_descriptor.h',
|
|
'framebuffer_allocator.h',
|
|
'geometry.h',
|
|
'logging.h',
|
|
'object.h',
|
|
'pixelformats.h',
|
|
'request.h',
|
|
'signal.h',
|
|
'span.h',
|
|
'stream.h',
|
|
'timer.h',
|
|
])
|
|
|
|
include_dir = join_paths(libcamera_include_dir, 'libcamera')
|
|
|
|
subdir('internal')
|
|
subdir('ipa')
|
|
|
|
install_headers(libcamera_public_headers,
|
|
subdir : include_dir)
|
|
|
|
gen_controls = files('../../src/libcamera/gen-controls.py')
|
|
|
|
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
|
|
|
|
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 : join_paths('include', include_dir))
|
|
|
|
libcamera_public_headers += libcamera_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))
|