summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorUmang Jain <umang.jain@ideasonboard.com>2021-05-24 14:50:21 +0530
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-05-24 14:13:35 +0300
commit231d93557d8555d2bd713832203bb17b678d6ed0 (patch)
tree99b267ea694321c64eaaed600bcd8bd0cf6faad5 /include
parent378f572e7f13d035c865f876c16659f162e2f48d (diff)
ipa: meson: Install mojom generated headers to include paths
Generated IPA headers from mojom files need to be installed to $INCLUDE_PATH in order to be available system-wide. Without this, out-of-tree IPAs won't be able to link and build themselves. Signed-off-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/ipa/meson.build8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/libcamera/ipa/meson.build b/include/libcamera/ipa/meson.build
index 40c4e737..eca4e9ee 100644
--- a/include/libcamera/ipa/meson.build
+++ b/include/libcamera/ipa/meson.build
@@ -1,5 +1,7 @@
# SPDX-License-Identifier: CC0-1.0
+libcamera_ipa_include_dir = libcamera_include_dir / 'ipa'
+
libcamera_ipa_headers = files([
'ipa_controls.h',
'ipa_interface.h',
@@ -7,7 +9,7 @@ libcamera_ipa_headers = files([
])
install_headers(libcamera_ipa_headers,
- subdir: libcamera_include_dir / 'ipa')
+ subdir: libcamera_ipa_include_dir)
libcamera_generated_ipa_headers = []
@@ -31,6 +33,8 @@ libcamera_generated_ipa_headers += custom_target('core_ipa_interface_h',
input : ipa_mojom_core,
output : 'core_ipa_interface.h',
depends : mojom_templates,
+ install : true,
+ install_dir : get_option('includedir') / libcamera_ipa_include_dir,
command : [
mojom_generator, 'generate',
'-g', 'libcamera',
@@ -93,6 +97,8 @@ foreach file : ipa_mojom_files
input : mojom,
output : name + '_ipa_interface.h',
depends : mojom_templates,
+ install : true,
+ install_dir : get_option('includedir') / libcamera_ipa_include_dir,
command : [
mojom_generator, 'generate',
'-g', 'libcamera',