mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Allow selecting whether the GLES2 renderer gets enabled. Co-authored-by: Simon Ser <contact@emersion.fr>
		
			
				
	
	
		
			30 lines
		
	
	
	
		
			612 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			612 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
renderers = get_option('renderers')
 | 
						|
if 'auto' in renderers and get_option('auto_features').enabled()
 | 
						|
	renderers = ['gles2']
 | 
						|
elif 'auto' in renderers and get_option('auto_features').disabled()
 | 
						|
	renderers = []
 | 
						|
endif
 | 
						|
 | 
						|
wlr_files += files(
 | 
						|
	'allocator.c',
 | 
						|
	'dmabuf.c',
 | 
						|
	'drm_format_set.c',
 | 
						|
	'gbm_allocator.c',
 | 
						|
	'pixel_format.c',
 | 
						|
	'shm_allocator.c',
 | 
						|
	'swapchain.c',
 | 
						|
	'wlr_renderer.c',
 | 
						|
	'wlr_texture.c',
 | 
						|
)
 | 
						|
 | 
						|
egl = dependency('egl', required: 'gles2' in renderers)
 | 
						|
if egl.found()
 | 
						|
	wlr_deps += egl
 | 
						|
	wlr_files += files('egl.c')
 | 
						|
endif
 | 
						|
 | 
						|
if 'gles2' in renderers or 'auto' in renderers
 | 
						|
	subdir('gles2')
 | 
						|
endif
 | 
						|
 | 
						|
subdir('pixman')
 |