ab4c0996f8
When cross-compiling, by default qemu_datadir is 'c:\Program Files\QEMU', which is not recognized as being an absolute path, and meson will end up adding the prefix again. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20200826110419.528931-6-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
15 lines
625 B
Meson
15 lines
625 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: config_host,
|
|
install_dir: qemu_datadir / 'vhost-user')
|
|
endif
|