mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	build: drop wayland-scanner fallback
(cherry picked from commit 366f6ef3d3)
			
			
This commit is contained in:
		
							parent
							
								
									9f4229827f
								
							
						
					
					
						commit
						ceece55850
					
				
					 1 changed files with 5 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -1,14 +1,10 @@
 | 
			
		|||
wl_protocol_dir = wayland_protos.get_variable('pkgdatadir')
 | 
			
		||||
 | 
			
		||||
wayland_scanner_dep = dependency('wayland-scanner', required: false, native: true)
 | 
			
		||||
if wayland_scanner_dep.found()
 | 
			
		||||
	wayland_scanner = find_program(
 | 
			
		||||
wayland_scanner_dep = dependency('wayland-scanner', native: true)
 | 
			
		||||
wayland_scanner = find_program(
 | 
			
		||||
	wayland_scanner_dep.get_variable(pkgconfig: 'wayland_scanner'),
 | 
			
		||||
	native: true,
 | 
			
		||||
	)
 | 
			
		||||
else
 | 
			
		||||
	wayland_scanner = find_program('wayland-scanner', native: true)
 | 
			
		||||
endif
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
protocols = [
 | 
			
		||||
	wl_protocol_dir / 'stable/xdg-shell/xdg-shell.xml',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue