aboutsummaryrefslogtreecommitdiff
path: root/contrib/vhost-user-gpu/meson.build
blob: 12d608c2e778e19eb738b5fcbc7fde95c5a2e848 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
if 'CONFIG_TOOLS' in config_host and 'CONFIG_VIRGL' in config_host \
    and 'CONFIG_GBM' in config_host and 'CONFIG_LINUX' in config_host \
    and pixman.found()
  executable('vhost-user-gpu', files('vhost-user-gpu.c', 'virgl.c', 'vugbm.c'),
             link_with: libvhost_user,
             dependencies: [qemuutil, pixman, gbm, virgl],
             install: true,
             install_dir: get_option('libexecdir'))

  configure_file(input: '50-qemu-gpu.json.in',
                 output: '50-qemu-gpu.json',
                 configuration: config_host,
                 install_dir: config_host['qemu_datadir'] / 'vhost-user')
endif