[libvirt-dbus PATCH 8/9] meson: Install documentation

Andrea Bolognani abologna at redhat.com
Mon Apr 27 13:12:50 UTC 2020


On Mon, 2020-04-27 at 14:48 +0200, Andrea Bolognani wrote:
> On Mon, 2020-04-27 at 14:20 +0200, Pavel Hrdina wrote:
> > On Sat, Apr 25, 2020 at 10:59:45PM +0200, Andrea Bolognani wrote:
> > >  prefix = get_option('prefix')
> > >  datadir = prefix / get_option('datadir')
> > >  sbindir = prefix / get_option('sbindir')
> > > +set_variable('docdir', datadir / 'doc/libvirt-dbus')
> > 
> > No need to use set_variable(), you can use directly:
> > 
> > docdir = datadir / 'doc' / 'libvirt-dbus'
> > 
> > The set_variable() function is usually used in places where you need to
> > dynamically generate the variable name.
> 
> I see! This is my first time touching a Meson-based build system,
> so I mostly copy-pasted my way through O:-)
> 
> I'll adopt your version.

I'm actually going to use a slight variation,

  docdir = datadir / 'doc' / meson.project_name()

to avoid repetition.

-- 
Andrea Bolognani / Red Hat / Virtualization




More information about the libvir-list mailing list