From 66f58fbf067f356c082eeeef83e8ede403d2db13 Mon Sep 17 00:00:00 2001 From: Paul Elder Date: Mon, 24 May 2021 17:17:38 +0900 Subject: 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 Reviewed-by: Laurent Pinchart Reviewed-by: Umang Jain --- src/libcamera/ipa/meson.build | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'src') 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 -- cgit v1.2.1