This commit includes a little restructuring necessary for keeping wayland objects properly. It doesn't fix broken modifier functionality yet.
		
			
				
	
	
		
			22 lines
		
	
	
		
			797 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			797 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
wayland_protos = dependency('wayland-protocols', version: '>=1.12')
 | 
						|
wl_protocol_dir = wayland_protos.get_pkgconfig_variable('pkgdatadir')
 | 
						|
 | 
						|
wl_scanner = find_program('wayland-scanner')
 | 
						|
gen_scanner_client_header = generator(wl_scanner,
 | 
						|
    output: '@BASENAME@-client-protocol.h',
 | 
						|
    arguments: ['client-header', '@INPUT@', '@OUTPUT@'])
 | 
						|
gen_scanner_client_code = generator(wl_scanner,
 | 
						|
    output: '@BASENAME@-protocol.c',
 | 
						|
    arguments: ['code', '@INPUT@', '@OUTPUT@'])
 | 
						|
 | 
						|
wl_protos = [
 | 
						|
  wl_protocol_dir + '/stable/xdg-shell/xdg-shell.xml',
 | 
						|
  'wlr-layer-shell-unstable-v1.xml',
 | 
						|
  'virtual-keyboard-unstable-v1.xml',
 | 
						|
]
 | 
						|
wl_proto_sources = []
 | 
						|
foreach proto: wl_protos
 | 
						|
  wl_proto_sources += gen_scanner_client_header.process(proto)
 | 
						|
  wl_proto_sources += gen_scanner_client_code.process(proto)
 | 
						|
endforeach
 |