| 
									
										
										
										
											2018-08-24 19:35:02 +12:00
										 |  |  | xwayland_libs = []
 | 
					
						
							|  |  |  | xwayland_required = [
 | 
					
						
							|  |  |  | 	'xcb',
 | 
					
						
							|  |  |  | 	'xcb-composite',
 | 
					
						
							|  |  |  | 	'xcb-render',
 | 
					
						
							|  |  |  | 	'xcb-xfixes',
 | 
					
						
							|  |  |  | ]
 | 
					
						
							|  |  |  | xwayland_optional = [
 | 
					
						
							|  |  |  | 	'xcb-errors',
 | 
					
						
							|  |  |  | 	'xcb-icccm',
 | 
					
						
							|  |  |  | ]
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | foreach lib : xwayland_required
 | 
					
						
							|  |  |  | 	dep = dependency(lib, required: get_option('xwayland'))
 | 
					
						
							|  |  |  | 	if not dep.found()
 | 
					
						
							|  |  |  | 		subdir_done()
 | 
					
						
							|  |  |  | 	endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	xwayland_libs += dep
 | 
					
						
							|  |  |  | endforeach
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | foreach lib : xwayland_optional
 | 
					
						
							|  |  |  | 	dep = dependency(lib, required: get_option(lib))
 | 
					
						
							|  |  |  | 	if dep.found()
 | 
					
						
							|  |  |  | 		xwayland_libs += dep
 | 
					
						
							| 
									
										
										
										
											2018-11-12 10:12:46 +01:00
										 |  |  | 		conf_data.set10('WLR_HAS_' + lib.underscorify().to_upper(), true)
 | 
					
						
							| 
									
										
										
										
											2018-08-24 19:35:02 +12:00
										 |  |  | 	endif
 | 
					
						
							|  |  |  | endforeach
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-30 14:30:47 -04:00
										 |  |  | lib_wlr_xwayland = static_library(
 | 
					
						
							|  |  |  | 	'wlr_xwayland',
 | 
					
						
							|  |  |  | 	files(
 | 
					
						
							| 
									
										
										
										
											2018-04-03 12:12:57 -04:00
										 |  |  | 		'selection/dnd.c',
 | 
					
						
							|  |  |  | 		'selection/incoming.c',
 | 
					
						
							|  |  |  | 		'selection/outgoing.c',
 | 
					
						
							|  |  |  | 		'selection/selection.c',
 | 
					
						
							| 
									
										
										
										
											2017-08-30 14:30:47 -04:00
										 |  |  | 		'sockets.c',
 | 
					
						
							|  |  |  | 		'xwayland.c',
 | 
					
						
							|  |  |  | 		'xwm.c',
 | 
					
						
							|  |  |  | 	),
 | 
					
						
							|  |  |  | 	include_directories: wlr_inc,
 | 
					
						
							| 
									
										
										
										
											2017-10-15 14:50:21 -04:00
										 |  |  | 	dependencies: [
 | 
					
						
							|  |  |  | 		wayland_server,
 | 
					
						
							| 
									
										
										
										
											2018-08-24 19:35:02 +12:00
										 |  |  | 		xwayland_libs,
 | 
					
						
							| 
									
										
										
										
											2018-02-14 18:27:31 +00:00
										 |  |  | 		xkbcommon,
 | 
					
						
							| 
									
										
										
										
											2017-10-15 14:50:21 -04:00
										 |  |  | 		pixman,
 | 
					
						
							|  |  |  | 	],
 | 
					
						
							| 
									
										
										
										
											2017-08-30 14:30:47 -04:00
										 |  |  | )
 | 
					
						
							| 
									
										
										
										
											2018-08-24 19:35:02 +12:00
										 |  |  | 
 | 
					
						
							|  |  |  | wlr_parts += lib_wlr_xwayland
 | 
					
						
							| 
									
										
										
										
											2018-11-12 10:12:46 +01:00
										 |  |  | conf_data.set10('WLR_HAS_XWAYLAND', true)
 |