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'),
5ea458960SMarc-André Lureau             link_with: libvhost_user,
6ea458960SMarc-André Lureau             dependencies: [qemuutil, pixman, gbm, virgl],
7ea458960SMarc-André Lureau             install: true,
8ea458960SMarc-André Lureau             install_dir: get_option('libexecdir'))
9ea458960SMarc-André Lureau
10ea458960SMarc-André Lureau  configure_file(input: '50-qemu-gpu.json.in',
11ea458960SMarc-André Lureau                 output: '50-qemu-gpu.json',
12*cd57deabSMarc Hartmayer                 configuration: { 'libexecdir' : get_option('prefix') / get_option('libexecdir') },
13ab4c0996SMarc-André Lureau                 install_dir: qemu_datadir / 'vhost-user')
14ea458960SMarc-André Lureauendif
15