mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pipewire-jack/src/meson.build: turn jack-devel warning into error
Almost no one will see that warning just like the rest of Meson configuration warnings. So, if it's gonna yield a build with dysfunctional JACK SDK, then it's best to make it explicitly fail before people file bugs about missing jack.pc file.
This commit is contained in:
		
							parent
							
								
									0e386b6584
								
							
						
					
					
						commit
						03a4c0100a
					
				
					 1 changed files with 16 additions and 15 deletions
				
			
		| 
						 | 
				
			
			@ -68,8 +68,17 @@ pipewire_jackserver = shared_library('jacknet',
 | 
			
		|||
    install_dir : libjack_path,
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if meson.version().version_compare('>=0.59.0')
 | 
			
		||||
  if get_option('jack-devel') == true
 | 
			
		||||
 | 
			
		||||
if get_option('jack-devel') == true
 | 
			
		||||
  if meson.version().version_compare('<0.59.0')
 | 
			
		||||
    error(
 | 
			
		||||
          '''
 | 
			
		||||
          Before version 0.59.0 Meson creates a wrong jack pkg-config file.
 | 
			
		||||
          For that reason this is now an error. Please update Meson,
 | 
			
		||||
          if you want to have JACK development files.
 | 
			
		||||
          ''')
 | 
			
		||||
  endif
 | 
			
		||||
 | 
			
		||||
  pkgconfig.generate(filebase : 'jack',
 | 
			
		||||
  libraries : [pipewire_jack, pipewire_jackserver],
 | 
			
		||||
  name : 'jack',
 | 
			
		||||
| 
						 | 
				
			
			@ -77,14 +86,6 @@ if meson.version().version_compare('>=0.59.0')
 | 
			
		|||
  version : '1.9.17',
 | 
			
		||||
  extra_cflags : '-D_REENTRANT',
 | 
			
		||||
  unescaped_variables: ['server_libs=-L${libdir} -ljackserver'])
 | 
			
		||||
  endif
 | 
			
		||||
else
 | 
			
		||||
  warning(
 | 
			
		||||
          '''
 | 
			
		||||
          No jack pkg-config file is generated.\n
 | 
			
		||||
          Before version 0.59.0 Meson creates a wrong jack pkg-config file.\n
 | 
			
		||||
          Please update Meson if you want to generate a jack pkg-config file.
 | 
			
		||||
          ''')
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
if sdl_dep.found()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue