[libcamera-devel] pkgconfig: Fix include directory path

Message ID 20200507144852.178299-1-nicolas@ndufresne.ca
State Accepted
Commit 56ff904915ed264c3b9625a38cbdddb77411c431
Headers show
Series
  • [libcamera-devel] pkgconfig: Fix include directory path
Related show

Commit Message

Nicolas Dufresne May 7, 2020, 2:48 p.m. UTC
From: Nicolas Dufresne <nicolas.dufresne@collabora.com>

Should be $includedir/libcamera, as we install into a subdirectory name
'libcamera'. This is fixed by passing the 'subdirs' argument to the pkgconfig
generator.

Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
---
 meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Laurent Pinchart May 8, 2020, 11:30 a.m. UTC | #1
Hi Nicolas,

Thank you for the patch.

On Thu, May 07, 2020 at 10:48:52AM -0400, Nicolas Dufresne wrote:
> From: Nicolas Dufresne <nicolas.dufresne@collabora.com>
> 
> Should be $includedir/libcamera, as we install into a subdirectory name
> 'libcamera'. This is fixed by passing the 'subdirs' argument to the pkgconfig
> generator.
> 
> Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

I will give a couple of days for others to chime in if they want, and
will then merge the patch.

> ---
>  meson.build | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/meson.build b/meson.build
> index 6c571a1..59829e1 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -116,4 +116,5 @@ pkg_mod.generate(libraries : libcamera,
>                   version : '1.0',
>                   name : 'libcamera',
>                   filebase : 'camera',
> -                 description : 'Complex Camera Support Library')
> +                 description : 'Complex Camera Support Library',
> +                 subdirs : 'libcamera')
Kieran Bingham May 11, 2020, 8:43 a.m. UTC | #2
Hi Nicolas, Laurent,

On 08/05/2020 12:30, Laurent Pinchart wrote:
> Hi Nicolas,
> 
> Thank you for the patch.
> 
> On Thu, May 07, 2020 at 10:48:52AM -0400, Nicolas Dufresne wrote:
>> From: Nicolas Dufresne <nicolas.dufresne@collabora.com>
>>
>> Should be $includedir/libcamera, as we install into a subdirectory name
>> 'libcamera'. This is fixed by passing the 'subdirs' argument to the pkgconfig
>> generator.
>>
>> Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
> 
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> 
> I will give a couple of days for others to chime in if they want, and
> will then merge the patch.

This is fine by me. The extra layer of hierarchy seems a bit redundant
now, but indeed if we ever do need to do an ABI/API change then we can
utilise it for libcamera2...

Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

> 
>> ---
>>  meson.build | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/meson.build b/meson.build
>> index 6c571a1..59829e1 100644
>> --- a/meson.build
>> +++ b/meson.build
>> @@ -116,4 +116,5 @@ pkg_mod.generate(libraries : libcamera,
>>                   version : '1.0',
>>                   name : 'libcamera',
>>                   filebase : 'camera',
>> -                 description : 'Complex Camera Support Library')
>> +                 description : 'Complex Camera Support Library',
>> +                 subdirs : 'libcamera')
>

Patch

diff --git a/meson.build b/meson.build
index 6c571a1..59829e1 100644
--- a/meson.build
+++ b/meson.build
@@ -116,4 +116,5 @@  pkg_mod.generate(libraries : libcamera,
                  version : '1.0',
                  name : 'libcamera',
                  filebase : 'camera',
-                 description : 'Complex Camera Support Library')
+                 description : 'Complex Camera Support Library',
+                 subdirs : 'libcamera')