2019-07-12 21:23:46 +03:00
|
|
|
if 'CONFIG_TOOLS' in config_host and 'CONFIG_VIRGL' in config_host \
|
2020-08-26 09:22:58 +03:00
|
|
|
and 'CONFIG_GBM' in config_host and 'CONFIG_LINUX' in config_host \
|
|
|
|
and pixman.found()
|
2019-07-12 21:23:46 +03:00
|
|
|
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,
|
2020-08-26 14:04:16 +03:00
|
|
|
install_dir: qemu_datadir / 'vhost-user')
|
2019-07-12 21:23:46 +03:00
|
|
|
endif
|