mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-10-29 05:40:27 -04:00 
			
		
		
		
	meson: add a libv4l2-path option to match libjack-path
pw-v4l2 uses the gnu ld's ${LIB} features, see meson.build.
Make it possible to work around this by specifying an explicit path,
just like for pw-jac.
Fixes #1751
			
			
This commit is contained in:
		
							parent
							
								
									f39f9b207b
								
							
						
					
					
						commit
						6fab8fabca
					
				
					 2 changed files with 10 additions and 2 deletions
				
			
		|  | @ -61,6 +61,9 @@ option('jack-devel', | |||
| option('libjack-path', | ||||
|        description: 'Where to install the libjack.so library', | ||||
|        type: 'string') | ||||
| option('libv4l2-path', | ||||
|        description: 'Where to install the libpw-v4l2.so library', | ||||
|        type: 'string') | ||||
| option('spa-plugins', | ||||
|        description: 'Enable spa plugins integration', | ||||
|        type: 'feature', | ||||
|  |  | |||
|  | @ -15,8 +15,13 @@ pipewire_v4l2_c_args = [ | |||
|   '-fvisibility=hidden', | ||||
| ] | ||||
| 
 | ||||
| libv4l2_path = modules_install_dir / 'v4l2' | ||||
| libv4l2_path_dlopen = modules_install_dir_dlopen / 'v4l2' | ||||
| libv4l2_path = get_option('libv4l2-path') | ||||
| if libv4l2_path == '' | ||||
|   libv4l2_path = modules_install_dir / 'v4l2' | ||||
|   libv4l2_path_dlopen = modules_install_dir_dlopen / 'v4l2' | ||||
| else | ||||
|   libv4l2_path_dlopen = libv4l2_path | ||||
| endif | ||||
| 
 | ||||
| tools_config = configuration_data() | ||||
| tools_config.set('LIBV4L2_PATH', libv4l2_path_dlopen) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Peter Hutterer
						Peter Hutterer