1if have_vhost_user_gpu
2  executable('vhost-user-gpu', files('vhost-user-gpu.c', 'virgl.c', 'vugbm.c'),
3             dependencies: [qemuutil, pixman, gbm, virgl, vhost_user, opengl],
4             install: true,
5             install_dir: get_option('libexecdir'))
6
7  configure_file(input: '50-qemu-gpu.json.in',
8                 output: '50-qemu-gpu.json',
9                 configuration: { 'libexecdir' : get_option('prefix') / get_option('libexecdir') },
10                 install_dir: qemu_datadir / 'vhost-user')
11endif
12