summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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