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 executable('vhost-user-gpu', files('vhost-user-gpu.c', 'virgl.c', 'vugbm.c'), 4 link_with: libvhost_user, 5 dependencies: [qemuutil, pixman, gbm, virgl], 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: config_host, 12 install_dir: config_host['qemu_datadir'] / 'vhost-user') 13endif 14