cd57deabad
The option `libexecdir` is relative to `prefix` (see
https://mesonbuild.com/Builtin-options.html), so we have to be aware
of this when creating 50-qemu-gpu.json and
50-qemu-virtiofsd.json. Otherwise, tools like libvirt will not be able
to find the executable.
Fixes: 16bf7a3326
("configure: move directory options from config-host.mak to meson")
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Message-Id: <20201103112333.24734-1-mhartmay@linux.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
15 lines
680 B
Meson
15 lines
680 B
Meson
if 'CONFIG_TOOLS' in config_host and 'CONFIG_VIRGL' in config_host \
|
|
and 'CONFIG_GBM' in config_host and 'CONFIG_LINUX' in config_host \
|
|
and pixman.found()
|
|
executable('vhost-user-gpu', files('vhost-user-gpu.c', 'virgl.c', 'vugbm.c'),
|
|
link_with: libvhost_user,
|
|
dependencies: [qemuutil, pixman, gbm, virgl],
|
|
install: true,
|
|
install_dir: get_option('libexecdir'))
|
|
|
|
configure_file(input: '50-qemu-gpu.json.in',
|
|
output: '50-qemu-gpu.json',
|
|
configuration: { 'libexecdir' : get_option('prefix') / get_option('libexecdir') },
|
|
install_dir: qemu_datadir / 'vhost-user')
|
|
endif
|