[libcamera-devel] [PATCH v3 5/5] meson: ipa: Build documentation cpp files from mojom files
Paul Elder
paul.elder at ideasonboard.com
Thu May 27 09:28:05 CEST 2021
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 at ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain at ideasonboard.com>
---
src/libcamera/ipa/meson.build | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/src/libcamera/ipa/meson.build b/src/libcamera/ipa/meson.build
index 560b2fdd..44695240 100644
--- a/src/libcamera/ipa/meson.build
+++ b/src/libcamera/ipa/meson.build
@@ -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
--
2.27.0
More information about the libcamera-devel
mailing list