mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-24 17:15:07 +03:00
meson: ipa: Build documentation cpp files from mojom files
Plumb meson to build the cpp files from the mojom files for the purpose of containing the documentation for the IPA interfaces. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
This commit is contained in:
parent
52f5f0125b
commit
66f58fbf06
1 changed files with 15 additions and 3 deletions
|
@ -1,5 +1,17 @@
|
|||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
libcamera_ipa_interfaces = files([
|
||||
'core_ipa_interface.cpp',
|
||||
])
|
||||
libcamera_ipa_interfaces = []
|
||||
|
||||
foreach file : ipa_mojom_files
|
||||
name = '@0@'.format(file).split('/')[-1].split('.')[0]
|
||||
|
||||
# {pipeline}_ipa_interface.cpp
|
||||
libcamera_ipa_interfaces += \
|
||||
custom_target(name + '_ipa_interface_cpp',
|
||||
input : file,
|
||||
output : name + '_ipa_interface.cpp',
|
||||
command : [
|
||||
mojom_docs_extractor,
|
||||
'-o', '@OUTPUT@', '@INPUT@'
|
||||
])
|
||||
endforeach
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue