summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/ipa/meson.build19
1 files changed, 12 insertions, 7 deletions
diff --git a/include/libcamera/ipa/meson.build b/include/libcamera/ipa/meson.build
index e72803b4..f3b4881c 100644
--- a/include/libcamera/ipa/meson.build
+++ b/include/libcamera/ipa/meson.build
@@ -68,29 +68,28 @@ pipeline_ipa_mojom_mapping = {
'vimc': 'vimc.mojom',
}
-ipa_mojom_files = []
-ipa_mojoms = []
-
#
# Generate headers from templates.
#
# TODO Define per-pipeline ControlInfoMap with yaml?
+ipa_mojoms = []
+mojoms_built = []
foreach pipeline, file : pipeline_ipa_mojom_mapping
name = file.split('.')[0]
- # Ensure we do not build duplicate mojom modules
- if file in ipa_mojom_files
+ # Avoid building duplicate mojom interfaces with the same interface file
+ if name in mojoms_built
continue
endif
- ipa_mojom_files += file
-
if pipeline not in pipelines
continue
endif
+ mojoms_built += name
+
# {interface}.mojom-module
mojom = custom_target(name + '_mojom_module',
input : file,
@@ -155,6 +154,12 @@ foreach pipeline, file : pipeline_ipa_mojom_mapping
libcamera_generated_ipa_headers += [header, serializer, proxy_header]
endforeach
+ipa_mojom_files = []
+foreach pipeline, file : pipeline_ipa_mojom_mapping
+ if file not in ipa_mojom_files
+ ipa_mojom_files += file
+ endif
+endforeach
ipa_mojom_files = files(ipa_mojom_files)
# Pass this to the documentation generator in src/libcamera/ipa