libcamera: Consolidate tracepoint header in libcamera_internal_headers

The libcamera_tracepoint_header variable stores the tracepoints.h header
custom target, for the sole purpose of being listed as a source of the
libcamera shared library, through the libcamera_internal_sources
variable.

Add the tracepoints.h header to libcamera_internal_headers instead of
libcamera_internal_sources, and list libcamera_internal_headers as a
source of the shared library, alongside libcamera_internal_sources. This
makes libcamera_internal_sources contain sources only, improving clarity
of the build system variables.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Laurent Pinchart
2024-08-05 02:01:05 +03:00
parent 4736ec509d
commit 6865649730
2 changed files with 10 additions and 8 deletions
+9 -7
View File
@@ -2,13 +2,6 @@
subdir('tracepoints')
libcamera_tracepoint_header = custom_target(
'tp_header',
input : ['tracepoints.h.in', tracepoint_files],
output : 'tracepoints.h',
command : [gen_tracepoints_header, include_build_dir, '@OUTPUT@', '@INPUT@'],
)
libcamera_internal_headers = files([
'bayer_format.h',
'byte_stream_buffer.h',
@@ -51,5 +44,14 @@ libcamera_internal_headers = files([
'yaml_parser.h',
])
tracepoints_h = custom_target(
'tp_header',
input : ['tracepoints.h.in', tracepoint_files],
output : 'tracepoints.h',
command : [gen_tracepoints_header, include_build_dir, '@OUTPUT@', '@INPUT@'],
)
libcamera_internal_headers += tracepoints_h
subdir('converter')
subdir('software_isp')
+1 -1
View File
@@ -55,7 +55,6 @@ libcamera_internal_sources = files([
])
libcamera_public_sources += libcamera_public_headers
libcamera_internal_sources += libcamera_tracepoint_header
includes = [
libcamera_includes,
@@ -196,6 +195,7 @@ libcamera = shared_library('libcamera',
[
libcamera_public_sources,
libcamera_ipa_headers,
libcamera_internal_headers,
libcamera_internal_sources,
],
version : libcamera_version,