Install/build pkg-config if it's not available on the system
sdroege opened this issue · 6 comments
Shouldn't be too hard via the cc
crate and downloading it in build.rs
.
Potentially libpkgconf could be wrapped in a -sys crate but even that is a bit large even if self-contained.
Potentially libpkgconf could be wrapped in a -sys crate but even that is a bit large even if self-contained.
I had the same idea.
There's also a meson port for the original pkg-config now, which is lighter than pkgconf.
the meson port removed glib from the codebase? IIRC that's one of the issues with the original pkg-config.
the meson port removed glib from the codebase? IIRC that's one of the issues with the original pkg-config.
No, that was Jussi's meson port. This one by @tp-m uses glib as a subproject, with all unnecessary things patched out in the build system, see https://gitlab.freedesktop.org/tpm/pkg-config/-/tree/meson/subprojects/packagefiles/glib-2.74.4. That makes it equivalent to how the Autotools build works, except with newer glib.
Then there is lots of room for making it light :) I wish enough of us has time to come up with a pure rust impl.