mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	treewide: only define feature macros when the feature is available
Most feature checks already use #ifdef, and do not care about
the value of the macro. Convert all feature checks to do that,
and simplify the meson build scripts by replacing
  if cond
    cdata.set('X', 1)
  endif
with
  cdata.set('X', cond)
			
			
This commit is contained in:
		
							parent
							
								
									140378efd6
								
							
						
					
					
						commit
						15e7a61aa7
					
				
					 15 changed files with 49 additions and 83 deletions
				
			
		| 
						 | 
				
			
			@ -273,7 +273,7 @@ if avahi_dep.found()
 | 
			
		|||
    'module-zeroconf-discover/avahi-poll.c',
 | 
			
		||||
  ]
 | 
			
		||||
  pipewire_module_protocol_pulse_deps += avahi_dep
 | 
			
		||||
  cdata.set('HAVE_AVAHI', 1)
 | 
			
		||||
  cdata.set('HAVE_AVAHI', true)
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
pipewire_module_protocol_pulse = shared_library('pipewire-module-protocol-pulse',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue