1ea458960SMarc-André Lureauif 'CONFIG_TOOLS' in config_host and 'CONFIG_VIRGL' in config_host \
2b7612f45SPaolo Bonzini    and 'CONFIG_GBM' in config_host and 'CONFIG_LINUX' in config_host \
3b7612f45SPaolo Bonzini    and pixman.found()
4ea458960SMarc-André Lureau  executable('vhost-user-gpu', files('vhost-user-gpu.c', 'virgl.c', 'vugbm.c'),
5*0c27b9c5SMarc-André Lureau             dependencies: [qemuutil, pixman, gbm, virgl, vhost_user, opengl],
6ea458960SMarc-André Lureau             install: true,
7ea458960SMarc-André Lureau             install_dir: get_option('libexecdir'))
8ea458960SMarc-André Lureau
9ea458960SMarc-André Lureau  configure_file(input: '50-qemu-gpu.json.in',
10ea458960SMarc-André Lureau                 output: '50-qemu-gpu.json',
11cd57deabSMarc Hartmayer                 configuration: { 'libexecdir' : get_option('prefix') / get_option('libexecdir') },
12ab4c0996SMarc-André Lureau                 install_dir: qemu_datadir / 'vhost-user')
13ea458960SMarc-André Lureauendif
14