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