[RFC wayland 3/9] wayland-egl: introduce wayland-egl-backend.pc

Emil Velikov emil.l.velikov at gmail.com
Mon Sep 18 13:23:55 UTC 2017


On 17 September 2017 at 13:28, Duncan Roe <duncan_roe at optusnet.com.au> wrote:
> On Fri, Sep 15, 2017 at 11:29:21AM +0100, Emil Velikov wrote:
>> From: Emil Velikov <emil.velikov at collabora.com>
>>
>> File will be installed alongside the backend header.
>>
>> This way Vendor implementations have enough information about the
>> interface and they can build their backend/driver library accordingly.
>>
>> Cc: Miguel A. Vico <mvicomoya at nvidia.com>
>> Cc: James Jones <jajones at nvidia.com>
>> Cc: Daniel Stone <daniels at collabora.com>
>> Cc: duncan-roe <duncan_roe at optusnet.com.au>
>> Cc: Takanari Hayama <taki at igel.co.jp>
>> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
>> ---
>> Any input on the actual private/backend header name and pkg-config file
>> will be greatly appreciated.
>> ---
>>  egl/wayland-egl-backend.pc.in | 9 +++++++++
>>  1 file changed, 9 insertions(+)
>>  create mode 100644 egl/wayland-egl-backend.pc.in
>>
>> diff --git a/egl/wayland-egl-backend.pc.in b/egl/wayland-egl-backend.pc.in
>> new file mode 100644
>> index 0000000..6cf0ed4
>> --- /dev/null
>> +++ b/egl/wayland-egl-backend.pc.in
>> @@ -0,0 +1,9 @@
>> +prefix=@prefix@
>> +exec_prefix=@exec_prefix@
>> +includedir=@includedir@
>> +
>> +Name: wayland-egl-backend
>> +Description: Backend wayland-egl interface
>> +Version: 3
>> +Libs:
>> +Cflags: -I${includedir}
>> --
>> 2.14.1
>>
>
> Hi Emil,
>
> You only need one pkg-config file per package.
>
> Are you planning to split off a new wayland-egl-backend package consisting
> solely of 1 header file?
>
> If wayland-egl-backend.h stays as part of wayland-egl, wayland-egl.pc will
> suffice for it.
>
I think you're getting confused somewhere.

A single project/tarball can have multiple "packages" - .pc file and
corresponding libraries/headers.
In the example here we have two:
 - frontend, library and header - used by VLC/mpv/etc
 - backend, header only - defines the interface between the library
and the vendor implementation.

HTH
Emil


More information about the wayland-devel mailing list