mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-10-29 05:40:12 -04:00 
			
		
		
		
	 4b4f76cc13
			
		
	
	
		4b4f76cc13
		
	
	
	
	
		
			
			Since wlroots almost always significantly breaks API each minor release, allowing parallel installation of wlroots helps packagers deal with programs that require conflicting versions of wlroots. Closes: #3786
		
			
				
	
	
		
			41 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Meson
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Meson
		
	
	
	
	
	
| subdir('wlr')
 | |
| 
 | |
| exclude_files = ['meson.build', 'config.h.in', 'version.h.in']
 | |
| if not features.get('drm-backend')
 | |
| 	exclude_files += 'backend/drm.h'
 | |
| 	exclude_files += 'types/wlr_drm_lease_v1.h'
 | |
| endif
 | |
| if not features.get('libinput-backend')
 | |
| 	exclude_files += 'backend/libinput.h'
 | |
| endif
 | |
| if not features.get('x11-backend')
 | |
| 	exclude_files += 'backend/x11.h'
 | |
| endif
 | |
| if not features.get('xwayland')
 | |
| 	exclude_files += 'xwayland.h'
 | |
| endif
 | |
| if not features.get('gles2-renderer')
 | |
| 	exclude_files += ['render/egl.h', 'render/gles2.h']
 | |
| endif
 | |
| if not features.get('vulkan-renderer')
 | |
| 	exclude_files += 'render/vulkan.h'
 | |
| endif
 | |
| if not features.get('color-management')
 | |
| 	exclude_files += 'render/color.h'
 | |
| endif
 | |
| if not features.get('session')
 | |
| 	exclude_files += 'backend/session.h'
 | |
| endif
 | |
| 
 | |
| install_subdir('wlr',
 | |
| 	install_dir: get_option('includedir') / versioned_name,
 | |
| 	exclude_files: exclude_files,
 | |
| )
 | |
| 
 | |
| foreach name, have : internal_features
 | |
| 	internal_config.set10('HAVE_' + name.underscorify().to_upper(), have)
 | |
| endforeach
 | |
| wlr_files += configure_file(
 | |
| 	output: 'config.h',
 | |
| 	configuration: internal_config,
 | |
| )
 |