Igalia / WPEBackend-fdo

BSD 2-Clause "Simplified" License
30 stars 24 forks source link

Meson updates #167

Closed ceyusa closed 3 years ago

ceyusa commented 3 years ago
meson: Use implicit dependencies for required dependencies.

The generated pkgconfig file for the library is incomplete, since application,
such as cog, only explicity depend on WPEBackend-fdo, though it also depends on
libwpe. It has not been a problem since wpe-webkit-1.0.pc explicity expose
libwpe requirement. Still, for robustness and self documentation, it's better to
express that dependency explicity too.

Also, this patch removes the pkg config version declation since it's also
handled implicitly by meson.

Previous pc file:

prefix=/usr
libdir=${prefix}/lib/x86_64-linux-gnu
includedir=${prefix}/include

Name: wpebackend-fdo-1.0
Description: The WPEBackend-fdo library
Version: 1.9.91
Libs: -L${libdir} -lWPEBackend-fdo-1.0
Cflags: -I${includedir}/wpe-fdo-1.0

New pc file:

prefix=/usr/local
libdir=${prefix}/lib
includedir=${prefix}/include

Name: wpebackend-fdo-1.0
Description: The WPEBackend-fdo library
Version: 1.9.1
Requires: wpe-1.0
Requires.private: xkbcommon, egl
Libs: -L${libdir} -lWPEBackend-fdo-1.0
Libs.private: -ldl
Cflags: -I${includedir}/wpe-fdo-1.0

meson: Support meson's subproject layout.

As libwpe, wpebackend-fdo can be used as a meson's subproject.