diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-09-26 19:04:33 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-09-29 12:42:15 +0300 |
commit | c8c1d07cea2d8ef63905bf4f0b5266a5e6fd749f (patch) | |
tree | bca4499b7e8a5deeaeb6315f52bb9adb9f5b46e6 /include/libcamera/ipa/meson.build | |
parent | ff6c50974a2059649f4c96a96d41a50d7eb7a780 (diff) |
libcamera: Simplify header install paths with shortcut variables
Create local install_dir meson variable to store the full path to the
installation directory for the libcamera and ipa headers. This shortens
lines and avoids duplicating calls to get_option('includedir').
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'include/libcamera/ipa/meson.build')
-rw-r--r-- | include/libcamera/ipa/meson.build | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/libcamera/ipa/meson.build b/include/libcamera/ipa/meson.build index 81fb69f0..6ea94fb5 100644 --- a/include/libcamera/ipa/meson.build +++ b/include/libcamera/ipa/meson.build @@ -13,6 +13,8 @@ install_headers(libcamera_ipa_headers, libcamera_generated_ipa_headers = [] +ipa_headers_install_dir = get_option('includedir') / libcamera_ipa_include_dir + # # Prepare IPA/IPC generation components # @@ -34,7 +36,7 @@ libcamera_generated_ipa_headers += custom_target('core_ipa_interface_h', output : 'core_ipa_interface.h', depends : mojom_templates, install : true, - install_dir : get_option('includedir') / libcamera_ipa_include_dir, + install_dir : ipa_headers_install_dir, command : [ mojom_generator, 'generate', '-g', 'libcamera', @@ -98,7 +100,7 @@ foreach file : ipa_mojom_files output : name + '_ipa_interface.h', depends : mojom_templates, install : true, - install_dir : get_option('includedir') / libcamera_ipa_include_dir, + install_dir : ipa_headers_install_dir, command : [ mojom_generator, 'generate', '-g', 'libcamera', |