mirror of
				https://github.com/qemu/qemu.git
				synced 2025-10-31 12:07:31 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			683 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			683 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
| have_virtiofsd = (targetos == 'linux' and
 | |
|     have_tools and
 | |
|     seccomp.found() and
 | |
|     libcap_ng.found() and
 | |
|     'CONFIG_VHOST_USER' in config_host)
 | |
| 
 | |
| if get_option('virtiofsd').enabled()
 | |
|   if not have_virtiofsd
 | |
|     if targetos != 'linux'
 | |
|       error('virtiofsd requires Linux')
 | |
|     elif not seccomp.found() or not libcap_ng.found()
 | |
|       error('virtiofsd requires libcap-ng-devel and seccomp-devel')
 | |
|     elif not have_tools or 'CONFIG_VHOST_USER' not in config_host
 | |
|       error('virtiofsd needs tools and vhost-user support')
 | |
|     endif
 | |
|   endif
 | |
| elif get_option('virtiofsd').disabled() or not have_system
 | |
|   have_virtiofsd = false
 | |
| endif
 | |
| 
 | |
| if have_virtiofsd
 | |
|   subdir('virtiofsd')
 | |
| endif
 | 
