[libvirt PATCH v2] port libvirt to Meson build system

Pavel Hrdina phrdina at redhat.com
Wed Jul 29 16:09:24 UTC 2020


On Wed, Jul 29, 2020 at 05:32:45PM +0200, Michal Privoznik wrote:
> On 7/29/20 4:38 PM, Pavel Hrdina wrote:
> >
> 
> Maybe this was discussed already, but if not: do we want to have a script
> that would bundle meson + ninja commands, so that we could just
> "./build_and_dont_bother_me.sh". The advantage would be that we could set
> some defaults, just like we're doing for autogen.sh with "--system".

When I was looking into this topic I found that some projects have
configure which is a shell script that calls meson setup and Makefile
which calls ninja -C build. Other projects switched completely and
removed all files related to autotools, automake, shell, make.

I don't think there is a need for such script as developers usually have
their own scripts to build projects. And for the --system option that
one is actually ported to meson, you can use it like this:

    meson build -Dsystem=true
    ninja -C build

    ./build/src/libvirtd
    ./build/tools/virsh

Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200729/33dd2a16/attachment-0001.sig>


More information about the libvir-list mailing list