mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-10-29 05:40:12 -04:00 
			
		
		
		
	Check for libavutil/hwcontext_drm.h
This is an optional feature of libavutil, so this will cause a build failure if it's not present (e.g. on Debian/Ubuntu).
This commit is contained in:
		
							parent
							
								
									4852010f29
								
							
						
					
					
						commit
						86942d8a6a
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		|  | @ -5,6 +5,10 @@ libavutil = dependency('libavutil', required: false) | ||||||
| libavcodec = dependency('libavcodec', required: false) | libavcodec = dependency('libavcodec', required: false) | ||||||
| libavformat = dependency('libavformat', required: false) | libavformat = dependency('libavformat', required: false) | ||||||
| 
 | 
 | ||||||
|  | if not cc.has_header('libavutil/hwcontext_drm.h', dependencies: libavutil) | ||||||
|  |     libavutil = disabler() | ||||||
|  | endif | ||||||
|  | 
 | ||||||
| executable('simple', 'simple.c', dependencies: wlroots) | executable('simple', 'simple.c', dependencies: wlroots) | ||||||
| executable('pointer', 'pointer.c', dependencies: wlroots) | executable('pointer', 'pointer.c', dependencies: wlroots) | ||||||
| executable('touch', 'touch.c', 'cat.c', dependencies: wlroots) | executable('touch', 'touch.c', 'cat.c', dependencies: wlroots) | ||||||
|  |  | ||||||
|  | @ -3,7 +3,7 @@ project( | ||||||
| 	'c', | 	'c', | ||||||
| 	version: '0.0.1', | 	version: '0.0.1', | ||||||
| 	license: 'MIT', | 	license: 'MIT', | ||||||
| 	meson_version: '>=0.43.0', | 	meson_version: '>=0.44.0', | ||||||
| 	default_options: [ | 	default_options: [ | ||||||
| 		'c_std=c11', | 		'c_std=c11', | ||||||
| 		'warning_level=2', | 		'warning_level=2', | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Scott Anderson
						Scott Anderson