summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2021-05-24 17:17:38 +0900
committerPaul Elder <paul.elder@ideasonboard.com>2021-05-27 18:21:49 +0900
commit66f58fbf067f356c082eeeef83e8ede403d2db13 (patch)
treeec6e14ee968a81d6b3c5e7fdb175a6db0eee8ae5
parent52f5f0125b31dac8635ce4e7a9b101522e8bd07c (diff)
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>
-rw-r--r--src/libcamera/ipa/meson.build18
1 files 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