mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	build: check if libinput supports hold gestures
Add a project argument (LIBINPUT_HAS_HOLD_GESTURES) to allow building against old versions of libinput.
This commit is contained in:
		
							parent
							
								
									d069a783bc
								
							
						
					
					
						commit
						95970b3619
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -27,3 +27,9 @@ wlr_files += files(
 | 
			
		|||
 | 
			
		||||
features += { 'libinput-backend': true }
 | 
			
		||||
wlr_deps += libinput
 | 
			
		||||
 | 
			
		||||
# libinput hold gestures are available since 1.19.0
 | 
			
		||||
add_project_arguments(
 | 
			
		||||
	'-DLIBINPUT_HAS_HOLD_GESTURES=@0@'.format(libinput.version().version_compare('>=1.19.0').to_int()),
 | 
			
		||||
	language: 'c',
 | 
			
		||||
)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue