1 if 'CONFIG_TOOLS' in config_host and 'CONFIG_VIRGL' in config_host \
2 and 'CONFIG_GBM' in config_host and 'CONFIG_LINUX' in config_host \
4 executable('vhost-user-gpu', files('vhost-user-gpu.c', 'virgl.c', 'vugbm.c'),
5 dependencies: [qemuutil, pixman, gbm, virgl, vhost_user],
7 install_dir: get_option('libexecdir'))
9 configure_file(input: '50-qemu-gpu.json.in',
10 output: '50-qemu-gpu.json',
11 configuration: { 'libexecdir' : get_option('prefix') / get_option('libexecdir') },
12 install_dir: qemu_datadir / 'vhost-user')