Skip to content

build: Use Meson's pkgconfig module to generate the .pc file

James Le Cuirot requested to merge chewi/spice:meson-pkgconfig into master

The existing .pc file had the wrong dependencies for Windows and was missing the optional private dependencies for static linking.

There's just one oddity that I haven't been able to figure out. Despite the spice_protocol_version='0.14.0' line in meson.build, the .pc file ends up with spice-protocol >= 0.12.12, which comes from spice-common's meson.build. Perhaps this is a Meson bug? Perhaps it actually makes sense? What do you think?

Merge request reports