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