Experiment to build with Meson #119
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "meson"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Hi
I was asked to submit this for consideration. This MR adds Meson build definitions to pgkconf. Some features:
Meson is being adopted by other low level Linux userland packages such as systemd, so it should be available in most scenarios.
That was me who asked this, so I think it makes sense to replace cmake with meson part (and probably even autotools with meson).
@dankegel what do you think of this instead?
@jpakkane @ignatenkobrain because meson requires python, how does this change the bootstrap situation? pkgconf is built quite early, much like systemd would be.
For cross building not in any way as the build machine is going to have Python 3 (or it is simple to install). For native building the only requirement is that Python 3 and Ninja are invokable. FWICT systemd uses pkgconf so this might require building Python a bit earlier than currently (I'm not aware how early Python is built currently). I've been told that recent Python 3 versions are a lot easier to cross build than old versions were so this should be a fairly low effort change.
okay, so it seems like we can just cross-build pkgconf using meson, and that solves building a bootstrap image without having to worry about python (as python can be rebuilt on the host at a later point).
that makes sense, and it seems fine to me.
lets rip out cmake & autotools build systems and just use meson then.