[libcamera-devel] [PATCH v2] meson: summarise paths
Kieran Bingham
kieran.bingham at ideasonboard.com
Mon Jun 14 16:53:24 CEST 2021
Heya,
On 14/06/2021 15:40, Laurent Pinchart wrote:
> Hi Kieran,
>
> Thank you for the patch.
>
> On Mon, Jun 14, 2021 at 02:24:02PM +0100, Kieran Bingham wrote:
>> The IPAs are loaded from a defined location set as IPA_MODULE_DIR.
>> Further more, configuration files for both libcamera and IPAs are loaded
>
> s/Further more/Furthermore/ ?
>
>> from paths defined during the meson configuration.
>>
>> To make it easy to identify these locations for a given configuration,
>> present them as a 'paths' section in the meson summary.
>>
>> This adds a summary section to meson in the form:
>>
>> Paths
>> LIBCAMERA_DATA_DIR : "/usr/share/libcamera"
>> LIBCAMERA_SYSCONF_DIR : "/etc/camera/libcamera"
>> IPA_PROXY_DIR : "/usr/libexec/libcamera"
>> IPA_CONFIG_DIR : "/etc/camera/libcamera/ipa:/usr/share/libcamera/ipa"
>> IPA_MODULE_DIR : "/usr/lib/x86_64-linux-gnu/libcamera"
>>
>> Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
>> ---
>> src/ipa/meson.build | 5 +++++
>> src/libcamera/proxy/worker/meson.build | 4 ++++
>> src/meson.build | 5 +++++
>> 3 files changed, 14 insertions(+)
>>
>> diff --git a/src/ipa/meson.build b/src/ipa/meson.build
>> index 49245e5e91f3..e15a8a066f07 100644
>> --- a/src/ipa/meson.build
>> +++ b/src/ipa/meson.build
>> @@ -15,6 +15,11 @@ config_h.set('IPA_CONFIG_DIR',
>> config_h.set('IPA_MODULE_DIR',
>> '"' + get_option('prefix') / ipa_install_dir + '"')
>>
>> +summary({
>> + 'IPA_CONFIG_DIR' : config_h.get('IPA_CONFIG_DIR'),
>> + 'IPA_MODULE_DIR' : config_h.get('IPA_MODULE_DIR'),
>> + }, section : 'Paths')
>> +
>> subdir('libipa')
>>
>> ipa_sign = files('ipa-sign.sh')
>> diff --git a/src/libcamera/proxy/worker/meson.build b/src/libcamera/proxy/worker/meson.build
>> index 40dada9db1e5..28fe5f1fd6b2 100644
>> --- a/src/libcamera/proxy/worker/meson.build
>> +++ b/src/libcamera/proxy/worker/meson.build
>> @@ -26,3 +26,7 @@ endforeach
>>
>> config_h.set('IPA_PROXY_DIR',
>> '"' + get_option('prefix') / proxy_install_dir + '"')
>> +
>> +summary({
>> + 'IPA_PROXY_DIR' : config_h.get('IPA_PROXY_DIR'),
>> + }, section : 'Paths')
>> diff --git a/src/meson.build b/src/meson.build
>> index a6e4eb21b796..a4e96ecd728a 100644
>> --- a/src/meson.build
>> +++ b/src/meson.build
>> @@ -8,6 +8,11 @@ libcamera_sysconfdir = get_option('sysconfdir') / 'libcamera'
>> config_h.set('LIBCAMERA_DATA_DIR', '"' + get_option('prefix') / libcamera_datadir + '"')
>> config_h.set('LIBCAMERA_SYSCONF_DIR', '"' + get_option('prefix') / libcamera_sysconfdir + '"')
>>
>> +summary({
>> + 'LIBCAMERA_DATA_DIR' : config_h.get('LIBCAMERA_DATA_DIR'),
>> + 'LIBCAMERA_SYSCONF_DIR' : config_h.get('LIBCAMERA_SYSCONF_DIR'),
>
> Sidestepping the variable naming issue. How do you dare being so
> pragmatic ? :-D
I know ... but once I had seen this, I couldn't unsee it ;-)
Declaring intermediate variables just to be able to print it after
setting it ... or ... printing the value that was set ;-)
>
> Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
>
>> + }, section : 'Paths')
>> +
>> # Module Signing
>> openssl = find_program('openssl', required : true)
>> if openssl.found()
>
--
Regards
--
Kieran
More information about the libcamera-devel
mailing list