mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	Rearrange libudev dependency
Make libudev dependency required if v4l2 feature option is set to enabled or auto, or if alsa dependency is found or enabled through pipewire-alsa or alsa.
This commit is contained in:
		
							parent
							
								
									e642b7b6e7
								
							
						
					
					
						commit
						f47a7a8ea3
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -16,9 +16,6 @@ if not get_option('spa-plugins').disabled()
 | 
			
		|||
    udevrulesdir = '/lib/udev/rules.d'
 | 
			
		||||
  endif
 | 
			
		||||
 | 
			
		||||
  # common dependencies
 | 
			
		||||
  libudev_dep = dependency('libudev', required: get_option('alsa').enabled() or get_option('v4l2').enabled() or get_option('udev').enabled())
 | 
			
		||||
 | 
			
		||||
  # plugin-specific dependencies
 | 
			
		||||
  alsa_dep = dependency('alsa', required: get_option('alsa'))
 | 
			
		||||
  bluez_dep = dependency('bluez', version : '>= 4.101', required: get_option('bluez5'))
 | 
			
		||||
| 
						 | 
				
			
			@ -34,6 +31,11 @@ if not get_option('spa-plugins').disabled()
 | 
			
		|||
  vulkan_headers = cc.has_header('vulkan/vulkan.h', dependencies : vulkan_dep)
 | 
			
		||||
  libcamera_dep = dependency('camera', required: get_option('libcamera'))
 | 
			
		||||
 | 
			
		||||
  # common dependencies
 | 
			
		||||
  libudev_dep = dependency('libudev', required: alsa_dep.found())
 | 
			
		||||
  libudev_dep = dependency('libudev', required: get_option('udev'))
 | 
			
		||||
  libudev_dep = dependency('libudev', required: get_option('v4l2'))
 | 
			
		||||
 | 
			
		||||
  subdir('plugins')
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue