On 17 September 2017 at 13:28, Duncan Roe <[email protected]> wrote: > On Fri, Sep 15, 2017 at 11:29:21AM +0100, Emil Velikov wrote: >> From: Emil Velikov <[email protected]> >> >> 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 <[email protected]> >> Cc: James Jones <[email protected]> >> Cc: Daniel Stone <[email protected]> >> Cc: duncan-roe <[email protected]> >> Cc: Takanari Hayama <[email protected]> >> Signed-off-by: Emil Velikov <[email protected]> >> --- >> 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 _______________________________________________ wayland-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/wayland-devel
