 0df750e9d3
			
		
	
	
		0df750e9d3
		
	
	
	
	
		
			
			By making libvhost-user a subproject, check it builds standalone (without the global QEMU cflags etc). Note that the library still relies on QEMU include/qemu/atomic.h and linux_headers/. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20201125100640.366523-6-marcandre.lureau@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
		
			
				
	
	
		
			14 lines
		
	
	
		
			653 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			653 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
| 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'),
 | |
|              dependencies: [qemuutil, pixman, gbm, virgl, vhost_user],
 | |
|              install: true,
 | |
|              install_dir: get_option('libexecdir'))
 | |
| 
 | |
|   configure_file(input: '50-qemu-gpu.json.in',
 | |
|                  output: '50-qemu-gpu.json',
 | |
|                  configuration: { 'libexecdir' : get_option('prefix') / get_option('libexecdir') },
 | |
|                  install_dir: qemu_datadir / 'vhost-user')
 | |
| endif
 |