summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2021-05-24 16:54:02 +0900
committerPaul Elder <paul.elder@ideasonboard.com>2021-05-27 18:20:31 +0900
commite371805a0374f74056dc7db1400ec063e7cbe5ba (patch)
treec96b646a0bd74df9180d12bdb1a4099788b8cc12 /include
parentbd06b648fb1c7b0a137f23f15cd5e72c5edd881a (diff)
meson: ipa: Use files() to locate the mojom files
Use meson's files() to list the mojom files instead of the file names directly. This is so that we can still access the files from src/libcamera/ipa/meson.build later for building documentation cpp files from the mojom files. While at it, fix some redundant string manipulation in building the mojom modules. 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>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/ipa/meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libcamera/ipa/meson.build b/include/libcamera/ipa/meson.build
index eca4e9ee..729483ab 100644
--- a/include/libcamera/ipa/meson.build
+++ b/include/libcamera/ipa/meson.build
@@ -81,7 +81,7 @@ foreach file : ipa_mojom_files
endif
# {pipeline}.mojom-module
- mojom = custom_target(file.split('.')[0] + '_mojom_module',
+ mojom = custom_target(name + '_mojom_module',
input : file,
output : file + '-module',
depends : ipa_mojom_core,
@@ -143,3 +143,5 @@ foreach file : ipa_mojom_files
libcamera_generated_ipa_headers += [header, serializer, proxy_header]
endforeach
+
+ipa_mojom_files = files(ipa_mojom_files)